kraken_client 1.0.3 → 1.1.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
  SHA1:
3
- metadata.gz: 199e8066805fb2b551cfc13c15ec1a91c959a966
4
- data.tar.gz: a899a169419ad82cf202d86b057298796573bb80
3
+ metadata.gz: 94c1bf46988852a77f096554d7e253209d01e821
4
+ data.tar.gz: c94550fe347df08a865971a49254c80160389d84
5
5
  SHA512:
6
- metadata.gz: dd95f5772f8a2a3a5d59b4efaa6380890d925f1f1c866739f944be591b3b83fc9c5d5ae07b6b665148e52447052cd02dbc754622f324b9c22838d27abc39bcec
7
- data.tar.gz: 1ed8baeb743e1b003c1cdddfcd39321a9f54741e1bc6083343aede2274b50632c41aac185d7cddebdd6f2c6a98ce03440ef41d4f3b684e94631a0e9ef049ac4b
6
+ metadata.gz: 0e859b44a953e0fc33003e692da86bb13dd06fcc022ece079720ca518386812c2425d331dd27dcfd2c0b91305d138499cc0ea7138992454e0a0eaf389f255192
7
+ data.tar.gz: 8497cb258f41bb82e49c618b770892fa80c6378cef3d0c5aea3d975f2a16c585e84f3d76dc2c3d0fbd9e80b00c9c47796b1a69224e8aa7e7bc6d88fa39e12fda
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kraken_client (1.0.2)
4
+ kraken_client (1.0.3)
5
5
  activesupport (~> 3.2)
6
6
  addressable
7
7
  hashie
data/lib/kraken_client.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  ruby_project_files = Dir[File.join(File.dirname(__FILE__), '**', '*.rb')]
2
2
 
3
- ruby_project_files.sort_by!{ |m| m.downcase }.each do |path|
3
+ ruby_project_files.sort_by!{ |file_name| file_name.downcase }.each do |path|
4
4
  require_relative path
5
5
  end
6
6
 
@@ -5,7 +5,13 @@ module KrakenClient
5
5
  def call(url, params, *)
6
6
  super
7
7
 
8
- HTTParty.get(url, query: params)
8
+ HTTParty.get(url, query: parsed_params(params))
9
+ end
10
+
11
+ private
12
+
13
+ def parsed_params(params)
14
+ params.is_a?(Hash) ? params : { pair: params }
9
15
  end
10
16
 
11
17
  end
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module KrakenClient
2
- VERSION = "1.0.3"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kraken_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sidney SISSAOUI