countries 1.2.1 → 1.2.2

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: 615f8b882b8aefd4336426a94b54e832a6e4d81f
4
- data.tar.gz: a911e2ce784df6ebefa016e000c7df6f62f784c4
3
+ metadata.gz: f43d7384a9456c116cd4cde4e082a4a0ef7dd155
4
+ data.tar.gz: 8bc570ac4209691fa44537a070f67b42c4b3150c
5
5
  SHA512:
6
- metadata.gz: e2bdd3c7eb450016b8a00ccb890ff1a1290df0265afc8a00d2f54656fc9d656cc81de5eb879275b167e77500574f2c8c8374a0ee3b8066f4c182e7e8f6e2e956
7
- data.tar.gz: 12c948c3f07d05150b121995a95c904e239c71c5ad245fa0904734ebaab4593e08dccd4ac40e9c605c7a289bbdd929fa32de29ffb4728a697e47ee0049b89e59
6
+ metadata.gz: ad99e975bf5f35bec8f315cf9f14e23a8796aafc160c5f1316c392d6bfa6c114ce2f99b18d0f249b8152470713d6d9a0c3bbcaa1dfbefe1b241585af7c9bc6b4
7
+ data.tar.gz: 71e602ff215590411aa62cc193bd3081b4abc794a97481c22f571b70a8b9c77b23316ea03b4b8076ed1b9b05dfd45f66b7d83e861aa2eb053ac9c0977a2f5eee
data/.travis.yml CHANGED
@@ -2,5 +2,5 @@ sudo: false
2
2
  cache: bundler
3
3
  rvm:
4
4
  - 1.9.3
5
- - 2.0
6
- - 2.2
5
+ - 2.0.0
6
+ - 2.2.3
data/CHANGELOG.md CHANGED
@@ -2,7 +2,13 @@
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.0
5
+ ## 1.2.2
6
+ - Content Updates
7
+
8
+ ## 1.2.1
9
+ - Fixed issue in loading @rposborne
10
+
11
+ ## 1.2.0 (yanked)
6
12
  - Cleaning up Global Load Path @rposborne
7
13
  - Add MOP as the currency for Macao @kriskhaira
8
14
 
data/Rakefile CHANGED
@@ -30,12 +30,12 @@ end
30
30
  desc 'Update Cache'
31
31
  task :update_cache do
32
32
  require 'yaml'
33
- require 'countries'
33
+ require 'i18n_data'
34
34
 
35
- codes = YAML.load_file(File.join(File.dirname(__FILE__), 'lib', 'data', 'countries.yaml')) || {}
35
+ codes = YAML.load_file(File.join(File.dirname(__FILE__), 'lib', 'countries', 'data', 'countries.yaml')) || {}
36
36
  data = {}
37
37
  empty_translations_hash = {}
38
- corrections = YAML.load_file(File.join(File.dirname(__FILE__), 'lib', 'data', 'translation_corrections.yaml')) || {}
38
+ corrections = YAML.load_file(File.join(File.dirname(__FILE__), 'lib', 'countries', 'data', 'translation_corrections.yaml')) || {}
39
39
 
40
40
  I18nData.languages.keys.each do |locale|
41
41
  locale = locale.downcase
@@ -53,7 +53,7 @@ task :update_cache do
53
53
  end
54
54
 
55
55
  codes.each do |alpha2|
56
- data[alpha2] ||= ISO3166::Data.load_yaml(['data', 'countries', "#{alpha2}.yaml"])[alpha2]
56
+ data[alpha2] ||= YAML.load_file(File.join(File.dirname(__FILE__), 'lib', 'countries', 'data', 'countries', "#{alpha2}.yaml"))[alpha2]
57
57
  data[alpha2]['translations'] ||= empty_translations_hash.dup
58
58
  data[alpha2]['translations'][locale] = local_names[alpha2]
59
59
  data[alpha2]['translated_names'] ||= []
@@ -62,7 +62,7 @@ task :update_cache do
62
62
  end
63
63
  end
64
64
 
65
- File.open(File.join(File.dirname(__FILE__), 'lib', 'cache', 'countries'), 'wb') { |f| f.write(Marshal.dump(data)) }
65
+ File.open(File.join(File.dirname(__FILE__), 'lib', 'countries', 'cache', 'countries'), 'wb') { |f| f.write(Marshal.dump(data)) }
66
66
  end
67
67
 
68
68
  require 'geocoder'
Binary file
@@ -12,7 +12,7 @@
12
12
  currency: NOK
13
13
  international_prefix: '00'
14
14
  ioc: NOR
15
- gec:
15
+ gec: 'NO'
16
16
  latitude: 62 00 N
17
17
  longitude: 10 00 E
18
18
  name: Norway
@@ -10,7 +10,7 @@ VC:
10
10
  gec: VC
11
11
  latitude: 13 15 N
12
12
  longitude: 61 12 W
13
- name: Saint Vincent And The Grenedines
13
+ name: Saint Vincent And The Grenadines
14
14
  names:
15
15
  - Saint Vincent and the Grenadines
16
16
  - Saint Vincent und die Grenadinen
@@ -1,3 +1,3 @@
1
1
  module Countries
2
- VERSION = '1.2.1'
2
+ VERSION = '1.2.2'
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.1
4
+ version: 1.2.2
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-05 00:00:00.000000000 Z
13
+ date: 2015-11-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: i18n_data