gdsapi-v2-ruby 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gdsapi/methods/get_countries.rb +5 -1
- data/lib/gdsapi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e118da56996c9e2ac276a29f9b9348c5e5053083
|
4
|
+
data.tar.gz: 826148f96d375a21c63fb550e4b642c78c0c0031
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e5dabc6c685268ad1501e23f511191083f38fcdd90d6b12ef528819cf1c6ff143615a32793632eeb934c63a3120b7aeb925ceace61bec80e0a891fbddadae9b
|
7
|
+
data.tar.gz: f4c70defb441ae4da52623d8116313934c03184dd2e28221b45135923d119fad91bd2140d104850c9ed51c811728b28cb536a074d23d5aee84b178cc548e0f41
|
@@ -18,10 +18,14 @@ module Gdsapi
|
|
18
18
|
|
19
19
|
countries = body['countries']
|
20
20
|
attributes = body['attributes']
|
21
|
-
|
21
|
+
types = body['types']
|
22
|
+
result = {}
|
23
|
+
result[:countries] = countries.map! do |country|
|
22
24
|
country[:attributes] = match_attributes(country['attributes'], attributes)
|
23
25
|
Gdsapi::Structs::Country.new country.symbolize_keys
|
24
26
|
end
|
27
|
+
result[:types] = types.map { |t| Gdsapi::Structs::Type.new(t.symbolize_keys) }
|
28
|
+
result
|
25
29
|
end
|
26
30
|
|
27
31
|
# Query params
|
data/lib/gdsapi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gdsapi-v2-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Yurchenkov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|