tito 0.3 → 0.3.1

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: e34e55d8b9e64712ebc304b6165651ce36baa6c6
4
- data.tar.gz: 138098dfbc71edbac3ceef3f7c2280b94fb06e35
3
+ metadata.gz: fb2bd9699b6ac1cf137c2662036e5654a827e50a
4
+ data.tar.gz: 79e56745027ab5bf6f522a685d5c2cfed0d48f3f
5
5
  SHA512:
6
- metadata.gz: f02347c970aa2b094ea79404f5055dc0128cccaafcbb89fb04638821d6b0ebc08efd004eecfff2886c7bc94bf1b9e4e380c76ebee62f03007fe19c3f3ed6592c
7
- data.tar.gz: e3fc61fbf4197b7e2e76cdf6befb880f187b4f5c3889fe9a8569d10b9f91339fcf97040f653a634cff20a3c5999a9a96b4f44f6fead322afc4101cfdf2c5736f
6
+ metadata.gz: cf20c0ca3e7bd5f69823af3a3fa7430c0afd8bea5789fcce107c059854f041dfd7badb7443087c55174285e71274b4216afea849ea985f15175e1e4a391e801f
7
+ data.tar.gz: 0e472a74e96ed8c236f4e5a4525f18361b136a78d2567404a265c2f3b5a378a9927c9decea1b91b9b6182f4db8d0144c68458275541c827780508cbb7142987f
@@ -69,7 +69,7 @@ module Tito
69
69
  def self.get(path, params = {})
70
70
  api_key = params.delete(:api_key)
71
71
  path_prefix = params.delete(:path_prefix)
72
- new http(api_key: api_key).get(get_url(path, path_prefix: path_prefix), params: params, ssl_context: ssl_context).parse[resource_name]
72
+ new http(api_key: api_key).get(get_url(path, path_prefix: path_prefix), params: ParamNester.encode(params), ssl_context: ssl_context).parse[resource_name]
73
73
  end
74
74
 
75
75
  def self.all_path(path_prefix: nil)
@@ -83,7 +83,7 @@ module Tito
83
83
  def self.all(params = {})
84
84
  api_key = params.delete(:api_key)
85
85
  path_prefix = params.delete(:path_prefix)
86
- response = http(api_key: api_key).get(all_url(path_prefix: path_prefix), params: params, ssl_context: ssl_context).parse
86
+ response = http(api_key: api_key).get(all_url(path_prefix: path_prefix), params: ParamNester.encode(params), ssl_context: ssl_context).parse
87
87
  all_records = response[self.resource_path(:all)]
88
88
  meta = response["meta"]
89
89
  out = ResponseArray.new(all_records.collect do |record|
@@ -1,3 +1,3 @@
1
1
  module Tito
2
- VERSION = "0.3"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tito
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Campbell