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 +4 -4
- data/.travis.yml +2 -2
- data/CHANGELOG.md +7 -1
- data/Rakefile +5 -5
- data/lib/countries/cache/countries +0 -0
- data/lib/countries/data/countries/NO.yaml +1 -1
- data/lib/countries/data/countries/VC.yaml +1 -1
- data/lib/countries/version.rb +1 -1
- 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: f43d7384a9456c116cd4cde4e082a4a0ef7dd155
|
4
|
+
data.tar.gz: 8bc570ac4209691fa44537a070f67b42c4b3150c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad99e975bf5f35bec8f315cf9f14e23a8796aafc160c5f1316c392d6bfa6c114ce2f99b18d0f249b8152470713d6d9a0c3bbcaa1dfbefe1b241585af7c9bc6b4
|
7
|
+
data.tar.gz: 71e602ff215590411aa62cc193bd3081b4abc794a97481c22f571b70a8b9c77b23316ea03b4b8076ed1b9b05dfd45f66b7d83e861aa2eb053ac9c0977a2f5eee
|
data/.travis.yml
CHANGED
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.
|
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 '
|
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] ||=
|
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
|
data/lib/countries/version.rb
CHANGED
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.
|
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-
|
13
|
+
date: 2015-11-13 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: i18n_data
|