iso_country_codes 0.6.0 → 0.6.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: d04d03b9d8eaf22ad3a697f58bfd6297c1a6ca96
4
- data.tar.gz: f8a169a08884eb555deef316727213cacfb2f8d5
3
+ metadata.gz: 1c3110dc1bdfd991c513b2c27f5939d281e9b0d5
4
+ data.tar.gz: 44d7afee30fa805ef207686c2a99ee3694251753
5
5
  SHA512:
6
- metadata.gz: 681e85eb7097630b81c383809f02da955f5924295c45b520ffdb50a294292b10a9cc6847560a9f9ce12c8900570da553f120ad040e7636a75c8c69f8a60175ab
7
- data.tar.gz: 46ef6cf0d7bfd5c35933c5759c683b0554093dbf76884c6ec4e20545a09f44b0053a878dc864ff47bdb51e579eaed57de8c742faa264b02df42f96894b25745c
6
+ metadata.gz: da54487463320edd915ffa883c460c029a30481b10846f3415a5eccde01786277eb66d7b18100460d3ce190124ebc38fd799cd2123c3d516a4a9a5d8f475afd9
7
+ data.tar.gz: 0ab5d7894e4909d116fe8d906f910e024243c9946af9254b328165c1ab543e5134501cec5405dfd95551d5880fcfe85c39dc7f6959fe09777540cfc4790e1662
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.6.1 / 2014-11-08
2
+
3
+ * Allows continents to be accessed in a class instance
4
+
1
5
  === 0.6.0 / 2014-10-23
2
6
 
3
7
  * Added ability to raise custom fallbacks and return default values
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
@@ -28,6 +28,10 @@ class IsoCountryCodes
28
28
  self.class.calling_code
29
29
  end
30
30
 
31
+ def continent
32
+ self.class.continent
33
+ end
34
+
31
35
  def main_currency
32
36
  self.class.main_currency
33
37
  end
@@ -69,4 +73,4 @@ class IsoCountryCodes
69
73
  end
70
74
  end
71
75
  end
72
- end
76
+ end
@@ -205,7 +205,7 @@ class TestIsoCountryCodes < Test::Unit::TestCase
205
205
 
206
206
  def test_get_continent
207
207
  assert_equal 'OC', IsoCountryCodes::Code::AUS.continent
208
- assert_equal 'NA', IsoCountryCodes::Code::USA.continent
208
+ assert_equal 'NA', IsoCountryCodes::Code::USA.instance.continent
209
209
  end
210
210
 
211
211
  def test_get_name
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.6.0
4
+ version: 0.6.1
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-10-23 00:00:00.000000000 Z
11
+ date: 2014-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  version: '0'
117
117
  requirements: []
118
118
  rubyforge_project:
119
- rubygems_version: 2.3.0
119
+ rubygems_version: 2.2.2
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: Provides ISO 3166-1 country codes/names and ISO 4217 currencies.