locality 1.0.0 → 1.0.1

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
  !binary "U0hBMQ==":
3
- metadata.gz: 618c2cb79d7a5f553aa7f27650bbb956dd0a858e
4
- data.tar.gz: bf9db9561eac4b7d1c065acdd62a70959f3e8fe3
3
+ metadata.gz: 02222a241b20efa248098b82ab00a70dda5e525e
4
+ data.tar.gz: 951d6823bfb5af427d4cdbc2280fb63a9ffbe491
5
5
  SHA512:
6
- metadata.gz: ad86c0e2cae2bcfb07f1e47907e476e4c0d71469fed3e4b753f29ed7f9f383c8ffb3ecd30bf641d78fe778e8d98fedab5daa32f46e0c31b2664e58d6b69cf2fb
7
- data.tar.gz: ec77036a2661ca9f07973c3b027d268243af67447bda76f64fab6bcfbee9c222e4499d546f4a1aefcfdfbd99eb256d4a9ab7a635393abb3caaf87c80996ec6d6
6
+ metadata.gz: bbb4989695385132e3cdc24b1d26fd2e45025547488b3fd9b1d0d9d1430c80ea433ebc15090aa9d21056b0619dabd4bda2d950c4f850e7835be59a7ab69b228c
7
+ data.tar.gz: 2722dbb8584bf5d922ae22d2fd23b202d41e9ff2778a0d889b9b4178665b9218382c7ad8a91582d77819b197cc4d2aa67a9d2fb90074dd517a4586fc55acc2f6
@@ -8,7 +8,8 @@ module Locality
8
8
 
9
9
  # See http://www.scb.se/Pages/List____257281.aspx
10
10
  def self.codes
11
- Hash[backend.map { |code, entries| [code, entries.first.state_name] }]
11
+ array = backend.map { |code, entries| [code, entries.first.state_name] }.sort
12
+ Hash[*array.flatten]
12
13
  end
13
14
 
14
15
  def code
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locality
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - bukowskis