iso_country_codes 0.4.3 → 0.4.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 +4 -4
- data/History.txt +4 -0
- data/VERSION +1 -1
- data/lib/iso_country_codes/iso_4217.rb +2 -2
- data/test/iso_country_codes_test.rb +14 -14
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 281e29b40507d48f86c81895fe4a47719ec67705
|
|
4
|
+
data.tar.gz: c281aac39e8896673cefca4957574c60e6fb7529
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 759cbf3682d51763e76e9fd9098fddb527383ae5fdb941d20e1540a0847f2e9731d3148764497cc891408e998030b2edbd151a06d21970e909649d28f71dbf60
|
|
7
|
+
data.tar.gz: a9d5e10402dd0e1f55558c8f12acc0ceaaa2d56b0d948a32839c5185613b5445b5e681393270ef7dbeb9a930ba130e3c43222de0bd73c9ee92542494c0ee89ae
|
data/History.txt
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
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 = '
|
|
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 = '
|
|
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::
|
|
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::
|
|
62
|
+
IsoCountryCodes::Code::COD.instance,
|
|
63
63
|
IsoCountryCodes::Code::PRK.instance,
|
|
64
|
-
IsoCountryCodes::Code::
|
|
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::
|
|
86
|
+
IsoCountryCodes::Code::HMD.instance,
|
|
85
87
|
IsoCountryCodes::Code::KIR.instance,
|
|
86
88
|
IsoCountryCodes::Code::NRU.instance,
|
|
87
|
-
IsoCountryCodes::Code::
|
|
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::
|
|
98
|
+
IsoCountryCodes::Code::HMD.instance,
|
|
97
99
|
IsoCountryCodes::Code::KIR.instance,
|
|
98
100
|
IsoCountryCodes::Code::NRU.instance,
|
|
99
|
-
IsoCountryCodes::Code::
|
|
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.
|
|
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-
|
|
11
|
+
date: 2014-07-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|