paypal_nvp 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/lib/paypal_nvp.rb +3 -1
- data/paypal_nvp.gemspec +2 -2
- metadata +2 -2
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('paypal_nvp', '0.1.
|
5
|
+
Echoe.new('paypal_nvp', '0.1.3') do |p|
|
6
6
|
p.description = "Paypal NVP API Class."
|
7
7
|
p.url = "http://github.com/solisoft/paypal_nvp"
|
8
8
|
p.author = "Olivier BONNAURE - Direct Interactive LLC"
|
data/lib/paypal_nvp.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'cgi'
|
2
|
+
|
1
3
|
class PaypalNVP
|
2
4
|
def self.included(base)
|
3
5
|
base.extend ClassMethods
|
@@ -34,7 +36,7 @@ class PaypalNVP
|
|
34
36
|
if response.kind_of? Net::HTTPSuccess
|
35
37
|
response.body.split("&").each do |element|
|
36
38
|
a = element.split("=")
|
37
|
-
data[a[0]] = a[1] if a.size == 2
|
39
|
+
data[a[0]] = CGI.unescape(a[1]) if a.size == 2
|
38
40
|
end
|
39
41
|
end
|
40
42
|
data
|
data/paypal_nvp.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{paypal_nvp}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Olivier BONNAURE - Direct Interactive LLC"]
|
9
|
-
s.date = %q{
|
9
|
+
s.date = %q{2010-05-28}
|
10
10
|
s.description = %q{Paypal NVP API Class.}
|
11
11
|
s.email = %q{o.bonnaure@directinteractive.com}
|
12
12
|
s.extra_rdoc_files = ["lib/paypal_nvp.rb", "README.rdoc"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paypal_nvp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olivier BONNAURE - Direct Interactive LLC
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-05-28 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|