line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package XML::SRS::Version; |
3
|
|
|
|
|
|
|
BEGIN { |
4
|
1
|
|
|
1
|
|
1715
|
$XML::SRS::Version::VERSION = '0.09'; |
5
|
|
|
|
|
|
|
} |
6
|
1
|
|
|
1
|
|
497
|
use Moose::Role; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
use PRANG::Graph; |
8
|
|
|
|
|
|
|
use MooseX::Params::Validate; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has_attr "major" => |
11
|
|
|
|
|
|
|
is => "rw", |
12
|
|
|
|
|
|
|
isa => "Int", |
13
|
|
|
|
|
|
|
required => 1, |
14
|
|
|
|
|
|
|
xml_name => "VerMajor", |
15
|
|
|
|
|
|
|
; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
has_attr "minor" => |
18
|
|
|
|
|
|
|
is => "rw", |
19
|
|
|
|
|
|
|
isa => "Int", |
20
|
|
|
|
|
|
|
required => 1, |
21
|
|
|
|
|
|
|
xml_name => "VerMinor", |
22
|
|
|
|
|
|
|
; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
has "version" => |
25
|
|
|
|
|
|
|
is => "ro", |
26
|
|
|
|
|
|
|
isa => "Str", |
27
|
|
|
|
|
|
|
lazy => 1, |
28
|
|
|
|
|
|
|
default => sub { |
29
|
|
|
|
|
|
|
my $self = shift; |
30
|
|
|
|
|
|
|
$self->major.".".$self->minor; |
31
|
|
|
|
|
|
|
}, |
32
|
|
|
|
|
|
|
; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub buildargs_version { |
35
|
|
|
|
|
|
|
my $inv = shift; |
36
|
|
|
|
|
|
|
my ( $version ) = pos_validated_list( |
37
|
|
|
|
|
|
|
\@_, |
38
|
|
|
|
|
|
|
{ isa => 'Str' }, |
39
|
|
|
|
|
|
|
); |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
$version = $XML::SRS::PROTOCOL_VERSION |
42
|
|
|
|
|
|
|
if $version eq "auto"; |
43
|
|
|
|
|
|
|
my ($vmaj, $vmin) = split /\./, $version; |
44
|
|
|
|
|
|
|
(major => 0+$vmaj, minor => 0+$vmin); |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
1; |