unleashed 0.1.17 → 0.1.18

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: 64bf42de94dbe048a5de0a81983e05e92ae7199df7c9f1d31b3af12759af408c
4
- data.tar.gz: 10dfcd117b381f209e2e740a1a290e264ebb903d4c5121ba926aa01e440d05ed
3
+ metadata.gz: e832fec0d1cfe540b5e7bf9cb2753f2106c2e083c126d2e2fc506df1d1e3c4ab
4
+ data.tar.gz: 154208805114e65c1a74e11edf01dc219b438f5a8862768fa877d6b506db9d33
5
5
  SHA512:
6
- metadata.gz: 2b4186e4593a6eab6fd8225c3abc7ae16ad3c65e1dece3753d42a76483ae3682d52c142fa3cb66ba46631a001423e65a56e0d928a04de26772b74ca9203735a1
7
- data.tar.gz: e0f30e55e86a48cf1d37a357de098788a3f7d059d9af542f0fe862891f96c45a9e3f4c3d397444eaa49b950ca33eb44bce9f1525e37051a98e59460deae22411
6
+ metadata.gz: cdff607216e159ef446cbbeca684836a2b8994677f2df23143bf361873a5d4413b21a155e4504b9ee631606144b273db082f3b60c7792e1eef6c8209d109ecb6
7
+ data.tar.gz: c7c9ae99cd121a00e179d9fa801b3b99f69135c2d2b9362b1c724097c5fa81c162563eae3ba24aeb593f7540560bb076920156140ad4d2ea88c4dd5e7fe14817
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.1.18] - 2021-01-15
6
+
7
+ - Sort request params to generate correct signature.
8
+
5
9
  ## [0.1.17] - 2021-01-14
6
10
 
7
11
  - Update HMAC input.
@@ -83,7 +83,7 @@ module Unleashed
83
83
  def get(url, parameters = {}, headers = {}, skip_status_check = false)
84
84
  response = connection.get do |request|
85
85
  request.url "#{api_endpoint}#{url}"
86
- request.params = parameters
86
+ request.params = parameters.sort.to_h
87
87
 
88
88
  # Set headers
89
89
  request = init_default_headers(request)
@@ -2,7 +2,7 @@ module Unleashed
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 17
5
+ TINY = 18
6
6
 
7
7
  STRING = "#{MAJOR}.#{MINOR}.#{TINY}".freeze
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unleashed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.17
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nhan Nguyen