Skip to content

Commit

Permalink
add a $VERSION to every module
Browse files Browse the repository at this point in the history
  • Loading branch information
autarch committed Jan 17, 2010
1 parent 0467506 commit f465980
Show file tree
Hide file tree
Showing 18 changed files with 52 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/Catalyst/Action/Deserialize.pm
Expand Up @@ -7,6 +7,9 @@ extends 'Catalyst::Action::SerializeBase';
use Module::Pluggable::Object;
use MRO::Compat;

our $VERSION = '0.81';
$VERSION = eval $VERSION;

__PACKAGE__->mk_accessors(qw(plugins));

sub execute {
Expand Down
3 changes: 3 additions & 0 deletions lib/Catalyst/Action/Deserialize/Data/Serializer.pm
Expand Up @@ -6,6 +6,9 @@ use namespace::autoclean;
extends 'Catalyst::Action';
use Data::Serializer;

our $VERSION = '0.81';
$VERSION = eval $VERSION;

sub execute {
my $self = shift;
my ( $controller, $c, $serializer ) = @_;
Expand Down
3 changes: 3 additions & 0 deletions lib/Catalyst/Action/Deserialize/JSON.pm
Expand Up @@ -6,6 +6,9 @@ use namespace::autoclean;
extends 'Catalyst::Action';
use JSON qw( decode_json );

our $VERSION = '0.81';
$VERSION = eval $VERSION;

sub execute {
my $self = shift;
my ( $controller, $c, $test ) = @_;
Expand Down
3 changes: 3 additions & 0 deletions lib/Catalyst/Action/Deserialize/View.pm
Expand Up @@ -5,6 +5,9 @@ use namespace::autoclean;

extends 'Catalyst::Action';

our $VERSION = '0.81';
$VERSION = eval $VERSION;

sub execute {
return 1;
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Catalyst/Action/Deserialize/XML/Simple.pm
Expand Up @@ -5,6 +5,9 @@ use namespace::autoclean;

extends 'Catalyst::Action';

our $VERSION = '0.81';
$VERSION = eval $VERSION;

sub execute {
my $self = shift;
my ( $controller, $c, $test ) = @_;
Expand Down
3 changes: 3 additions & 0 deletions lib/Catalyst/Action/Serialize.pm
Expand Up @@ -7,6 +7,9 @@ extends 'Catalyst::Action::SerializeBase';
use Module::Pluggable::Object;
use MRO::Compat;

our $VERSION = '0.81';
$VERSION = eval $VERSION;

sub execute {
my $self = shift;
my ( $controller, $c ) = @_;
Expand Down
3 changes: 3 additions & 0 deletions lib/Catalyst/Action/Serialize/Data/Serializer.pm
Expand Up @@ -6,6 +6,9 @@ use namespace::autoclean;
extends 'Catalyst::Action';
use Data::Serializer;

our $VERSION = '0.81';
$VERSION = eval $VERSION;

sub execute {
my $self = shift;
my ( $controller, $c, $serializer ) = @_;
Expand Down
3 changes: 3 additions & 0 deletions lib/Catalyst/Action/Serialize/JSON.pm
Expand Up @@ -6,6 +6,9 @@ use namespace::autoclean;
extends 'Catalyst::Action';
use JSON qw(encode_json);

our $VERSION = '0.81';
$VERSION = eval $VERSION;

sub execute {
my $self = shift;
my ( $controller, $c ) = @_;
Expand Down
3 changes: 3 additions & 0 deletions lib/Catalyst/Action/Serialize/JSON/XS.pm
Expand Up @@ -6,6 +6,9 @@ use namespace::autoclean;
extends 'Catalyst::Action::Serialize::JSON';
use JSON::XS qw(encode_json);

our $VERSION = '0.81';
$VERSION = eval $VERSION;

sub serialize {
my $self = shift;
encode_json( shift );
Expand Down
3 changes: 3 additions & 0 deletions lib/Catalyst/Action/Serialize/JSONP.pm
Expand Up @@ -4,6 +4,9 @@ use namespace::autoclean;

extends 'Catalyst::Action::Serialize::JSON';

our $VERSION = '0.81';
$VERSION = eval $VERSION;

after 'execute' => sub {
my $self = shift;
my ($controller, $c) = @_;
Expand Down
3 changes: 3 additions & 0 deletions lib/Catalyst/Action/Serialize/XML/Simple.pm
Expand Up @@ -5,6 +5,9 @@ use namespace::autoclean;

extends 'Catalyst::Action';

our $VERSION = '0.81';
$VERSION = eval $VERSION;

sub execute {
my $self = shift;
my ( $controller, $c ) = @_;
Expand Down
3 changes: 3 additions & 0 deletions lib/Catalyst/Action/Serialize/YAML.pm
Expand Up @@ -6,6 +6,9 @@ use namespace::autoclean;
extends 'Catalyst::Action';
use YAML::Syck;

our $VERSION = '0.81';
$VERSION = eval $VERSION;

sub execute {
my $self = shift;
my ( $controller, $c ) = @_;
Expand Down
3 changes: 3 additions & 0 deletions lib/Catalyst/Action/Serialize/YAML/HTML.pm
Expand Up @@ -7,6 +7,9 @@ extends 'Catalyst::Action';
use YAML::Syck;
use URI::Find;

our $VERSION = '0.81';
$VERSION = eval $VERSION;

sub execute {
my $self = shift;
my ( $controller, $c ) = @_;
Expand Down
3 changes: 3 additions & 0 deletions lib/Catalyst/Action/SerializeBase.pm
Expand Up @@ -8,6 +8,9 @@ use Module::Pluggable::Object;
use Catalyst::Request::REST;
use Catalyst::Utils ();

our $VERSION = '0.81';
$VERSION = eval $VERSION;

sub new {
my $class = shift;
my $config = shift;
Expand Down
3 changes: 3 additions & 0 deletions lib/Catalyst/Request/REST.pm
Expand Up @@ -7,6 +7,9 @@ use namespace::autoclean;
extends 'Catalyst::Request';
with 'Catalyst::TraitFor::Request::REST';

our $VERSION = '0.81';
$VERSION = eval $VERSION;

# Please don't take this as a recommended way to do things.
# The code below is grotty, badly factored and mostly here for back
# compat..
Expand Down
2 changes: 1 addition & 1 deletion lib/Catalyst/Request/REST/ForBrowsers.pm
Expand Up @@ -3,7 +3,7 @@ use Moose;

use namespace::autoclean;

our $VERSION = '0.80';
our $VERSION = '0.81';
$VERSION = eval $VERSION;

extends 'Catalyst::Request::REST';
Expand Down
3 changes: 3 additions & 0 deletions lib/Catalyst/TraitFor/Request/REST.pm
Expand Up @@ -3,6 +3,9 @@ use Moose::Role;
use HTTP::Headers::Util qw(split_header_words);
use namespace::autoclean;

our $VERSION = '0.81';
$VERSION = eval $VERSION;

has [qw/ data accept_only /] => ( is => 'rw' );

has accepted_content_types => (
Expand Down
3 changes: 3 additions & 0 deletions lib/Catalyst/TraitFor/Request/REST/ForBrowsers.pm
Expand Up @@ -4,6 +4,9 @@ use namespace::autoclean;

with 'Catalyst::TraitFor::Request::REST';

our $VERSION = '0.81';
$VERSION = eval $VERSION;

has _determined_real_method => (
is => 'rw',
isa => 'Bool',
Expand Down

0 comments on commit f465980

Please sign in to comment.