modulr-api 0.0.14 → 0.0.15

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
  SHA256:
3
- metadata.gz: 89f8e744ef9dc24c312a164bd9fc7dec490071098fd6a9faa2079bc5816fb841
4
- data.tar.gz: e118a6d60a7f182896163ade6cb8fc3bb22c0da8323cfa1b72ceece90389579d
3
+ metadata.gz: 2461042a33c2ef6c899c9bca84bb7aaa06488fc378bb7bd25edf8bde1d26ebec
4
+ data.tar.gz: 4735dc4188f8bb2345f552cc6c950ad7e876780f35d2fe4531d6a6a725822b22
5
5
  SHA512:
6
- metadata.gz: 9afbe0846768268eaa0768b56018938accd47f8954e7397051f28077b690324393bc1e6430cf7bdd5a8cc99aae9bfc9e73bc7e7ada2972a6b5a3985ff2c37f89
7
- data.tar.gz: 675bc7c1c9d176aef8110bafd77d3bacb0f42a5b8809e0eeafa4a11bb6eae9853f1d21f6c10aed69318061961fb46d2b8fc8792fdeb84ce20af8f2a15907ef4d
6
+ metadata.gz: ba8e09076f2fd69a474143b32f67e494cb2c9091d1312332da719eff42cc1ad3f4e806a7476f9b6784496515df8c965a0a4e33508aa8a87516ae0477b4e707a8
7
+ data.tar.gz: d884bca4495f5b88ee93c1a303382092f9a52cc633fa25aac5c59ce4206210d8c0302f67dd4f1d5556531c54d3cf8e8e41b47954d415c2c579cb87529cc2b12f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- modulr-api (0.0.14)
4
+ modulr-api (0.0.15)
5
5
  faraday (~> 1.0)
6
6
  faraday_middleware (~> 1.0)
7
7
 
@@ -145,4 +145,4 @@ DEPENDENCIES
145
145
  webmock (~> 2.1)
146
146
 
147
147
  BUNDLED WITH
148
- 2.3.15
148
+ 2.4.3
@@ -17,7 +17,7 @@ module Modulr
17
17
  @timestamp = timestamp
18
18
  @authorization = [
19
19
  "Signature keyId=\"#{apikey}\"",
20
- 'algorithm="hmac-sha1"',
20
+ 'algorithm="hmac-sha512"',
21
21
  'headers="date x-mod-nonce"',
22
22
  "signature=\"#{signature}\"",
23
23
  ].join(",")
@@ -26,7 +26,7 @@ module Modulr
26
26
  def self.calculate(apikey:, apisecret:, nonce: SecureRandom.base64(30), timestamp: DateTime.now.httpdate)
27
27
  signature_string = "date: #{timestamp}\nx-mod-nonce: #{nonce}"
28
28
  digest = OpenSSL::HMAC.digest(
29
- "SHA1",
29
+ "SHA512",
30
30
  apisecret.dup.force_encoding("UTF-8"),
31
31
  signature_string.dup.force_encoding("UTF-8")
32
32
  )
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Modulr
4
- VERSION = "0.0.14"
4
+ VERSION = "0.0.15"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modulr-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aitor García Rey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-16 00:00:00.000000000 Z
11
+ date: 2023-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday