Skip to content
Browse files

ready to be merged

  • Loading branch information...
1 parent a80a900 commit cdc0e3a3ed61f9a50fe22d1e6f24395d34d280f0 Ryo Anazawa committed Mar 4, 2013
Showing with 14 additions and 7 deletions.
  1. +6 −2 Changes
  2. +3 −2 lib/CGI/Header.pm
  3. +2 −0 t/10_basic.t
  4. +3 −3 t/28_pragma.t
View
8 Changes
@@ -5,7 +5,11 @@ Revision history for Perl extension CGI::Header.
"" -> as_string
bool -> SCALAR
- - env() is obsolete and will be removed in 0.31
+ - env() is obsolete and will be removed in 0.31.
+
+ [DOCUMENTATION]
+
+ Add "WRITING Blosxom PLUGINS" to "EXAMPLES"
[INCOMPATIBLE CHANGES]
@@ -43,7 +47,7 @@ Revision history for Perl extension CGI::Header.
CGI::Header is not compatible with CGI::Simple at this time.
This module will be adapted to CGI::Simple gradually.
- (no_cache() isn't supported by CGI.pm)
+ (no_cache() isn't supported by CGI.pm, for example)
0.22 Feb 26th, 2013
View
5 lib/CGI/Header.pm
@@ -861,8 +861,9 @@ to CGI response headers sent by blosxom.cgi:
1;
-Blosxom depends on the procedural interface of CGI.pm,
-and so you don't have to pass C<$query> to C<new()> in this case.
+L<Blosxom|http://blosxom.sourceforge.net/> depends on the procedural
+interface of CGI.pm, and so you don't have to pass
+C<$query> to C<new()> in this case.
=head2 CONVERTING TO HTTP::Headers OBJECTS
View
2 t/10_basic.t
@@ -112,8 +112,10 @@ subtest 'basic' => sub {
# is_empty()
%header = ();
ok !$header->is_empty;
+ ok $header;
%header = ( -type => q{} );
ok $header->is_empty;
+ ok !$header;
# delete()
%header = ();
View
6 t/28_pragma.t
@@ -36,7 +36,7 @@ subtest 'cache()' => sub {
$header->query->cache(1);
is $header{Pragma}, 'no-cache';
ok exists $header{Pragma};
- throws_ok { delete $header{Pragma} }
- qr{^Modification of a read-only value attempted};
- is_deeply $header->header, {};
+ my $expected = qr{^Modification of a read-only value attempted};
+ throws_ok { delete $header{Pragma} } $expected;
+ throws_ok { $header{Pragma} = 'no-cache' } $expected;
};

0 comments on commit cdc0e3a

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