ruby-lol 0.9.15 → 0.9.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be72c6dfb95b66a918e54c06acab06649ee59bdb
4
- data.tar.gz: 8d9050dfd7b400ca1d324aa805bca165d621326c
3
+ metadata.gz: 03ae6f98f47fce90560b3cfdd3e4742ea357433e
4
+ data.tar.gz: 0c69536eff6eda86a31ec7d6fc5f75f9ad2d6149
5
5
  SHA512:
6
- metadata.gz: 4ab433b4b2388399a119e61f8910061ac4a090c970434f9ba5aed9380177faf228988eb63d30dd7bf2c13f10b20905e261a4eb4bc253876211487744acb66aaa
7
- data.tar.gz: 9b7ddf4bced170d774b569a93fcf2a0347be850392a585ecf4ae2f6266cd12582968ee6fb10b64feb41c1713ffb68820291f887574ad3a4405df75ad7fb1e5c8
6
+ metadata.gz: 9934b89284738a4ce5974036f598a97046e0c1903772e6e78d56a3bf9a4a509baef2fdae93aaa17e558808875e1d4a4b4f39bbcef046d8654bc5857cb52f6b19
7
+ data.tar.gz: 7604d52e2a89ae61ddd26d2d647c088554acf0ef693e2b240a54ad4b1896c253853df4d892958008050bac589726310ec537552ffbb3d472ed9b0020a2817040
@@ -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")).parsed_response if endpoint == "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
@@ -1,3 +1,3 @@
1
1
  module Lol
2
- VERSION = "0.9.15"
2
+ VERSION = "0.9.16"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-lol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.15
4
+ version: 0.9.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giovanni Intini