countries 1.2.2 → 1.2.4

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: f43d7384a9456c116cd4cde4e082a4a0ef7dd155
4
- data.tar.gz: 8bc570ac4209691fa44537a070f67b42c4b3150c
3
+ metadata.gz: eb1e054cd9be9187e1f48704f9bc206262f79ee2
4
+ data.tar.gz: 95a8e32736ed491b3f7e420676a520f0ab451676
5
5
  SHA512:
6
- metadata.gz: ad99e975bf5f35bec8f315cf9f14e23a8796aafc160c5f1316c392d6bfa6c114ce2f99b18d0f249b8152470713d6d9a0c3bbcaa1dfbefe1b241585af7c9bc6b4
7
- data.tar.gz: 71e602ff215590411aa62cc193bd3081b4abc794a97481c22f571b70a8b9c77b23316ea03b4b8076ed1b9b05dfd45f66b7d83e861aa2eb053ac9c0977a2f5eee
6
+ metadata.gz: 4e44de7a256c1c33d94277d53a5da580c84fd21f44382902d4d949208a3ba65cb928a650104c6e57ccf001bc7d11c886a7d5f1ca24b450f848d80a8c89ef36e7
7
+ data.tar.gz: 52f0567a6cdf60622a68555cd2600f4ae4e5e0d7d208ece149a7e69f42b54c362df30a2849d8389460fe792db3eb29d521f153c7f49f93819d79b953becf09f2
data/.gitignore CHANGED
@@ -20,4 +20,6 @@ tmp
20
20
  .ruby-version
21
21
  .ruby-gemset
22
22
  .idea/
23
- Gemfile.lock
23
+ Gemfile.lock
24
+ rspec
25
+ examples.txt
@@ -1,6 +1,11 @@
1
1
  sudo: false
2
2
  cache: bundler
3
+ language: ruby
3
4
  rvm:
4
5
  - 1.9.3
5
6
  - 2.0.0
6
7
  - 2.2.3
8
+ - ruby-head
9
+ matrix:
10
+ allow_failures:
11
+ - rvm: ruby-head
@@ -2,6 +2,16 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## 1.2.4 @ 2016-01-21
6
+ - Romanian Standard VAT rate is 20% as of 2016-01-01 #325 @dougal
7
+ - Palestine submit #324 @samizan
8
+ - Added 47 as calling code for Bouvet Island, Norwegian territory #323
9
+ - Added XAF as currency code for Congo @espen
10
+ - Force converting passed locale to string @borodiychuk
11
+
12
+ ## 1.2.3
13
+ - Content Updates
14
+
5
15
  ## 1.2.2
6
16
  - Content Updates
7
17
 
@@ -129,13 +129,6 @@ Countries now uses the [Currencies][] gem. What this means is you now get back a
129
129
  c.currency['name'] #=> 'Dollars'
130
130
  c.currency['symbol'] #=> '$'
131
131
 
132
- If a country has an alternate currency it can be accessed via the *alt_currency* method and will also return a Currency object.
133
-
134
- Since we are using the [Currencies][] gem we get a bonus ExchangeBank that can be used with the [Money][] gem. It auto loads exchange rates from Yahoo Finance.
135
-
136
- Money.default_bank = Currency::ExchangeBank.new
137
- Money.us_dollar(100).exchange_to("CAD") # => Money.new(124, "CAD")
138
-
139
132
  Address Formatting
140
133
  ------------------
141
134
 
@@ -96,7 +96,7 @@ class ISO3166::Country
96
96
  end
97
97
 
98
98
  def translation(locale = 'en')
99
- @data['translations'][locale.downcase]
99
+ @data['translations'][locale.downcase.to_s]
100
100
  end
101
101
 
102
102
  def local_names
@@ -3,7 +3,7 @@ BV:
3
3
  continent: Antarctica
4
4
  alpha2: BV
5
5
  alpha3: BVT
6
- country_code: ''
6
+ country_code: '47'
7
7
  currency: NOK
8
8
  international_prefix: ''
9
9
  ioc:
@@ -4,7 +4,7 @@ CG:
4
4
  alpha2: CG
5
5
  alpha3: COG
6
6
  country_code: '242'
7
- currency:
7
+ currency: XAF
8
8
  international_prefix: '00'
9
9
  ioc: CGO
10
10
  gec: CF
@@ -38,7 +38,7 @@ RO:
38
38
  nationality: Romanian
39
39
  eu_member: true
40
40
  vat_rates:
41
- standard: 24
41
+ standard: 20
42
42
  reduced:
43
43
  - 5
44
44
  - 9
@@ -4,7 +4,7 @@ ZM:
4
4
  alpha2: ZM
5
5
  alpha3: ZMB
6
6
  country_code: '260'
7
- currency: ZMK
7
+ currency: ZMW
8
8
  international_prefix: '00'
9
9
  ioc: ZAM
10
10
  gec: ZA
@@ -36,8 +36,8 @@ GIS:
36
36
  max_latitude: -38.6219639
37
37
  max_longitude: 178.115354
38
38
  HKB:
39
- name: Hawkes's Bay
40
- names: Hawkes's Bay
39
+ name: Hawke's Bay
40
+ names: Hawke's Bay
41
41
  latitude: -39.7711616
42
42
  longitude: 176.7416374
43
43
  min_latitude: -40.440783
@@ -145,8 +145,8 @@ WTC:
145
145
  max_latitude: -41.16730769999999
146
146
  max_longitude: 172.4800189
147
147
  X1~:
148
- name: Chatham Islands
149
- names: Chatham Islands
148
+ name: Chatham Islands
149
+ names: Chatham Islands
150
150
  latitude: -43.9120964
151
151
  longitude: -176.5433025
152
152
  min_latitude: -44.4343162
@@ -162,8 +162,8 @@
162
162
  max_latitude: 40.7325793
163
163
  max_longitude: -7.8250273
164
164
  '20':
165
- name: Região Autónoma dos Açores
166
- names: Região Autónoma dos Açores
165
+ name: Açores
166
+ names: Açores
167
167
  latitude: 37.7412488
168
168
  longitude: -25.6755944
169
169
  min_latitude: 36.9278178
@@ -171,8 +171,8 @@
171
171
  max_latitude: 39.7261497
172
172
  max_longitude: -25.0131855
173
173
  '30':
174
- name: Região Autónoma da Madeira
175
- names: Região Autónoma da Madeira
174
+ name: Madeira
175
+ names: Madeira
176
176
  latitude: 32.76070740000001
177
177
  longitude: -16.9594723
178
178
  min_latitude: 30.0303451
@@ -11,4 +11,11 @@
11
11
  #
12
12
  ---
13
13
  oc:
14
- US: USA
14
+ US: USA
15
+ ar:
16
+ PS: "فلسطين"
17
+ SA: "السعودية"
18
+ AE: "الامارات العربية المتحدة"
19
+ SD: "السودان"
20
+ SO: "الصومال‎"
21
+ SY: "سوريا"
@@ -1,3 +1,3 @@
1
1
  module Countries
2
- VERSION = '1.2.2'
2
+ VERSION = '1.2.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: countries
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Robinson
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-11-13 00:00:00.000000000 Z
13
+ date: 2016-01-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: i18n_data