ruby-lol 0.9.15 → 0.9.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lol/static_request.rb +2 -2
- data/lib/lol/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: 03ae6f98f47fce90560b3cfdd3e4742ea357433e
|
4
|
+
data.tar.gz: 0c69536eff6eda86a31ec7d6fc5f75f9ad2d6149
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9934b89284738a4ce5974036f598a97046e0c1903772e6e78d56a3bf9a4a509baef2fdae93aaa17e558808875e1d4a4b4f39bbcef046d8654bc5857cb52f6b19
|
7
|
+
data.tar.gz: 7604d52e2a89ae61ddd26d2d647c088554acf0ef693e2b240a54ad4b1896c253853df4d892958008050bac589726310ec537552ffbb3d472ed9b0020a2817040
|
data/lib/lol/static_request.rb
CHANGED
@@ -27,7 +27,7 @@ module Lol
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def get(endpoint, id=nil, params={})
|
30
|
-
return perform_request(api_url("versions")).
|
30
|
+
return perform_request(api_url("versions")).map {|x| x} if endpoint == "versions"
|
31
31
|
id ? find(endpoint, id, params) : all(endpoint, params)
|
32
32
|
end
|
33
33
|
|
@@ -43,7 +43,7 @@ module Lol
|
|
43
43
|
model_class(endpoint).new perform_request(api_url(endpoint.dasherize, params)).to_hash
|
44
44
|
else
|
45
45
|
perform_request(api_url(endpoint.dasherize, params))["data"].map do |id, values|
|
46
|
-
model_class(endpoint).new(values.merge(id: id))
|
46
|
+
model_class(endpoint).new(values.merge(id: values["id"] || id))
|
47
47
|
end
|
48
48
|
end
|
49
49
|
end
|
data/lib/lol/version.rb
CHANGED