[libdancer-plugin-rest-perl] 03/03: Build results of b89d913 (on master)

Jonas Smedegaard dr at jones.dk
Wed Jul 2 11:45:07 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag v0.09
in repository libdancer-plugin-rest-perl.

commit cdb27f9a70d208831200a7d75cc6955537d10687
Merge: b89d913 390387f
Author: Yanick Champoux <yanick at babyl.dyndns.org>
Date:   Tue Mar 11 22:39:12 2014 -0400

    Build results of b89d913 (on master)

 .gitignore                   |   9 -
 .mailmap                     |   2 -
 .perlcriticrc                |  57 -------
 .perltidyrc                  |  34 ----
 Build.PL                     |  68 ++++++++
 CONTRIBUTORS                 |  10 ++
 Changes                      |  13 +-
 INSTALL                      |  44 +++++
 LICENSE                      | 379 +++++++++++++++++++++++++++++++++++++++++++
 MANIFEST.SKIP                |  11 --
 META.json                    |  80 +++++++++
 META.yml                     |  43 +++++
 README                       | 114 ++++++++++++-
 README.mkdn                  | 125 ++++++++++++++
 SIGNATURE                    |   0
 dist.ini                     |  11 --
 lib/Dancer/Plugin/REST.pm    |  45 ++++-
 t/00-compile.t               |  50 ++++++
 t/000-report-versions-tiny.t |  82 ++++++++++
 xt/release/unused-vars.t     |   8 +
 20 files changed, 1043 insertions(+), 142 deletions(-)

diff --cc Build.PL
index 0000000,bb89b99..0ef8c61
mode 000000,100644..100644
--- a/Build.PL
+++ b/Build.PL
@@@ -1,0 -1,68 +1,68 @@@
+ 
+ # This file was automatically generated by Dist::Zilla::Plugin::ModuleBuild v5.013.
+ use strict;
+ use warnings;
+ 
+ use Module::Build 0.3601;
+ 
+ 
+ my %module_build_args = (
+   "build_requires" => {
+     "Module::Build" => "0.3601"
+   },
+   "configure_requires" => {
+     "Module::Build" => "0.3601"
+   },
+   "dist_abstract" => "A plugin for writing RESTful apps with Dancer",
+   "dist_author" => [
+     "Alexis Sukrieh <sukria\@sukria.net>",
+     "Franck Cuny <franckc\@cpan.org>"
+   ],
+   "dist_name" => "Dancer-Plugin-REST",
 -  "dist_version" => "0.08",
++  "dist_version" => "0.09",
+   "license" => "perl",
+   "module_name" => "Dancer::Plugin::REST",
+   "recommends" => {},
+   "recursive_test_files" => 1,
+   "requires" => {
+     "Carp" => 0,
+     "Dancer" => 0,
+     "Dancer::Plugin" => 0,
+     "strict" => 0,
+     "warnings" => 0
+   },
+   "script_files" => [],
+   "test_requires" => {
+     "Dancer::ModuleLoader" => 0,
+     "Dancer::Test" => 0,
+     "File::Spec" => 0,
+     "HTTP::Headers" => 0,
+     "IO::Handle" => 0,
+     "IPC::Open3" => 0,
+     "Test::More" => "0.88",
+     "perl" => "5.006"
+   }
+ );
+ 
+ 
+ my %fallback_build_requires = (
+   "Dancer::ModuleLoader" => 0,
+   "Dancer::Test" => 0,
+   "File::Spec" => 0,
+   "HTTP::Headers" => 0,
+   "IO::Handle" => 0,
+   "IPC::Open3" => 0,
+   "Module::Build" => "0.3601",
+   "Test::More" => "0.88",
+   "perl" => "5.006"
+ );
+ 
+ 
+ unless ( eval { Module::Build->VERSION(0.4004) } ) {
+   delete $module_build_args{test_requires};
+   $module_build_args{build_requires} = \%fallback_build_requires;
+ }
+ 
+ my $build = Module::Build->new(%module_build_args);
+ 
+ $build->create_build_script;
diff --cc Changes
index 81729d9,2fc3c91..84f9d91
--- a/Changes
+++ b/Changes
@@@ -1,19 -1,5 +1,12 @@@
- Revision history for {{$DIST}}
- 
- {{$NEXT}}
-  [API CHANGES]
+ Revision history for
  
++0.09 2014-03-11
 + [BUG FIXES]
 + - Skip test if XML::Simple is not installed.
 +
-  [DOCUMENTATION]
- 
-  [ENHANCEMENTS]
- 
-  [NEW FEATURES]
- 
 + [STATISTICS]
++ - code churn: 2 files changed, 26 insertions(+), 3 deletions(-)
 +
  0.08 2014-03-10
   [BUG FIXES]
   - 'prepare_serializer_for_format' was clobbering the default serializer.
