paxful_client 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd4bceb9faf23e3312e6fcacc3e05a4c1ec64ec063c3e47eb35fca7258046203
4
- data.tar.gz: 6b4b36e4aa6118db45526d1224d4fa88fcb26eee350109a5ab5421cfa353be02
3
+ metadata.gz: 254db880129744b08cde6919bfc46602d477b2a3157cf4b3b5cfa5c915d073fe
4
+ data.tar.gz: 8d779a7267a67da361b314491c60256a0f5ce13744d3cb20ba3e7cfcc2b5f29d
5
5
  SHA512:
6
- metadata.gz: 86718a060d6075badbbefe1d0e6f261be85ff21939019fccde70433e5f0a6ffe69a33bff1c2f3dce2e97698662ddd20687401131f95b588877a0a9d807f7f243
7
- data.tar.gz: 715d18fbcd1adb7855c492673f72582c652e92657e474c4af4c2df483289ec71bb321f13d2f328615af01d6fc365bd3cf6b89cee23c04d4840254d4301bb5f2b
6
+ metadata.gz: 7add11eb46dd431527e2b796e206ffa2308a17277736b4944a343b6c03d765e6134f23f483f7da3e018a3fb045ece8ee4e772f6af0b558fb265b0ce4d56e7421
7
+ data.tar.gz: 6e2b95a8c2ef5b291764d8f9292e1d145c0e76df509b33a9edc4e54af3a07be6c5808281ef7f40c4f1b7dca935fd084dd09ae5366573c92bb2855215da9252f8
@@ -5,4 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  ## [Unreleased]
8
+ ### Changed
9
+ - refactor `get_balance` request
10
+
11
+ ## [0.1.0] - 2020-09-12
12
+ ### Added
8
13
  - add `get_balance` endpoint
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- paxful_client (0.1.0)
4
+ paxful_client (0.2.0)
5
5
  activesupport
6
6
  api_client_base
7
7
  typhoeus
@@ -21,10 +21,17 @@ module PaxfulClient
21
21
 
22
22
  def body
23
23
  nonce = Time.now.to_i
24
- payload = "apikey=#{key}&nonce=#{nonce}"
25
- apiseal = OpenSSL::HMAC.hexdigest("SHA256", secret, payload)
26
-
27
- "apikey=#{key}&nonce=#{nonce}&apiseal=#{apiseal}"
24
+ apiseal = OpenSSL::HMAC.hexdigest(
25
+ "SHA256",
26
+ secret,
27
+ "apikey=#{key}&nonce=#{nonce}",
28
+ )
29
+
30
+ [
31
+ "apikey=#{key}",
32
+ "nonce=#{nonce}",
33
+ "apiseal=#{apiseal}",
34
+ ].join("&")
28
35
  end
29
36
 
30
37
  end
@@ -1,3 +1,3 @@
1
1
  module PaxfulClient
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paxful_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Chavez