city-state 0.0.12 → 0.0.13

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: 0b31360c71a8c6cc51f93e0c466442c98a90cfdf
4
- data.tar.gz: 9a11d226f88132e8f2c8d4306d66aeefa569deb9
3
+ metadata.gz: c0ac14a45f34a5a2be9e978f3c665de9407dd7c5
4
+ data.tar.gz: 0dd55c709a4c833ee294a9ce764c573d16511fa9
5
5
  SHA512:
6
- metadata.gz: 860c36d4df1072876fa869db73e4c58f74e4e85d65b8a44e28c8a90e9e2cc1c6e7b07cf3fec4ad72872c240d0438eca5302293a39213b781950b3a2277972120
7
- data.tar.gz: 78a273271789284037dd7e2add83dc6c6d49c5c816fc06c9db11c990d80004c7e90ac9323c844bd0c4242aaa5d5ff7d0836c2ccf4e8cc7ff3fa67c74a0e385e4
6
+ metadata.gz: 972e0831ede928f68cd29994d6300f47523192a08725d21f549d45c309221273d7fd38c0df2530b9d29194d4f46cd3e1187740725d78bd560d666aa7be34ab69
7
+ data.tar.gz: 13eecc8fe7dd72e2044df689fd96217774452df1d41151ee4582882f54b212b734783c74bcc1f323fc4cafa8e9f8192126aa7a61ad6e02dac906d6c2bced8132
data/README.md CHANGED
@@ -7,20 +7,20 @@
7
7
  gem 'city-state'
8
8
  ```
9
9
 
10
- ## Get a list of states:
10
+ ## List of states:
11
11
  ```ruby
12
12
  CS.states(:us)
13
13
  # => {:AK=>"Alaska", :AL=>"Alabama", :AR=>"Arkansas", :AZ=>"Arizona", :CA=>"California", :CO=>"Colorado", :CT=>"Connecticut", :DC=>"District of Columbia", :DE=>"Delaware", :FL=>"Florida", :GA=>"Georgia", :HI=>"Hawaii", :IA=>"Iowa", :ID=>"Idaho", :IL=>"Illinois", :IN=>"Indiana", :KS=>"Kansas", :KY=>"Kentucky", :LA=>"Louisiana", :MA=>"Massachusetts", :MD=>"Maryland", :ME=>"Maine", :MI=>"Michigan", :MN=>"Minnesota", :MO=>"Missouri", :MS=>"Mississippi", :MT=>"Montana", :NC=>"North Carolina", :ND=>"North Dakota", :NE=>"Nebraska", :NH=>"New Hampshire", :NJ=>"New Jersey", :NM=>"New Mexico", :NV=>"Nevada", :NY=>"New York", :OH=>"Ohio", :OK=>"Oklahoma", :OR=>"Oregon", :PA=>"Pennsylvania", :RI=>"Rhode Island", :SC=>"South Carolina", :SD=>"South Dakota", :TN=>"Tennessee", :TX=>"Texas", :UT=>"Utah", :VA=>"Virginia", :VT=>"Vermont", :WA=>"Washington", :WI=>"Wisconsin", :WV=>"West Virginia", :WY=>"Wyoming"}
14
14
  ```
15
15
  **PS:** *city-state is case insensitive. You can use :US, :us, :Us, "us", "US", ...*
16
16
 
17
- ## Get a list of cities:
17
+ ## List of cities:
18
18
  ```ruby
19
19
  CS.cities(:ak, :us)
20
20
  # => ["Adak", "Akhiok", "Akiachak", "Akiak", "Akutan", "Alakanuk", "Ambler", "Anchor Point", "Anchorage", "Angoon", "Atqasuk", "Barrow", "Bell Island Hot Springs", "Bethel", "Big Lake", "Buckland", "Chefornak", "Chevak", "Chicken", "Chugiak", "Coffman Cove", "Cooper Landing", "Copper Center", "Cordova", "Craig", "Deltana", "Dillingham", "Douglas", "Dutch Harbor", "Eagle River", "Eielson Air Force Base", "Fairbanks", "Fairbanks North Star Borough", "Fort Greely", "Fort Richardson", "Galena", "Girdwood", "Goodnews Bay", "Haines", "Homer", "Hooper Bay", "Juneau", "Kake", "Kaktovik", "Kalskag", "Kenai", "Ketchikan", "Kiana", "King Cove", "King Salmon", "Kipnuk", "Klawock", "Kodiak", "Kongiganak", "Kotlik", "Koyuk", "Kwethluk", "Levelock", "Manokotak", "May Creek", "Mekoryuk", "Metlakatla", "Mountain Village", "Nabesna", "Naknek", "Nazan Village", "Nenana", "New Stuyahok", "Nikiski", "Ninilchik", "Noatak", "Nome", "Nondalton", "Noorvik", "North Pole", "Northway", "Old Kotzebue", "Palmer", "Pedro Bay", "Petersburg", "Pilot Station", "Point Hope", "Point Lay", "Prudhoe Bay", "Russian Mission", "Sand Point", "Scammon Bay", "Selawik", "Seward", "Shungnak", "Sitka", "Skaguay", "Soldotna", "Stebbins", "Sterling", "Sutton", "Talkeetna", "Teller", "Thorne Bay", "Togiak", "Tok", "Toksook Bay", "Tuntutuliak", "Two Rivers", "Unalakleet", "Unalaska", "Valdez", "Wainwright", "Wasilla"]
21
21
  ```
22
22
 
23
- ## Get a list of all countries of the world:
23
+ ## All countries of the world:
24
24
  ```ruby
25
25
  CS.countries
26
26
  # => {:AD=>"Andorra", :AE=>"United Arab Emirates", :AF=>"Afghanistan", :AG=>"Antigua and Barbuda", :AI=>"Anguilla", :AL=>"Albania", :AM=>"Armenia", :AO=>"Angola", :AQ=>"Antarctica", :AR=>"Argentina", :AS=>"American Samoa", :AT=>"Austria", :AU=>"Australia", :AW=>"Aruba", :AX=>"Åland", :AZ=>"Azerbaijan", :BA=>"Bosnia and Herzegovina", :BB=>"Barbados", :BD=>"Bangladesh", :BE=>"Belgium", :BF=>"Burkina Faso", :BG=>"Bulgaria", :BH=>"Bahrain", :BI=>"Burundi", :BJ=>"Benin", :BL=>"Saint-Barthélemy", :BM=>"Bermuda", :BN=>"Brunei", :BO=>"Bolivia", :BQ=>"Bonaire", :BR=>"Brazil", :BS=>"Bahamas", :BT=>"Bhutan", :BW=>"Botswana", :BY=>"Belarus", :BZ=>"Belize", :CA=>"Canada", :CC=>"Cocos [Keeling] Islands", :CD=>"Congo", :CF=>"Central African Republic", :CG=>"Republic of the Congo"}
@@ -36,7 +36,7 @@ module CS
36
36
  Dir[File.join(FILES_FOLDER, "states.*")].each do |state_fn|
37
37
  self.install(state_fn.split(".").last.upcase.to_sym) # reinstall country
38
38
  end
39
- @countries = @cities = @states = {} # invalidades cache
39
+ @countries, @states, @cities = [{}, {}, {}] # invalidades cache
40
40
  File.delete COUNTRIES_FN # force countries.yml to be generated at next call of CS.countries
41
41
  true
42
42
  end
@@ -1,3 +1,3 @@
1
1
  module CS
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
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.12
4
+ version: 0.0.13
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-09 00:00:00.000000000 Z
11
+ date: 2015-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler