booker_ruby 1.7.0 → 1.7.1

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: 17852b60ad7366eb3fcbbfe56c7d67ef503f711e
4
- data.tar.gz: 5224a2c96b743251494461b63f3119b0226bbbb9
3
+ metadata.gz: df503f2f11bb06cfa61c351cc048fe27fcbab650
4
+ data.tar.gz: 440866778de9ddebafab89d4649c87c9d16c0b5e
5
5
  SHA512:
6
- metadata.gz: da30afe23181d51d38d6334e6c0cfa4cc5303a3800d183066f3168ef359ca12eb6b7f0771ac6fcecd063113904f7d1e3740355fb6868f37d72eb8c5c828c7643
7
- data.tar.gz: 335cf86541d9d81d5d119da722d607f5ea26f283d3c54ef34fc905557ea6ced098acd61b92e160e574238e428aa9e02e3e784a9c47f07442ec4e4bbb9c046042
6
+ metadata.gz: 6dc67f31c064c343c9b721df2d311b3fb45579d847b76f6f961ff8c6f51c0432b5a3c57adb369ba60ba50a718e65dd752d3176c61841523a695264dc4c592046
7
+ data.tar.gz: 4dcb4d01382a69ef7c3836b08ccfc1dc2ce71106dd8600a30fec20ea93f0927c46c9e09074b70689bca7a60c49dff8bdabfdf4fcbdbbbf45c8becb828c05cbcd
@@ -70,7 +70,7 @@ module Booker
70
70
  '(GMT+07:00) Bangkok, Hanoi, Jakarta' => 'Bangkok',
71
71
  '(GMT+07:00) Krasnoyarsk' => 'Krasnoyarsk',
72
72
  '(GMT+08:00) Taipei' => 'Taipei',
73
- '(GMT+08:00) Kuala Lumpur, Singapore' => 'Kuala',
73
+ '(GMT+08:00) Kuala Lumpur, Singapore' => 'Kuala Lumpur',
74
74
  '(GMT+08:00) Irkutsk, Ulaan Bataar' => 'Irkutsk',
75
75
  '(GMT+08:00) Beijing, Chongqing, Hong Kong, Urumqi' => 'Beijing',
76
76
  '(GMT+08:00) Perth' => 'Perth',
@@ -1,9 +1,10 @@
1
1
  module Booker
2
2
  module Models
3
3
  class Country < Type
4
- NAMES_TO_CODES = YAML::load_file(File.join(__dir__, '..', 'config', 'booker_countries.yml')).freeze
4
+ # ISO 3166-1 alpha-2 Codes
5
+ NAMES_TO_ISO_CODES = YAML::load_file(File.join(__dir__, '..', 'config', 'booker_country_names_to_iso_codes.yml')).freeze
5
6
 
6
- def country_code; NAMES_TO_CODES[self.Name]; end
7
+ def country_code; NAMES_TO_ISO_CODES[self.Name]; end
7
8
  end
8
9
  end
9
10
  end
@@ -1,3 +1,3 @@
1
1
  module Booker
2
- VERSION = '1.7.0'
2
+ VERSION = '1.7.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: booker_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frederick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-14 00:00:00.000000000 Z
11
+ date: 2016-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -134,7 +134,7 @@ files:
134
134
  - lib/booker/business_rest.rb
135
135
  - lib/booker/client.rb
136
136
  - lib/booker/common_rest.rb
137
- - lib/booker/config/booker_countries.yml
137
+ - lib/booker/config/booker_country_names_to_iso_codes.yml
138
138
  - lib/booker/customer_client.rb
139
139
  - lib/booker/customer_rest.rb
140
140
  - lib/booker/errors.rb