paypal_nvp 0.2.4 → 0.2.5

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.
Files changed (3) hide show
  1. data/lib/paypal_nvp.rb +4 -2
  2. data/paypal_nvp.gemspec +1 -1
  3. metadata +1 -1
data/lib/paypal_nvp.rb CHANGED
@@ -7,7 +7,7 @@ class PaypalNVP
7
7
  base.extend ClassMethods
8
8
  end
9
9
 
10
- def initialize(sandbox = false, extras = {}, rootCA = '/etc/ssl/certs')
10
+ def initialize(sandbox = false, extras = {})
11
11
  type = sandbox ? "sandbox" : "live"
12
12
  config = YAML.load_file("#{Rails.root}/config/paypal.yml") rescue nil
13
13
  @logger = defined?(Rails.logger) && Rails.logger || Logger.new(STDOUT)
@@ -21,14 +21,16 @@ class PaypalNVP
21
21
  @user = config[type]["user"]
22
22
  @pass = config[type]["pass"]
23
23
  @cert = config[type]["cert"]
24
+ @rootCA = config[type]["rootca"]
24
25
  else
25
26
  @url = extras[:url]
26
27
  @user = extras[:user]
27
28
  @pass = extras[:pass]
28
29
  @cert = extras[:cert]
30
+ @rootCA = extras[:rootca]
29
31
  end
30
32
  @extras = extras
31
- @rootCA = rootCA
33
+ @rootCA = @rootCA || '/etc/ssl/certs'
32
34
  end
33
35
 
34
36
  def call_paypal(data)
data/paypal_nvp.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{paypal_nvp}
5
- s.version = "0.2.4"
5
+ s.version = "0.2.5"
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 - IDFuze.com"]
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.2.4
4
+ version: 0.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: