booker_ruby 1.7.0 → 1.7.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: df503f2f11bb06cfa61c351cc048fe27fcbab650
|
|
4
|
+
data.tar.gz: 440866778de9ddebafab89d4649c87c9d16c0b5e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6dc67f31c064c343c9b721df2d311b3fb45579d847b76f6f961ff8c6f51c0432b5a3c57adb369ba60ba50a718e65dd752d3176c61841523a695264dc4c592046
|
|
7
|
+
data.tar.gz: 4dcb4d01382a69ef7c3836b08ccfc1dc2ce71106dd8600a30fec20ea93f0927c46c9e09074b70689bca7a60c49dff8bdabfdf4fcbdbbbf45c8becb828c05cbcd
|
|
File without changes
|
|
@@ -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
|
-
|
|
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;
|
|
7
|
+
def country_code; NAMES_TO_ISO_CODES[self.Name]; end
|
|
7
8
|
end
|
|
8
9
|
end
|
|
9
10
|
end
|
data/lib/booker/version.rb
CHANGED
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.
|
|
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-
|
|
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/
|
|
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
|