city-state 0.0.11 → 0.0.12

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: 9918b4889cf247b5f6c196c48cffff2316a31a08
4
- data.tar.gz: 85ae7dd4c6c6eb957f5def645ba13a0d75157234
3
+ metadata.gz: 0b31360c71a8c6cc51f93e0c466442c98a90cfdf
4
+ data.tar.gz: 9a11d226f88132e8f2c8d4306d66aeefa569deb9
5
5
  SHA512:
6
- metadata.gz: a41284b810528246d5daaf2a6c5b09ae902cbeb75bd174c9f9908e37a85b29e4bc63d8b4419319d4a5a6234fc46fc89594c446f27fb78c03546525cf463c626e
7
- data.tar.gz: bc3ae7fc67c1963d20662e3bca64aad297e3f282a58d14854d1774ec6b4ea51fee253c76235de775a862035cf680bf1c7d8fa640c3d5a5461e8e347ef64d96fb
6
+ metadata.gz: 860c36d4df1072876fa869db73e4c58f74e4e85d65b8a44e28c8a90e9e2cc1c6e7b07cf3fec4ad72872c240d0438eca5302293a39213b781950b3a2277972120
7
+ data.tar.gz: 78a273271789284037dd7e2add83dc6c6d49c5c816fc06c9db11c990d80004c7e90ac9323c844bd0c4242aaa5d5ff7d0836c2ccf4e8cc7ff3fa67c74a0e385e4
@@ -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
@@ -1,3 +1,3 @@
1
1
  module CS
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
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.11
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-07 00:00:00.000000000 Z
11
+ date: 2015-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler