payhyper 0.4.4 → 0.4.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.
- checksums.yaml +4 -4
- data/lib/payhyper.rb +1 -1
- data/lib/payhyper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3f98405a350ebb75e673148d2ae235cb42b0d8c
|
4
|
+
data.tar.gz: 9b7e1e865cfaefab7406cf41f62299417e08b70e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6bbe1abf61207358a5339bea06d08c9dc35b154b283bdeb3de2a4801a0339267d3b7064b3491a15f69f4a937dc921f9453f6ce080503f68c5650d6acc4eaa51
|
7
|
+
data.tar.gz: b7ee9b5cd7b4dec04bed129c2795e08383c7eec35cd530f90befbea37a39ecfa67667090cb3f0292d80e4638ce3a86330976768043c01c3247c4a2da262c918c
|
data/lib/payhyper.rb
CHANGED
@@ -129,7 +129,7 @@ module PayHyper
|
|
129
129
|
uri = URI.parse(@base_url + endpoint)
|
130
130
|
content_type = "application/json; charset=utf-8"
|
131
131
|
signature = Security.sign(@access_key_secret, ["POST", uri.port == uri.default_port ? uri.host : "#{uri.host}:#{uri.port}", uri.request_uri, content_type, body.encode("UTF-8")].join("\n")) # Would be great if this could read directly from the request's headers.
|
132
|
-
res = RestClient.post(@base_url + endpoint, body, :content_type => content_type, :authorization => "Hyper #{@access_key_id}:#{signature}")
|
132
|
+
res = RestClient.post(@base_url + endpoint, body, :content_type => content_type, :authorization => "Hyper #{@access_key_id}:#{signature}", ssl_ciphers: RestClient::Request::DefaultCiphers)
|
133
133
|
failure = false
|
134
134
|
rescue RestClient::Exception => e # HTTP status codes not in 200-207, 301-303 and 307 result in a RestClient::Exception.
|
135
135
|
if e.http_code && e.http_code.to_i == 422 && e.http_body
|
data/lib/payhyper/version.rb
CHANGED