payhyper 0.4.6 → 0.4.7

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aada0d54d9876d60aef30729eb1f363164d511ed
4
- data.tar.gz: ffdeca74a07d40f5b3a00e944e779a351cc718ed
3
+ metadata.gz: 2ef837e7e2923b88aa219d8564924aaabd4fecac
4
+ data.tar.gz: 52b6bf4edb23843ebdc81b72fd1fc88e34353375
5
5
  SHA512:
6
- metadata.gz: 9e8ba5dd1d185202991a5bf98926ffe7dc6e4e64cb4a542e9373949f32ca45e9c410a6551cc6392b33bbe23b9e2ec171b4509b2ea0ed2f672a10c5e03c022190
7
- data.tar.gz: a5d4e8a1512decaab64cbb18232dbad90622353d193e788b06b03d34f8cd04e35844bfcbfdec1f8296b26935f8a395d6d5edc0e6e2ec8104f2d0ba9f9a2ceee0
6
+ metadata.gz: a1d7d3a67a085fe6e7f19a586d6d65cd6334a2110c85f09108bfe654565eabf59d86922f701a47f01d6d97b43bdd7ada1c993876e93654ff0619d3c293019ce6
7
+ data.tar.gz: 9e3a7af54c67cee426d583729d43d7c3ffb0656eeec00d718e08ef4694e6101d462f2e593b34b850519cbec56113fd446089c71cdf1220072ee50ed665b09910
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}", ssl_ciphers: RestClient::Request::DefaultCiphers)
132
+ res = RestClient.post(@base_url + endpoint, body, :content_type => content_type, :authorization => "Hyper #{@access_key_id}:#{signature}")
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
@@ -1,3 +1,3 @@
1
1
  module PayHyper
2
- VERSION = '0.4.6'
2
+ VERSION = '0.4.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: payhyper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sinan Taifour