Changeset 12220 for lang/perl/Atompub
- Timestamp:
- 05/23/08 00:31:58 (6 months ago)
- Location:
- lang/perl/Atompub
- Files:
-
- 4 removed
- 12 modified
- 1 copied
-
tags/0.3.1 (copied) (copied from lang/perl/Atompub/trunk)
-
tags/0.3.1/Changes (modified) (1 diff)
-
tags/0.3.1/MANIFEST (modified) (2 diffs)
-
tags/0.3.1/Makefile.PL (modified) (1 diff)
-
tags/0.3.1/lib/Atompub.pm (modified) (1 diff)
-
tags/0.3.1/lib/Atompub/Client.pm (modified) (3 diffs)
-
tags/0.3.1/t/10.client.t (modified) (3 diffs)
-
trunk/.cvsignore (deleted)
-
trunk/Build.PL (deleted)
-
trunk/Changes (modified) (1 diff)
-
trunk/MANIFEST (modified) (2 diffs)
-
trunk/META.yml (deleted)
-
trunk/Makefile (deleted)
-
trunk/Makefile.PL (modified) (1 diff)
-
trunk/lib/Atompub.pm (modified) (1 diff)
-
trunk/lib/Atompub/Client.pm (modified) (3 diffs)
-
trunk/t/10.client.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Atompub/tags/0.3.1/Changes
r7918 r12220 1 2008-05-22 Takeru INOUE <takeru.inoue _ gmail.com> 2 3 * release 0.3.1: 4 * Makefile.PL 5 - use Module::Install 6 * lib/Atompub/Client.pm 7 - fix slug encoding scheme. 8 Thanks to Vincent 9 1 10 2008-03-13 Takeru INOUE <takeru.inoue _ gmail.com> 2 11 -
lang/perl/Atompub/tags/0.3.1/MANIFEST
r1858 r12220 1 Build.PL2 1 Changes 3 MANIFEST 4 META.yml # Will be created by "make dist" 5 Makefile.PL 6 README 2 inc/Module/AutoInstall.pm 3 inc/Module/Install.pm 4 inc/Module/Install/AutoInstall.pm 5 inc/Module/Install/Base.pm 6 inc/Module/Install/Can.pm 7 inc/Module/Install/Fetch.pm 8 inc/Module/Install/Include.pm 9 inc/Module/Install/Makefile.pm 10 inc/Module/Install/Metadata.pm 11 inc/Module/Install/Win32.pm 12 inc/Module/Install/WriteAll.pm 13 inc/Test/More.pm 14 inc/Test/Perl/Critic.pm 7 15 lib/Atompub.pm 8 16 lib/Atompub/Client.pm … … 11 19 lib/Atompub/Server.pm 12 20 lib/Atompub/Util.pm 21 Makefile.PL 22 MANIFEST This list of files 23 META.yml 24 README 13 25 t/.htaccess 14 26 t/00.load.t -
lang/perl/Atompub/tags/0.3.1/Makefile.PL
r1858 r12220 1 use lib qw(lib); 2 use Module::Build::Compat; 1 use strict; 2 use warnings; 3 use inc::Module::Install; 3 4 4 Module::Build::Compat->run_build_pl(args => \@ARGV); 5 Module::Build::Compat->write_makefile(build_class => 'Module::Build'); 5 name('Atompub'); 6 all_from('lib/Atompub.pm'); 7 license('perl'); 8 9 requires('Class::Accessor::Fast'); 10 requires('Class::Data::Inheritable'); 11 requires('DateTime'); 12 requires('DateTime::Format::W3CDTF'); 13 requires('DateTime::TimeZone'); 14 requires('Digest::SHA1'); 15 requires('File::Slurp'); 16 requires('HTTP::Date'); 17 requires('HTTP::Headers'); 18 requires('HTTP::Request'); 19 requires('HTTP::Response'); 20 requires('HTTP::Status'); 21 requires('MIME::Base64'); 22 requires('MIME::Types'); 23 requires('Module::Build::Compat'); 24 requires('Perl6::Export::Attrs'); 25 requires('Test::Perl::Critic'); 26 requires('Time::Local'); 27 requires('URI::Escape'); 28 requires('XML::Atom::Service', 0.016); 29 30 requires('version'); 31 32 build_requires('Test::More'); 33 build_requires('Test::Perl::Critic'); 34 35 auto_include; 36 auto_install; 37 38 WriteAll; -
lang/perl/Atompub/tags/0.3.1/lib/Atompub.pm
r7918 r12220 5 5 6 6 use 5.006; 7 use version; our $VERSION = qv('0.3. 0');7 use version; our $VERSION = qv('0.3.1'); 8 8 9 9 use HTTP::Headers; -
lang/perl/Atompub/tags/0.3.1/lib/Atompub/Client.pm
r7918 r12220 71 71 my $headers = HTTP::Headers->new; 72 72 $headers->content_type(media_type('entry')); 73 $headers->slug( uri_escape uri_unescape $slug) if defined $slug;73 $headers->slug(_escape(uri_unescape $slug)) if defined $slug; 74 74 $client->_create_resource({ 75 75 uri => $uri, … … 89 89 my $headers = HTTP::Headers->new; 90 90 $headers->content_type($content_type); 91 $headers->slug( uri_escape uri_unescape $slug) if defined $slug;91 $headers->slug(_escape( uri_unescape $slug)) if defined $slug; 92 92 $client->_create_resource({ 93 93 uri => $uri, … … 443 443 } 444 444 445 # see 9.7.1 in RFC 5023 446 sub _escape { 447 uri_escape(uri_escape(uri_escape(shift, "\x00-\x19"), "\x25-\x25"), "\x7e-\xff"); 448 } 449 445 450 package Atompub::Client::Info; 446 451 -
lang/perl/Atompub/tags/0.3.1/t/10.client.t
r7918 r12220 13 13 use URI::Escape; 14 14 15 my $SERVICE = 'http://teahut.sakura.ne.jp:3000/service';16 #my $SERVICE = 'http://localhost:3000/service';15 #my $SERVICE = 'http://teahut.sakura.ne.jp:3000/service'; 16 my $SERVICE = 'http://localhost:3000/service'; 17 17 my $USER = 'foo'; 18 18 my $PASS = 'foo'; … … 90 90 isa_ok $client->rc, 'XML::Atom::Entry'; 91 91 92 is $client->req->slug, uri_escape('Entry 1');92 is $client->req->slug, 'Entry 1'; 93 93 is $client->res->code, RC_CREATED; 94 94 ok my $uri = $client->res->location; … … 174 174 isa_ok $client->rc, 'XML::Atom::Entry'; 175 175 176 is $client->req->slug, uri_escape('Media 1');176 is $client->req->slug, 'Media 1'; 177 177 is $client->res->code, RC_CREATED; 178 178 ok $uri = $client->res->location; -
lang/perl/Atompub/trunk/Changes
r7918 r12220 1 2008-05-22 Takeru INOUE <takeru.inoue _ gmail.com> 2 3 * release 0.3.1: 4 * Makefile.PL 5 - use Module::Install 6 * lib/Atompub/Client.pm 7 - fix slug encoding scheme. 8 Thanks to Vincent 9 1 10 2008-03-13 Takeru INOUE <takeru.inoue _ gmail.com> 2 11 -
lang/perl/Atompub/trunk/MANIFEST
r1858 r12220 1 Build.PL2 1 Changes 3 MANIFEST 4 META.yml # Will be created by "make dist" 5 Makefile.PL 6 README 2 inc/Module/AutoInstall.pm 3 inc/Module/Install.pm 4 inc/Module/Install/AutoInstall.pm 5 inc/Module/Install/Base.pm 6 inc/Module/Install/Can.pm 7 inc/Module/Install/Fetch.pm 8 inc/Module/Install/Include.pm 9 inc/Module/Install/Makefile.pm 10 inc/Module/Install/Metadata.pm 11 inc/Module/Install/Win32.pm 12 inc/Module/Install/WriteAll.pm 13 inc/Test/More.pm 14 inc/Test/Perl/Critic.pm 7 15 lib/Atompub.pm 8 16 lib/Atompub/Client.pm … … 11 19 lib/Atompub/Server.pm 12 20 lib/Atompub/Util.pm 21 Makefile.PL 22 MANIFEST This list of files 23 META.yml 24 README 13 25 t/.htaccess 14 26 t/00.load.t -
lang/perl/Atompub/trunk/Makefile.PL
r1858 r12220 1 use lib qw(lib); 2 use Module::Build::Compat; 1 use strict; 2 use warnings; 3 use inc::Module::Install; 3 4 4 Module::Build::Compat->run_build_pl(args => \@ARGV); 5 Module::Build::Compat->write_makefile(build_class => 'Module::Build'); 5 name('Atompub'); 6 all_from('lib/Atompub.pm'); 7 license('perl'); 8 9 requires('Class::Accessor::Fast'); 10 requires('Class::Data::Inheritable'); 11 requires('DateTime'); 12 requires('DateTime::Format::W3CDTF'); 13 requires('DateTime::TimeZone'); 14 requires('Digest::SHA1'); 15 requires('File::Slurp'); 16 requires('HTTP::Date'); 17 requires('HTTP::Headers'); 18 requires('HTTP::Request'); 19 requires('HTTP::Response'); 20 requires('HTTP::Status'); 21 requires('MIME::Base64'); 22 requires('MIME::Types'); 23 requires('Module::Build::Compat'); 24 requires('Perl6::Export::Attrs'); 25 requires('Test::Perl::Critic'); 26 requires('Time::Local'); 27 requires('URI::Escape'); 28 requires('XML::Atom::Service', 0.016); 29 30 requires('version'); 31 32 build_requires('Test::More'); 33 build_requires('Test::Perl::Critic'); 34 35 auto_include; 36 auto_install; 37 38 WriteAll; -
lang/perl/Atompub/trunk/lib/Atompub.pm
r7918 r12220 5 5 6 6 use 5.006; 7 use version; our $VERSION = qv('0.3. 0');7 use version; our $VERSION = qv('0.3.1'); 8 8 9 9 use HTTP::Headers; -
lang/perl/Atompub/trunk/lib/Atompub/Client.pm
r7918 r12220 71 71 my $headers = HTTP::Headers->new; 72 72 $headers->content_type(media_type('entry')); 73 $headers->slug( uri_escape uri_unescape $slug) if defined $slug;73 $headers->slug(_escape(uri_unescape $slug)) if defined $slug; 74 74 $client->_create_resource({ 75 75 uri => $uri, … … 89 89 my $headers = HTTP::Headers->new; 90 90 $headers->content_type($content_type); 91 $headers->slug( uri_escape uri_unescape $slug) if defined $slug;91 $headers->slug(_escape( uri_unescape $slug)) if defined $slug; 92 92 $client->_create_resource({ 93 93 uri => $uri, … … 443 443 } 444 444 445 # see 9.7.1 in RFC 5023 446 sub _escape { 447 uri_escape(uri_escape(uri_escape(shift, "\x00-\x19"), "\x25-\x25"), "\x7e-\xff"); 448 } 449 445 450 package Atompub::Client::Info; 446 451 -
lang/perl/Atompub/trunk/t/10.client.t
r7918 r12220 13 13 use URI::Escape; 14 14 15 my $SERVICE = 'http://teahut.sakura.ne.jp:3000/service';16 #my $SERVICE = 'http://localhost:3000/service';15 #my $SERVICE = 'http://teahut.sakura.ne.jp:3000/service'; 16 my $SERVICE = 'http://localhost:3000/service'; 17 17 my $USER = 'foo'; 18 18 my $PASS = 'foo'; … … 90 90 isa_ok $client->rc, 'XML::Atom::Entry'; 91 91 92 is $client->req->slug, uri_escape('Entry 1');92 is $client->req->slug, 'Entry 1'; 93 93 is $client->res->code, RC_CREATED; 94 94 ok my $uri = $client->res->location; … … 174 174 isa_ok $client->rc, 'XML::Atom::Entry'; 175 175 176 is $client->req->slug, uri_escape('Media 1');176 is $client->req->slug, 'Media 1'; 177 177 is $client->res->code, RC_CREATED; 178 178 ok $uri = $client->res->location;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)