city-state 0.0.11 → 0.0.12
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/lib/city-state.rb +2 -0
- data/lib/city-state/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: 0b31360c71a8c6cc51f93e0c466442c98a90cfdf
|
|
4
|
+
data.tar.gz: 9a11d226f88132e8f2c8d4306d66aeefa569deb9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 860c36d4df1072876fa869db73e4c58f74e4e85d65b8a44e28c8a90e9e2cc1c6e7b07cf3fec4ad72872c240d0438eca5302293a39213b781950b3a2277972120
|
|
7
|
+
data.tar.gz: 78a273271789284037dd7e2add83dc6c6d49c5c816fc06c9db11c990d80004c7e90ac9323c844bd0c4242aaa5d5ff7d0836c2ccf4e8cc7ff3fa67c74a0e385e4
|
data/lib/city-state.rb
CHANGED
|
@@ -103,6 +103,7 @@ module CS
|
|
|
103
103
|
cities_fn = File.join(FILES_FOLDER, "cities.#{country.downcase}")
|
|
104
104
|
File.open(states_fn, "w") { |f| f.write states.to_yaml }
|
|
105
105
|
File.open(cities_fn, "w") { |f| f.write cities.to_yaml }
|
|
106
|
+
File.chmod(0666, states_fn, cities_fn) # force permissions to rw_rw_rw_ (issue #3)
|
|
106
107
|
true
|
|
107
108
|
end
|
|
108
109
|
|
|
@@ -178,6 +179,7 @@ module CS
|
|
|
178
179
|
# sort and save to "countries.yml"
|
|
179
180
|
@countries = Hash[@countries.sort]
|
|
180
181
|
File.open(COUNTRIES_FN, "w") { |f| f.write @countries.to_yaml }
|
|
182
|
+
File.chmod(0666, COUNTRIES_FN) # force permissions to rw_rw_rw_ (issue #3)
|
|
181
183
|
else
|
|
182
184
|
# countries.yml exists, just read it
|
|
183
185
|
@countries = YAML::load_file(COUNTRIES_FN).symbolize_keys
|
data/lib/city-state/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: city-state
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Loureiro
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-03-
|
|
11
|
+
date: 2015-03-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|