elucid-adaptive_pay 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{elucid-adaptive_pay}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Frederik Fix", "Justin Giancola"]
12
- s.date = %q{2010-08-05}
12
+ s.date = %q{2010-08-09}
13
13
  s.description = %q{Wrapper around the Paypal Adaptive Payments API}
14
14
  s.email = %q{elucid@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -74,7 +74,9 @@ module AdaptivePay
74
74
  # the optional second param to URI.escape defaults to URI::UNSAFE
75
75
  # which doesn't match '&' as it is a valid URI character.
76
76
  # however, '&' is not a valid character within NVP values.
77
- escaped_v = URI.escape(v.to_s, /[^-_.!~*'()a-zA-Z\d;\/?:@+$#,\[\]]/n)
77
+ # additionally, PayPal interprets '+' as ' ' (similar to
78
+ # application/x-www-form-urlencoded) so it must be escaped also.
79
+ escaped_v = URI.escape(v.to_s, /[^-_.!~*'()a-zA-Z\d;\/?:@$#,\[\]]/n)
78
80
  result << "#{k}=#{escaped_v}"
79
81
  end
80
82
  result.join("&")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elucid-adaptive_pay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frederik Fix
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-08-05 00:00:00 -04:00
13
+ date: 2010-08-09 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies: []
16
16