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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0052cbbae7288138715bddeb75ad007bf8de07e6
4
- data.tar.gz: 8b77e9103fa3276566c3e8bb6579702affa48620
3
+ metadata.gz: e118da56996c9e2ac276a29f9b9348c5e5053083
4
+ data.tar.gz: 826148f96d375a21c63fb550e4b642c78c0c0031
5
5
  SHA512:
6
- metadata.gz: ef1a717d1bee8c09d686056c8ba6433bf96efec5196cd9f281d92c93e385fa7367b2ba5f8d8fd43ba8bca64a65317b144fe9b9b8bffd72df8f6efd946f389e68
7
- data.tar.gz: 16636adb70824406126c67fe8517d189f383a0f3b1dd20359018f01b927aad3e4eb0e0c5289b0b4e1844282e3bb5e51f8e5c89a875cf559b96e47281fa1b2e84
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
- countries.map! do |country|
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
@@ -1,3 +1,3 @@
1
1
  module Gdsapi
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
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-23 00:00:00.000000000 Z
11
+ date: 2018-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json