payoneer 0.1.11 → 0.1.12

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 (2) hide show
  1. data/lib/payoneer/request.rb +4 -2
  2. metadata +1 -1
@@ -20,9 +20,11 @@ module Payoneer
20
20
  end
21
21
 
22
22
  def host
23
- return "api.payoneer.com" if config.environment.eql?(:production)
23
+ sandbox = config.environment.eql?(:production) ? "" : "sandbox."
24
+ subdomain = config.client_cert ? "apicert." : "api."
25
+ root_domain = "payoneer.com"
24
26
 
25
- config.client_cert ? "apicert.sandbox.payoneer.com" : "api.sandbox.payoneer.com"
27
+ [subdomain, sandbox, root_domain].join()
26
28
  end
27
29
 
28
30
  def configure_security
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: payoneer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: