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 +8 -8
- data/lib/fat_zebra/version.rb +1 -1
- data/lib/rest-client/request_ext.rb +15 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzVlYjI2NzMyYmMwYjQzZWQ2N2EwY2I1ZTRlMjUyNDYxMGI2OTNkOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjI3ZDZiNTQyMzZiYzcwMjVmYWMxODdlZTkzMjZiNTZmMDUzOTEyNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmE1NTQyMTdlYWNmZWM3YTQxNGI5NjA1ZWUyNDkyMGUyOWQ4M2VmNzJkMTk2
|
10
|
+
M2Y0MWEwNGVlNDRjMzgxZWRiNzhmYmUwZDM4ZmFmMTdhOGJhNzI1MjhiNzM3
|
11
|
+
ZGUxMmUxMWNiYzdmMDM3ODZhYjI3NjQwZmJlNTA0ODUxNjI3YjE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
N2ExMGIxM2FmNzBjMDg2MDMxZjgwMzlhNWVmZDgyOGY1NmI0ZjViOTYzZTUw
|
14
|
+
M2E1NGM5ODU0YjBiYWMyMDQ4NGJiMTQ4MmVkOWJjMjQ3ODY3NjQwMWFiYTMw
|
15
|
+
NjVlYWRhOGQ2YWIzZGE1NDA5ODYxYTJmMTZkNGUzNmMyMWJhZGU=
|
data/lib/fat_zebra/version.rb
CHANGED
@@ -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.
|
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
|