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 +4 -4
- data/lib/tito/base.rb +2 -2
- data/lib/tito/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb2bd9699b6ac1cf137c2662036e5654a827e50a
|
4
|
+
data.tar.gz: 79e56745027ab5bf6f522a685d5c2cfed0d48f3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf20c0ca3e7bd5f69823af3a3fa7430c0afd8bea5789fcce107c059854f041dfd7badb7443087c55174285e71274b4216afea849ea985f15175e1e4a391e801f
|
7
|
+
data.tar.gz: 0e472a74e96ed8c236f4e5a4525f18361b136a78d2567404a265c2f3b5a378a9927c9decea1b91b9b6182f4db8d0144c68458275541c827780508cbb7142987f
|
data/lib/tito/base.rb
CHANGED
@@ -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|
|
data/lib/tito/version.rb
CHANGED