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: 222479be95afab1d7dfa5087907f5a99dcf229a4c35090c0b2dc8ba0fad79ac6
4
- data.tar.gz: 9e7a0dfd2ace7c18dc608d2255cf2a6e50b9198a0f1d981865d650ac479674a5
3
+ metadata.gz: bdbb79f24d837f43fc96dc1ddf04fe14bd43d1b234e9928d9e8435f3445f6216
4
+ data.tar.gz: 06a43b3aa8e7ac69bc00e1dfc8fa7df61e8f7fff830652be49febcceccf6e901
5
5
  SHA512:
6
- metadata.gz: 3a77f5add500810b1e8c5af4645e72f5a420b1a9f2cf2e92682ebbd7636f327b87833c01ae4174e62a9a9efc48d1c7670426bc0bc71ec7e54b88c128f3dad423
7
- data.tar.gz: 67e6b73dad5918e49cc8f92889471cbd3521ff7a60e3fa4980fbc9c5a97b7b89d1e4b2911e68b8e7efcda75a3e0081aa6edbd5c04aea6a5c87bfc501a424f813
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
@@ -1,3 +1,3 @@
1
1
  module GeoMasterJp
2
- VERSION = '0.1.26'
2
+ VERSION = '0.1.27'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geo_master_jp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.26
4
+ version: 0.1.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - ykogure