basho 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d5062b6af6d64bcb37a5b30cd46521e4cad6705db4d742f29ec417cc6f91aed
4
- data.tar.gz: c144f49283693da2234a7d560eb65d4a08741ba2e7531385602504b18799b60e
3
+ metadata.gz: c5c51563bcdb143a92a3dd9e3a639b45b0fdf91911f792444421fc1b5ec26b6c
4
+ data.tar.gz: c95190b949c602b9e462a4d625e05e2d2e706b7c763b1b0e18dd4409a7fd358c
5
5
  SHA512:
6
- metadata.gz: 18dbff26b5479ac3c280de831441285b8388725afe1c7f58c69ff0c664e877dea9a1e81f5d02986dc851f8cce60e7a6679d47f4d70804f756196138257f0e2fc
7
- data.tar.gz: 8f57383aaee2e18e118d3001d824ddc3c8a2aa83ba4af136c6d5dcc273e4c83c1138c42ceea0bdbaf2c995de4407deb41d116aa3b64aa1e69fcc9400135e793c
6
+ metadata.gz: a9fb8dbf6572c8e1a7803743789a559bdaad88af2614c94a707ad4dc5bc445ec491d0bcf4c3e5a03fe3db472d18b80329bf2adff7d4c37b59909a6f653ff3a9c
7
+ data.tar.gz: 4ea4a2d23dfbe54d4250577154aff29d27ad80443a59a5d6fc24d67dcb51aeee592f8d51f303e8208a2efe9407f4e3135321b19b8fa61e8fda652f4e94d6799b
data/CHANGELOG.md CHANGED
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.2.2] - 2026-02-09
9
+
10
+ ### Fixed
11
+
12
+ - Railsアプリで`Basho::Engine`が自動読み込みされない問題を修正
13
+
14
+ ## [0.2.1] - 2026-02-09
15
+
16
+ ### Fixed
17
+
18
+ - `PostalAutoResolve.resolve_city_code`で郡のある町村(923件)の`city_code`が解決されないバグを修正
19
+
8
20
  ## [0.2.0] - 2026-02-08
9
21
 
10
22
  ### Added
@@ -38,6 +50,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
38
50
  - GitHub Actions CI(Ruby 3.2/3.3/3.4)
39
51
  - 月次データ自動更新ワークフロー
40
52
 
53
+ [0.2.2]: https://github.com/wagai/basho/releases/tag/v0.2.2
54
+ [0.2.1]: https://github.com/wagai/basho/releases/tag/v0.2.1
41
55
  [0.2.0]: https://github.com/wagai/basho/releases/tag/v0.2.0
42
56
  [0.1.2]: https://github.com/wagai/basho/releases/tag/v0.1.2
43
57
  [0.1.0]: https://github.com/wagai/basho/releases/tag/v0.1.0
@@ -66,7 +66,7 @@ module Basho
66
66
 
67
67
  def resolve_city_code(postal)
68
68
  City.where(prefecture_code: postal.prefecture_code)
69
- .find { |c| c.name == postal.city_name }&.code
69
+ .find { |c| c.full_name == postal.city_name }&.code
70
70
  end
71
71
  end
72
72
  end
data/lib/basho/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Basho
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.2"
5
5
  end
data/lib/basho.rb CHANGED
@@ -8,6 +8,7 @@ require_relative "basho/code_validator"
8
8
  require_relative "basho/city"
9
9
  require_relative "basho/postal_code"
10
10
  require_relative "basho/active_record/base"
11
+ require_relative "basho/engine" if defined?(Rails::Engine)
11
12
 
12
13
  # 日本の住所データ(都道府県・市区町村・郵便番号・地方区分)を統一的に扱うgem
13
14
  module Basho
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basho
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hirotaka Wagai