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 +4 -4
- data/lib/locality/postnummerservice/state.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02222a241b20efa248098b82ab00a70dda5e525e
|
4
|
+
data.tar.gz: 951d6823bfb5af427d4cdbc2280fb63a9ffbe491
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|