Skip to content

Commit

Permalink
don't penalize people who were following directions
Browse files Browse the repository at this point in the history
  • Loading branch information
John Beppu committed Dec 11, 2008
1 parent 0547d29 commit c0afc14
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
* see if we can load new attachment data asynchronously.
* write tests

1.05 2008-12-10
- Regarding RT#41596, I don't want to penalize people who
were following the docs, so when you say
$query->({ group => 'false' }) you'll get
"?group=false" just like before.
DWIM can be a double-edged sword. :-(

1.04 2008-12-10
- RT#41596: accepted suggestion from bug report to change
how the $query function deals with the 'group' parameter.
Expand Down
2 changes: 1 addition & 1 deletion lib/AnyEvent/CouchDB.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package AnyEvent::CouchDB;

use strict;
use warnings;
our $VERSION = '1.04';
our $VERSION = '1.05';

use JSON::XS;
use AnyEvent::HTTP;
Expand Down
4 changes: 3 additions & 1 deletion lib/AnyEvent/CouchDB/Database.pm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ our $query = sub {
$value = ref($value) ? encode_json($value) : (defined $value) ? qq{"$value"} : 'null';
}
if ($name eq 'group') {
$value = $value ? 'true' : 'false';
$value = $value
? ( ($value eq 'false') ? 'false' : 'true' )
: 'false';
}
push @buf, "$name=".uri_escape_utf8($value);
}
Expand Down

0 comments on commit c0afc14

Please sign in to comment.