Skip to content
Browse files

add version number to all the modules

  • Loading branch information...
1 parent 43f0427 commit c569ee92dc55823f552fad9428d747a3b4b6df66 @szabgab szabgab committed
View
2 lib/XML/Feed/Content.pm
@@ -3,6 +3,8 @@
package XML::Feed::Content;
use strict;
+our $VERSION = '0.51';
+
use base qw( Class::ErrorHandler );
sub wrap {
View
2 lib/XML/Feed/Enclosure.pm
@@ -1,7 +1,7 @@
package XML::Feed::Enclosure;
use strict;
-use strict;
+our $VERSION = '0.51';
use base qw( Class::ErrorHandler );
View
3 lib/XML/Feed/Entry.pm
@@ -2,6 +2,9 @@
package XML::Feed::Entry;
use strict;
+
+our $VERSION = '0.51';
+
use base qw( Class::ErrorHandler );
use Scalar::Util qw( blessed );
View
2 lib/XML/Feed/Entry/Format/Atom.pm
@@ -1,6 +1,8 @@
package XML::Feed::Entry::Format::Atom;
use strict;
+our $VERSION = '0.51';
+
use base qw( XML::Feed::Entry );
use XML::Atom::Util qw( iso2dt );
use XML::Feed::Content;
View
2 lib/XML/Feed/Entry/Format/RSS.pm
@@ -1,6 +1,8 @@
package XML::Feed::Entry::Format::RSS;
use strict;
+our $VERSION = '0.51';
+
sub format { 'RSS ' . $_[0]->{'_version'} }
use XML::Feed::Content;
View
2 lib/XML/Feed/Format/Atom.pm
@@ -3,6 +3,8 @@
package XML::Feed::Format::Atom;
use strict;
+our $VERSION = '0.51';
+
use base qw( XML::Feed );
use XML::Atom::Feed;
use XML::Atom::Util qw( iso2dt );
View
2 lib/XML/Feed/Format/RSS.pm
@@ -3,6 +3,8 @@
package XML::Feed::Format::RSS;
use strict;
+our $VERSION = '0.51';
+
use base qw( XML::Feed );
use DateTime::Format::Mail;
use DateTime::Format::W3CDTF;
View
10 t/has-version.t
@@ -0,0 +1,10 @@
+#!perl
+
+use strict;
+use warnings;
+use Test::More;
+eval 'use Test::HasVersion 0.012';
+plan skip_all =>
+ 'Test::HasVersion required for testing for version numbers' if $@;
+all_pm_version_ok();
+

0 comments on commit c569ee9

Please sign in to comment.
Something went wrong with that request. Please try again.