diff --cc META.json
index 0000000,f5e062a..3fe5dcc
mode 000000,100644..100644
--- a/META.json
+++ b/META.json
@@@ -1,0 -1,81 +1,80 @@@
+ {
+    "abstract" : "A plugin for writing RESTful apps with Dancer",
+    "author" : [
+       "Alexis Sukrieh <sukria at sukria.net>",
+       "Franck Cuny <franckc at cpan.org>"
+    ],
+    "dynamic_config" : 0,
+    "generated_by" : "Dist::Zilla version 5.013, CPAN::Meta::Converter version 2.140640",
+    "license" : [
+       "perl_5"
+    ],
+    "meta-spec" : {
+       "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
+       "version" : "2"
+    },
+    "name" : "Dancer-Plugin-REST",
+    "prereqs" : {
+       "build" : {
+          "requires" : {
+             "Module::Build" : "0.3601"
+          }
+       },
+       "configure" : {
+          "requires" : {
+             "Module::Build" : "0.3601"
+          }
+       },
+       "develop" : {
+          "requires" : {
+             "version" : "0.9901"
+          }
+       },
+       "runtime" : {
+          "requires" : {
+             "Carp" : "0",
+             "Dancer" : "0",
+             "Dancer::Plugin" : "0",
+             "strict" : "0",
+             "warnings" : "0"
+          }
+       },
+       "test" : {
+          "requires" : {
+             "Dancer::ModuleLoader" : "0",
+             "Dancer::Test" : "0",
+             "File::Spec" : "0",
+             "HTTP::Headers" : "0",
+             "IO::Handle" : "0",
+             "IPC::Open3" : "0",
+             "Test::More" : "0.88",
+             "perl" : "5.006"
+          }
+       }
+    },
+    "provides" : {
+       "Dancer::Plugin::REST" : {
+          "file" : "lib/Dancer/Plugin/REST.pm",
 -         "version" : "0.08"
++         "version" : "0.09"
+       }
+    },
+    "release_status" : "stable",
+    "resources" : {
+       "bugtracker" : {
 -         "mailto" : "bug-dancer-plugin-rest at rt.cpan.org",
 -         "web" : "http://rt.cpan.org/Public/Dist/Display.html?Name=Dancer-Plugin-REST"
++         "web" : "https://github.com/perldancer/Dancer-Plugin-REST/issues"
+       },
+       "homepage" : "http://search.cpan.org/dist/Dancer-Plugin-REST/",
+       "repository" : {
+          "type" : "git",
+          "url" : "https://github.com/perldancer/Dancer-Plugin-REST.git",
+          "web" : "https://github.com/perldancer/Dancer-Plugin-REST"
+       }
+    },
 -   "version" : "0.08",
++   "version" : "0.09",
+    "x_authority" : "cpan:SUKRIA",
+    "x_contributors" : [
+       "James Aitken <loonypandora at gmail.com>",
+       "Yanick Champoux <yanick at babyl.dyndns.org>"
+    ]
+ }
+ 
diff --cc META.yml
index 0000000,f5d40f5..61e47dc
mode 000000,100644..100644
--- a/META.yml
+++ b/META.yml
@@@ -1,0 -1,43 +1,43 @@@
+ ---
+ abstract: 'A plugin for writing RESTful apps with Dancer'
+ author:
+   - 'Alexis Sukrieh <sukria at sukria.net>'
+   - 'Franck Cuny <franckc at cpan.org>'
+ build_requires:
+   Dancer::ModuleLoader: '0'
+   Dancer::Test: '0'
+   File::Spec: '0'
+   HTTP::Headers: '0'
+   IO::Handle: '0'
+   IPC::Open3: '0'
+   Module::Build: '0.3601'
+   Test::More: '0.88'
+   perl: '5.006'
+ configure_requires:
+   Module::Build: '0.3601'
+ dynamic_config: 0
+ generated_by: 'Dist::Zilla version 5.013, CPAN::Meta::Converter version 2.140640'
+ license: perl
+ meta-spec:
+   url: http://module-build.sourceforge.net/META-spec-v1.4.html
+   version: '1.4'
+ name: Dancer-Plugin-REST
+ provides:
+   Dancer::Plugin::REST:
+     file: lib/Dancer/Plugin/REST.pm
 -    version: '0.08'
++    version: '0.09'
+ requires:
+   Carp: '0'
+   Dancer: '0'
+   Dancer::Plugin: '0'
+   strict: '0'
+   warnings: '0'
+ resources:
 -  bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=Dancer-Plugin-REST
