iso_country_codes 0.4.3 → 0.4.4

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: c95341121dd7249cb0b97cd52e9fef2ce460b4f0
4
- data.tar.gz: da8f26928d0e6161b712a7e29950266ef2abfc06
3
+ metadata.gz: 281e29b40507d48f86c81895fe4a47719ec67705
4
+ data.tar.gz: c281aac39e8896673cefca4957574c60e6fb7529
5
5
  SHA512:
6
- metadata.gz: a8cbe877fc210971c461837ff0cef1bda92340d3b3d3a2452bdabe913fb83ba9e17ec416ef69d6c99afebd89fbf0884dde8e348ceb8b3a8269acf1c5c716d396
7
- data.tar.gz: 6647575ad22e53396587972c6e4767d79f4bdcd389b81e7a3aa60beb6daaadf912929d126b363320ab1ca6157075a062dd6c4820653ec99e1bfdf028bae1af71
6
+ metadata.gz: 759cbf3682d51763e76e9fd9098fddb527383ae5fdb941d20e1540a0847f2e9731d3148764497cc891408e998030b2edbd151a06d21970e909649d28f71dbf60
7
+ data.tar.gz: a9d5e10402dd0e1f55558c8f12acc0ceaaa2d56b0d948a32839c5185613b5445b5e681393270ef7dbeb9a930ba130e3c43222de0bd73c9ee92542494c0ee89ae
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.4.4 / 2014-07-23
2
+
3
+ * Corrected Korean currency codes (fixes #13)
4
+
1
5
  === 0.4.3 / 2014-06-24
2
6
 
3
7
  * Latvian LAT replaced with the Euro (fixes #10)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.3
1
+ 0.4.4
@@ -100,7 +100,7 @@ class IsoCountryCodes
100
100
  self.main_currency = 'XCD'
101
101
  end
102
102
  class PRK < Code #:nodoc:
103
- self.main_currency = 'KRW'
103
+ self.main_currency = 'KPW'
104
104
  end
105
105
  class ZMB < Code #:nodoc:
106
106
  self.main_currency = 'ZMW'
@@ -310,7 +310,7 @@ class IsoCountryCodes
310
310
  self.main_currency = 'CUP'
311
311
  end
312
312
  class KOR < Code #:nodoc:
313
- self.main_currency = 'KPW'
313
+ self.main_currency = 'KRW'
314
314
  end
315
315
  class MDG < Code #:nodoc:
316
316
  self.main_currency = 'MGA'
@@ -50,18 +50,18 @@ class TestIsoCountryCodes < Test::Unit::TestCase
50
50
 
51
51
  def test_search_by_name_returning_many_results_starting_wth_the_search_string
52
52
  assert_equal([
53
+ IsoCountryCodes::Code::ARE.instance,
53
54
  IsoCountryCodes::Code::GBR.instance,
54
- IsoCountryCodes::Code::UMI.instance,
55
55
  IsoCountryCodes::Code::USA.instance,
56
- IsoCountryCodes::Code::ARE.instance
56
+ IsoCountryCodes::Code::UMI.instance
57
57
  ], IsoCountryCodes.search_by_name('united'))
58
58
  end
59
59
 
60
60
  def test_search_by_name_returning_many_results_not_starting_with_the_search_string
61
61
  assert_equal([
62
- IsoCountryCodes::Code::LAO.instance,
62
+ IsoCountryCodes::Code::COD.instance,
63
63
  IsoCountryCodes::Code::PRK.instance,
64
- IsoCountryCodes::Code::COD.instance
64
+ IsoCountryCodes::Code::LAO.instance
65
65
  ], IsoCountryCodes.search_by_name('democratic'))
66
66
  end
67
67
 
@@ -80,25 +80,25 @@ class TestIsoCountryCodes < Test::Unit::TestCase
80
80
 
81
81
  def test_search_by_currency_lowercase
82
82
  assert_equal([
83
+ IsoCountryCodes::Code::AUS.instance,
84
+ IsoCountryCodes::Code::CXR.instance,
83
85
  IsoCountryCodes::Code::CCK.instance,
84
- IsoCountryCodes::Code::NFK.instance,
86
+ IsoCountryCodes::Code::HMD.instance,
85
87
  IsoCountryCodes::Code::KIR.instance,
86
88
  IsoCountryCodes::Code::NRU.instance,
87
- IsoCountryCodes::Code::CXR.instance,
88
- IsoCountryCodes::Code::HMD.instance,
89
- IsoCountryCodes::Code::AUS.instance
89
+ IsoCountryCodes::Code::NFK.instance
90
90
  ], IsoCountryCodes.search_by_currency('aud'))
91
91
  end
92
92
 
93
93
  def test_search_by_currency_uppercase
94
94
  assert_equal([
95
+ IsoCountryCodes::Code::AUS.instance,
96
+ IsoCountryCodes::Code::CXR.instance,
95
97
  IsoCountryCodes::Code::CCK.instance,
96
- IsoCountryCodes::Code::NFK.instance,
98
+ IsoCountryCodes::Code::HMD.instance,
97
99
  IsoCountryCodes::Code::KIR.instance,
98
100
  IsoCountryCodes::Code::NRU.instance,
99
- IsoCountryCodes::Code::CXR.instance,
100
- IsoCountryCodes::Code::HMD.instance,
101
- IsoCountryCodes::Code::AUS.instance
101
+ IsoCountryCodes::Code::NFK.instance
102
102
  ], IsoCountryCodes.search_by_currency('AUD'))
103
103
  end
104
104
 
@@ -111,9 +111,9 @@ class TestIsoCountryCodes < Test::Unit::TestCase
111
111
  def test_search_by_calling_code
112
112
  assert_equal [IsoCountryCodes::Code::ZAF.instance], IsoCountryCodes.search_by_calling_code('+27')
113
113
  assert_equal([
114
+ IsoCountryCodes::Code::AUS.instance,
114
115
  IsoCountryCodes::Code::CXR.instance,
115
- IsoCountryCodes::Code::HMD.instance,
116
- IsoCountryCodes::Code::AUS.instance
116
+ IsoCountryCodes::Code::HMD.instance
117
117
  ], IsoCountryCodes.search_by_calling_code('+61'))
118
118
  end
119
119
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iso_country_codes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Rabarts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-24 00:00:00.000000000 Z
11
+ date: 2014-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler