fat_zebra 2.0.11 → 2.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWQzOTgwOGU5OTNmYzA2ZWM5MWExODlhYmRkOWM5MTdkYzg1NTA5Zg==
4
+ NzVlYjI2NzMyYmMwYjQzZWQ2N2EwY2I1ZTRlMjUyNDYxMGI2OTNkOA==
5
5
  data.tar.gz: !binary |-
6
- NDEyNjJlMmE5NjljZWEwMmRkYzBlNjYwMjU3ZGI0YTllZmRhZmY2ZA==
6
+ NjI3ZDZiNTQyMzZiYzcwMjVmYWMxODdlZTkzMjZiNTZmMDUzOTEyNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OGJkMTA3MGY4NzgyNGFhMjI4MDY4YjgzNGEzNmYzOGYwOTI4ZTdlZWVhOTMy
10
- OTFjN2VkYzY1YzRkOTIyOGY3YzVkMWUyNWE1ZjJlNzZjMWRiNDA4NzYxZGU5
11
- NDc0NzAzZGE2ZjNiZTQ0MzMyZDkyMmY3Y2I2YjNlNjMxYjQ4ZmE=
9
+ MmE1NTQyMTdlYWNmZWM3YTQxNGI5NjA1ZWUyNDkyMGUyOWQ4M2VmNzJkMTk2
10
+ M2Y0MWEwNGVlNDRjMzgxZWRiNzhmYmUwZDM4ZmFmMTdhOGJhNzI1MjhiNzM3
11
+ ZGUxMmUxMWNiYzdmMDM3ODZhYjI3NjQwZmJlNTA0ODUxNjI3YjE=
12
12
  data.tar.gz: !binary |-
13
- YzllOWE1MjYyN2U2NzdjYjQ2ZmFlMDI0MjQ1NjZjZTI0YWQ1MmE3OTRkZGQ4
14
- YzU5MGZhNDA5MGMwNjdhMjAwNjllMjRlM2U4NzU1ZDA1NjUxNDVhZDc0ZjRi
15
- MzhjNDQ4ZTQ1Njc0N2MyZjk4OWQ1ZWU0YTNmYzFkMTA5ZmMxYjA=
13
+ N2ExMGIxM2FmNzBjMDg2MDMxZjgwMzlhNWVmZDgyOGY1NmI0ZjViOTYzZTUw
14
+ M2E1NGM5ODU0YjBiYWMyMDQ4NGJiMTQ4MmVkOWJjMjQ3ODY3NjQwMWFiYTMw
15
+ NjVlYWRhOGQ2YWIzZGE1NDA5ODYxYTJmMTZkNGUzNmMyMWJhZGU=
@@ -1,3 +1,3 @@
1
1
  module FatZebra
2
- VERSION = "2.0.11"
2
+ VERSION = "2.0.12"
3
3
  end
@@ -0,0 +1,15 @@
1
+ module RestClientExt
2
+ module ProxyRequest
3
+ def net_http_class
4
+ if RestClient.proxy
5
+ proxy_uri = URI.parse(RestClient.proxy)
6
+ Net::HTTP::Proxy(proxy_uri.host, proxy_uri.port, proxy_uri.user, proxy_uri.password)
7
+ elsif @args[:proxy]
8
+ proxy_uri = URI.parse(@args[:proxy])
9
+ Net::HTTP::Proxy(proxy_uri.host, proxy_uri.port, proxy_uri.user, proxy_uri.password)
10
+ else
11
+ Net::HTTP
12
+ end
13
+ end
14
+ end
15
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fat_zebra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.11
4
+ version: 2.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Savage
@@ -134,6 +134,7 @@ files:
134
134
  - lib/fat_zebra/models/refund.rb
135
135
  - lib/fat_zebra/models/response.rb
136
136
  - lib/fat_zebra/version.rb
137
+ - lib/rest-client/request_ext.rb
137
138
  - spec/config_spec.rb
138
139
  - spec/gateway_spec.rb
139
140
  - spec/models/purchase_spec.rb