++  bugtracker: https://github.com/perldancer/Dancer-Plugin-REST/issues
+   homepage: http://search.cpan.org/dist/Dancer-Plugin-REST/
+   repository: https://github.com/perldancer/Dancer-Plugin-REST.git
 -version: '0.08'
++version: '0.09'
+ x_authority: cpan:SUKRIA
+ x_contributors:
+   - 'James Aitken <loonypandora at gmail.com>'
+   - 'Yanick Champoux <yanick at babyl.dyndns.org>'
diff --cc README
index e1c8f7b,c78bff1..feeb5c3
--- a/README
+++ b/README
@@@ -1,5 -1,113 +1,113 @@@
- Dancer::Plugin::REST
+ NAME
+     Dancer::Plugin::REST - A plugin for writing RESTful apps with Dancer
  
- A Dancer plugin to transform your Dancer app in a RESTful 
- webservice.
+ VERSION
 -    version 0.08
++    version 0.09
+ 
+ DESCRIPTION
+     This plugin helps you write a RESTful webservice with Dancer.
+ 
+ SYNOPSYS
+         package MyWebService;
+ 
+         use Dancer;
+         use Dancer::Plugin::REST;
+ 
+         prepare_serializer_for_format;
+ 
+         get '/user/:id.:format' => sub {
+             User->find(params->{id});
+         };
+ 
+         # curl http://mywebservice/user/42.json
+         { "id": 42, "name": "John Foo", email: "john.foo at example.com"}
+ 
+         # curl http://mywebservice/user/42.yml
+         --
+         id: 42
+         name: "John Foo"
+         email: "john.foo at example.com"
+ 
+ KEYWORDS
+   prepare_serializer_for_format
+     When this pragma is used, a before filter is set by the plugin to
+     automatically change the serializer when a format is detected in the
+     URI.
+ 
+     That means that each route you define with a :format token will trigger
+     a serializer definition, if the format is known.
+ 
+     This lets you define all the REST actions you like as regular Dancer
+     route handlers, without explicitly handling the outgoing data format.
+ 
+   resource
+     This keyword lets you declare a resource your application will handle.
+ 
+         resource user =>
+             get    => sub { # return user where id = params->{id}   },
+             create => sub { # create a new user with params->{user} },
+             delete => sub { # delete user where id = params->{id}   },
+             update => sub { # update user with params->{user}       };
+ 
+         # this defines the following routes:
+         # GET /user/:id
+         # GET /user/:id.:format
+         # POST /user
+         # POST /user.:format
+         # DELETE /user/:id
+         # DELETE /user/:id.:format
+         # PUT /user/:id
+         # PUT /user/:id.:format
+ 
+   helpers
+     Some helpers are available. This helper will set an appropriate HTTP
+     status for you.
+ 
+    status_ok
+         status_ok({users => {...}});
+ 
+     Set the HTTP status to 200
+ 
+    status_created
+         status_created({users => {...}});
+ 
+     Set the HTTP status to 201
+ 
+    status_accepted
+         status_accepted({users => {...}});
+ 
+     Set the HTTP status to 202
+ 
+    status_bad_request
+         status_bad_request("user foo can't be found");
+ 
+     Set the HTTP status to 400. This function as for argument a scalar that
+     will be used under the key error.
+ 
+    status_not_found
+         status_not_found("users doesn't exists");
+ 
+     Set the HTTP status to 404. This function as for argument a scalar that
+     will be used under the key error.
+ 
+ LICENCE
+     This module is released under the same terms as Perl itself.
+ 
+ AUTHORS
+     This module has been written by Alexis Sukrieh "<sukria at sukria.net>" and
+     Franck Cuny.
+ 
+ SEE ALSO
+     Dancer <http://en.wikipedia.org/wiki/Representational_State_Transfer>
+ 
+ AUTHORS
+     *   Alexis Sukrieh <sukria at sukria.net>
+ 
+     *   Franck Cuny <franckc at cpan.org>
+ 
+ COPYRIGHT AND LICENSE
+     This software is copyright (c) 2010 by Alexis Sukrieh.
+ 
+     This is free software; you can redistribute it and/or modify it under
+     the same terms as the Perl 5 programming language system itself.
  
diff --cc README.mkdn
index 0000000,6cdd014..3ed5fb1
mode 000000,100644..100644
--- a/README.mkdn
+++ b/README.mkdn
@@@ -1,0 -1,125 +1,125 @@@
+ # NAME
+ 
+ Dancer::Plugin::REST - A plugin for writing RESTful apps with Dancer
+ 
+ # VERSION
+ 
 -version 0.08
++version 0.09
+ 
+ # DESCRIPTION
+ 
+ This plugin helps you write a RESTful webservice with Dancer.
+ 
+ # SYNOPSYS
+ 
+     package MyWebService;
+ 
+     use Dancer;
+     use Dancer::Plugin::REST;
+ 
+     prepare_serializer_for_format;
+ 
+     get '/user/:id.:format' => sub {
+         User->find(params->{id});
+     };
+ 
+     # curl http://mywebservice/user/42.json
+     { "id": 42, "name": "John Foo", email: "john.foo at example.com"}
+ 
+     # curl http://mywebservice/user/42.yml
+     --
+     id: 42
+     name: "John Foo"
+     email: "john.foo at example.com"
+ 
+ # KEYWORDS
+ 
+ ## prepare\_serializer\_for\_format
+ 
+ When this pragma is used, a before filter is set by the plugin to automatically
+ change the serializer when a format is detected in the URI.
+ 
+ That means that each route you define with a __:format__ token will trigger a
+ serializer definition, if the format is known.
+ 
+ This lets you define all the REST actions you like as regular Dancer route
+ handlers, without explicitly handling the outgoing data format.
+ 
+ ## resource
+ 
+ This keyword lets you declare a resource your application will handle.
+ 
+     resource user =>
+         get    => sub { # return user where id = params->{id}   },
+         create => sub { # create a new user with params->{user} },
+         delete => sub { # delete user where id = params->{id}   },
+         update => sub { # update user with params->{user}       };
+ 
+     # this defines the following routes:
+     # GET /user/:id
+     # GET /user/:id.:format
+     # POST /user
+     # POST /user.:format
+     # DELETE /user/:id
+     # DELETE /user/:id.:format
+     # PUT /user/:id
+     # PUT /user/:id.:format
+ 
+ ## helpers
+ 
+ Some helpers are available. This helper will set an appropriate HTTP status for you.
+ 
+ ### status\_ok
+ 
+     status_ok({users => {...}});
+ 
+ Set the HTTP status to 200
+ 
+ ### status\_created
+ 
+     status_created({users => {...}});
+ 
+ Set the HTTP status to 201
+ 
+ ### status\_accepted
+ 
+     status_accepted({users => {...}});
+ 
+ Set the HTTP status to 202
+ 
+ ### status\_bad\_request
+ 
+     status_bad_request("user foo can't be found");
+ 
+ Set the HTTP status to 400. This function as for argument a scalar that will be used under the key __error__.
+ 
+ ### status\_not\_found
+ 
+     status_not_found("users doesn't exists");
+ 
+ Set the HTTP status to 404. This function as for argument a scalar that will be used under the key __error__.
+ 
+ # LICENCE
+ 
+ This module is released under the same terms as Perl itself.
+ 
+ # AUTHORS
+ 
+ This module has been written by Alexis Sukrieh `<sukria at sukria.net>` and Franck
+ Cuny.
+ 
+ # SEE ALSO
+ 
+ [Dancer](https://metacpan.org/pod/Dancer) [http://en.wikipedia.org/wiki/Representational\_State\_Transfer](http://en.wikipedia.org/wiki/Representational_State_Transfer)
+ 
+ # AUTHORS
+ 
+ - Alexis Sukrieh <sukria at sukria.net>
+ - Franck Cuny <franckc at cpan.org>
+ 
+ # COPYRIGHT AND LICENSE
+ 
+ This software is copyright (c) 2010 by Alexis Sukrieh.
+ 
+ This is free software; you can redistribute it and/or modify it under
+ the same terms as the Perl 5 programming language system itself.
diff --cc lib/Dancer/Plugin/REST.pm
index 855c770,af75d92..623270a
--- a/lib/Dancer/Plugin/REST.pm
+++ b/lib/Dancer/Plugin/REST.pm
@@@ -1,6 -1,9 +1,9 @@@
  package Dancer::Plugin::REST;
+ BEGIN {
+   $Dancer::Plugin::REST::AUTHORITY = 'cpan:SUKRIA';
+ }
  # ABSTRACT: A plugin for writing RESTful apps with Dancer
- 
 -$Dancer::Plugin::REST::VERSION = '0.08';
++$Dancer::Plugin::REST::VERSION = '0.09';
  use strict;
  use warnings;
  
@@@ -179,6 -183,20 +183,20 @@@ __END_
  
  =pod
  
+ =encoding UTF-8
+ 
+ =head1 NAME
+ 
+ Dancer::Plugin::REST - A plugin for writing RESTful apps with Dancer
+ 
+ =head1 VERSION
+ 
 -version 0.08
++version 0.09
+ 
+ =head1 DESCRIPTION
+ 
+ This plugin helps you write a RESTful webservice with Dancer.
+ 
  =head1 SYNOPSYS
  
      package MyWebService;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdancer-plugin-rest-perl.git



More information about the Pkg-perl-cvs-commits mailing list