solisoft-paypal_nvp 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -6,7 +6,8 @@ Paypal NVP allow to connect your Ruby on Rails application to the Paypal NVP API
6
6
 
7
7
  The recommended way is that you get the gem:
8
8
 
9
- sudo gem install paypal_nvp
9
+ $ gem sources -a http://gems.github.com (you only have to do this once)
10
+ $ sudo gem install solisoft-paypal_nvp
10
11
 
11
12
  PaypalNVP need a paypal.yml file in your config directory.
12
13
 
@@ -33,4 +34,4 @@ PaypalNVP need a paypal.yml file in your config directory.
33
34
  # other params needed
34
35
  }
35
36
  result = p.call_paypal(data) # will return a hash
36
- puts result["ACK"] # Success
37
+ puts result["ACK"] # Success
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.1') do |p|
5
+ Echoe.new('paypal_nvp', '0.1.2') 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
@@ -19,14 +19,14 @@ class PaypalNVP
19
19
  qs << "#{key.to_s.upcase}=#{url_encode(value)}"
20
20
  end
21
21
  qs = "?#{qs * "&"}"
22
-
22
+
23
23
  uri = URI.parse(@url)
24
24
  http = Net::HTTP.new(uri.host, uri.port)
25
25
  http.use_ssl = true
26
26
  http.verify_mode = OpenSSL::SSL::VERIFY_NONE
27
27
 
28
28
  response = http.start {
29
- http.request_get(uri.path) {|res|
29
+ http.request_get(uri.path + qs) {|res|
30
30
  res
31
31
  }
32
32
  }
data/paypal_nvp.gemspec CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{paypal_nvp}
5
- s.version = "0.1.1"
5
+ s.version = "0.1.2"
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{2009-03-31}
9
+ s.date = %q{2009-04-07}
10
10
  s.description = %q{Paypal NVP API Class.}
11
11
  s.email = %q{o.bonnaure@directinteractive.com}
12
- s.extra_rdoc_files = ["lib/paypal_nvp.rb", "README.rdoc"]
13
- s.files = ["init.rb", "lib/paypal_nvp.rb", "Manifest", "Rakefile", "README.rdoc", "paypal_nvp.gemspec"]
12
+ s.extra_rdoc_files = ["README.rdoc", "lib/paypal_nvp.rb"]
13
+ s.files = ["Manifest", "README.rdoc", "Rakefile", "init.rb", "lib/paypal_nvp.rb", "paypal_nvp.gemspec"]
14
14
  s.has_rdoc = true
15
15
  s.homepage = %q{http://github.com/solisoft/paypal_nvp}
16
16
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Paypal_nvp", "--main", "README.rdoc"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solisoft-paypal_nvp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
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: 2009-03-31 00:00:00 -07:00
12
+ date: 2009-04-07 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -20,14 +20,14 @@ executables: []
20
20
  extensions: []
21
21
 
22
22
  extra_rdoc_files:
23
- - lib/paypal_nvp.rb
24
23
  - README.rdoc
25
- files:
26
- - init.rb
27
24
  - lib/paypal_nvp.rb
25
+ files:
28
26
  - Manifest
29
- - Rakefile
30
27
  - README.rdoc
28
+ - Rakefile
29
+ - init.rb
30
+ - lib/paypal_nvp.rb
31
31
  - paypal_nvp.gemspec
32
32
  has_rdoc: true
33
33
  homepage: http://github.com/solisoft/paypal_nvp