geo_master_jp 0.1.26 → 0.1.27
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdbb79f24d837f43fc96dc1ddf04fe14bd43d1b234e9928d9e8435f3445f6216
|
4
|
+
data.tar.gz: 06a43b3aa8e7ac69bc00e1dfc8fa7df61e8f7fff830652be49febcceccf6e901
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e994cc5ab019eed3de83acff48524e0cd97f1bb047f1313d816ac2951861a2455fb917af49fe7d2f05ad917295794dc7791f3f7f9a9c72e9ed9b6581c8d3e8ed
|
7
|
+
data.tar.gz: 355268293ef44ba5a4009cda8a951935b9bede0d82d20f1ac3efcff91d290db9b43ec94bd384e3a4ad62f4b2c8d0b858243e3e99e1254b8bbf878659a89d6c70
|
@@ -7,7 +7,7 @@ module GeoMasterJp
|
|
7
7
|
prefectures: prefectures.map{|prefecture|
|
8
8
|
prefecture.as_json(only: [:code, :name, :name_kana, :name_alphabet, :short_name])
|
9
9
|
},
|
10
|
-
initials: prefectures.group_by(&:head_kana).sort_by(&:first).to_h
|
10
|
+
initials: prefectures.sort_by(&:name_kana).group_by(&:head_kana).sort_by(&:first).to_h
|
11
11
|
}
|
12
12
|
end
|
13
13
|
|
@@ -24,7 +24,7 @@ module GeoMasterJp
|
|
24
24
|
cities: cities.map{|city|
|
25
25
|
city.as_json(only: [:code, :name, :name_kana, :name_alphabet, :short_name])
|
26
26
|
},
|
27
|
-
initials: cities.group_by(&:head_kana).sort_by(&:first).to_h
|
27
|
+
initials: cities.sort_by(&:name_kana).group_by(&:head_kana).sort_by(&:first).to_h
|
28
28
|
}
|
29
29
|
end
|
30
30
|
|
@@ -41,7 +41,7 @@ module GeoMasterJp
|
|
41
41
|
towns: towns.map{|town|
|
42
42
|
town.as_json(only: [:zip_code, :code, :name, :name_kana, :name_alphabet, :short_name])
|
43
43
|
},
|
44
|
-
initials: towns.group_by(&:head_kana).sort_by(&:first).to_h
|
44
|
+
initials: towns.sort_by(&:name_kana).group_by(&:head_kana).sort_by(&:first).to_h
|
45
45
|
}
|
46
46
|
end
|
47
47
|
end
|