japanese_address_parser 1.1.0 → 1.1.1

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: 8db8bb4dbc75e3fbed4fe0327009b92883fa21a71772c6b13f045b1249090e5d
4
- data.tar.gz: 8e43bdb9b8b4576e4dbbf6da9d2e5f7a21b72ddb310f6fbe73922531e0ee2d11
3
+ metadata.gz: 751d9d32c3ecd56aed2caa14b4278f5161bc2ed2bbceb5f00439513195a704ef
4
+ data.tar.gz: dfc3a62f723f0cad420b4fbd0a8e6208bb91aa93719cdf34c0ea1159b711f098
5
5
  SHA512:
6
- metadata.gz: fcd3d146caacdab78b5d4df324cb4a5e18e57b3019a269fdc398f03241dc72c2f2f9f987bce1705d083fbed1b3eae73c39242490741209f77c642f990bd9939b
7
- data.tar.gz: 9995a8994dc706c7af60782a9e6152fdc6ea042e35e3231972371ae6ce2341a6377738172bbb8e23a24137c8518f0ff2b19cd757f8312203771a09d5ff97278c
6
+ metadata.gz: e3ef9fa6f0ad1ae4cdfc0e56d7834c01578696f72bf4c19d471c316d44746508c703b1feadb964059068307fa8e72396621c4db59a7d26aa3fbd95976c162775
7
+ data.tar.gz: a69fec9f6363cc81115fa1fe251234095631015f538f7173b01b8c97e993be01f6a5545f99a98d06edfbda354e25003a6c609f2a4a717e909d660965bf1eda82
data/CHANGELOG.md CHANGED
@@ -15,8 +15,16 @@ Change Log の形式は [Keep a Changelog](http://keepachangelog.com/) に従い
15
15
 
16
16
  ### Fixed
17
17
 
18
+ - [#25](https://github.com/yamat47/japanese_address_parser/pull/25) 町域が含まれていないときに市区町村に含まれる最初の町域がヒットしてしまっていた不具合を解消した。([@yamat47](https://github.com/yamat47))
19
+
18
20
  ### Security
19
21
 
22
+ ## [1.1.1] - 2022-01-08
23
+
24
+ ### Fixed
25
+
26
+ - [#25](https://github.com/yamat47/japanese_address_parser/pull/25) 町域が含まれていないときに市区町村に含まれる最初の町域がヒットしてしまっていた不具合を解消した。([@yamat47](https://github.com/yamat47))
27
+
20
28
  ## [1.1.0] - 2022-01-07
21
29
 
22
30
  ### Changed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- japanese_address_parser (1.1.0)
4
+ japanese_address_parser (1.1.1)
5
5
  number_to_kanji
6
6
 
7
7
  GEM
@@ -19,6 +19,9 @@ module JapaneseAddressParser
19
19
  return _build_address(full_address: full_address, prefecture: prefecture) if city.nil?
20
20
 
21
21
  town_and_after = city_and_after.delete_prefix(city.name)
22
+
23
+ return _build_address(full_address: full_address, prefecture: prefecture, city: city) if town_and_after.empty?
24
+
22
25
  normalized_town_and_after = ::JapaneseAddressParser::AddressParser::TownAndAfterNormalizer.call(town_and_after)
23
26
  town_and_after_pattern = ::JapaneseAddressParser::AddressParser::PatternCreator.call(normalized_town_and_after)
24
27
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JapaneseAddressParser
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
5
5
  public_constant :VERSION
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: japanese_address_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yamaguchi Takuya
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-07 00:00:00.000000000 Z
11
+ date: 2022-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: number_to_kanji