fat_zebra 2.0.9 → 2.0.10

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDcxZDYzZmQwODgxNjYyZjAzZmVkMzkyY2RhMTZhYWZkN2NjZWFmNw==
4
+ Mjc5NDhjZDc3ZGIyODQxNDNjNmZjNDIyMjVmNDkyYTJhMjE5YTVjNg==
5
5
  data.tar.gz: !binary |-
6
- ZmRjNDI0ZGQxMGQ1NmRkNWE1NDFkNTkwMDIwYTdiMmUxMTM2NTFjMw==
6
+ ZjA5YjYwYzM4MDhjOTQzZmZjODAzMWJjYWIzYjQwMjgzMWViZjE3ZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWNmZTg1N2Y3MmE0NmY5ZmExOGIwMGRlZmMzZjgwMjUwMjE1NmQzNTAzNjcx
10
- MTY4MjRkZWE3MjhiZjRkYjE0ZWUxODI3NTkyODEwOTJmNjkzNjk0NWFjNTVm
11
- ZmE2NGVmMTc2ZWFjZmM4NjBlNzFhODY5NGYwMzE4MjIxMGZhMDI=
9
+ YTBkMTg3ZTgzNGIzYWMzZTU3ZjRmNjU2OWEzOGM1MThlMGIyNzVhNTIzZjNk
10
+ M2Y0MjExYTBjMjc3MTQ0NDZkNDY0MDlmMDZmZTkzY2FhZGVlM2YzZjMyYmUz
11
+ Zjc1MDZmZDY0ZjlmMzc5ZmZkMzFmM2Q3OTM1YWViNDliOTgzNmI=
12
12
  data.tar.gz: !binary |-
13
- ZGEzMDBmODNlY2YyNWJkN2U5YzIzYjdhY2Q3ZDI5MWZmYzJkZDk3N2EwNDJi
14
- OTQwNzQwZmQxOWNkODUwNDU0NWQ5ZmFkN2U1MTM4ZTJiMmIyMTY4ZTg2MDAz
15
- YTQ2MzYwNGMzZTc1NjkyMDQ4OGYwOTE1NzM5YWYzMTAzNGRiZjM=
13
+ OTExNjE1YmM5Y2YyY2NlOTMwNzQ0YmI0OTlmYjI2OTY5NjJjNTM1ZjZkM2M1
14
+ NWViNTVlZDNmMWU5YzdiMjZmNzkzYjE0Y2Q2MGZjZjY4MmNlNTczZTllNzkx
15
+ Y2M2OTQ2NTcyOTZkZjkyZDZmMWUwNjQzMzdlNjNlZWZmZDU2ZTc=
data/FatZebra.gemspec CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
  s.add_development_dependency "yard-tomdoc"
26
26
 
27
27
 
28
- s.add_runtime_dependency "rest-client"
28
+ s.add_runtime_dependency "rest-client", "2.0.0.rc2"
29
29
  s.add_runtime_dependency "json"
30
30
  s.add_runtime_dependency "activesupport", ">= 3.2"
31
31
  end
@@ -40,14 +40,14 @@ module FatZebra
40
40
  #
41
41
  # @return Nil
42
42
  def proxy=(val)
43
- RestClient.proxy = val
43
+ self.options[:proxy] = val
44
44
  end
45
45
 
46
46
  # Get the proxy set for RestClient
47
47
  #
48
48
  # @return [String] the proxy set for RestClient
49
49
  def proxy
50
- RestClient.proxy
50
+ self.options[:proxy]
51
51
  end
52
52
 
53
53
  # Performs a purchase transaction against the gateway
@@ -258,7 +258,7 @@ module FatZebra
258
258
  :verify_ssl => OpenSSL::SSL::VERIFY_PEER
259
259
  } : {}
260
260
 
261
- opts = {:user => self.username, :password => self.token}
261
+ opts = {:user => self.username, :password => self.token, proxy: self.options[:proxy]}
262
262
  if method == :get
263
263
  url = build_url(uri, data)
264
264
  else
@@ -1,3 +1,3 @@
1
1
  module FatZebra
2
- VERSION = "2.0.9"
2
+ VERSION = "2.0.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fat_zebra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.9
4
+ version: 2.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Savage
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-13 00:00:00.000000000 Z
11
+ date: 2016-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -70,16 +70,16 @@ dependencies:
70
70
  name: rest-client
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: 2.0.0.rc2
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ! '>='
80
+ - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: 2.0.0.rc2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: json
85
85
  requirement: !ruby/object:Gem::Requirement