jipcode 1.5.12 → 2.0.0

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: bbc9f1c206b003c9ee8593d8863fecb538f9a750346bc6b7f5a074541fe0092c
4
- data.tar.gz: 176c98bf2a31b652af0ede858ebb9b38d0c94a6f555a4a3f2091e3f327cded59
3
+ metadata.gz: 5023ba8e822485ca97f5217582e4099641831ad85842820a9608a0f8c8d80466
4
+ data.tar.gz: f9c4e8c8dc098fec1dedfa9f613129f16a1c6bbdb9756c33451fa5e4c4154f1f
5
5
  SHA512:
6
- metadata.gz: 8a485f19af4647272a53c62ad7557113d42d67196e890d41aacd7e1dcb673509234f0d237814d5b384d5b6963665ca6fa400a1824d4def151bacff2516e359a8
7
- data.tar.gz: 73604a06cb909bdc562d733f33d2be4d59f59c4fc537667eac6c4e0a4717e3f293d653f7dfa7146d082fd7c5c6371bf834239b6fbca0690501b9d027ce0fa6a0
6
+ metadata.gz: 7382d96590ad5592af1ba3ddeea843af8d572fadb6f7ffbd9981fb7e082f84ec0512bd374f5d23b062c31ca8f29c07013bb3276c662f88ac49fb1ce3ddde2256
7
+ data.tar.gz: 3c84e060249db0c033a3f97e10c4de0ec46b3ef8593562ee1dc9f3be02b7e32bcb456e9b12190479558259ca132aaa12259d7d4572b708b86caa92afb44ab4ed
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jipcode (1.5.12)
4
+ jipcode (2.0.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -14,6 +14,8 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://github.com/rinkei/jipcode"
15
15
  spec.license = "MIT"
16
16
 
17
+ spec.required_ruby_version = '>= 2.4.0'
18
+
17
19
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
20
  f.match(%r{^(test|spec|features)/})
19
21
  end
@@ -8,7 +8,7 @@ module Jipcode
8
8
 
9
9
  def locate(zipcode, opt={})
10
10
  # 数字7桁以外の入力は受け付けない
11
- return [] unless zipcode =~ /\A\d{7}?\z/
11
+ return [] unless zipcode&.match?(/\A\d{7}?\z/)
12
12
 
13
13
  # 上3桁にマッチするファイルが存在しなければ該当なし
14
14
  path = "#{ZIPCODE_PATH}/#{zipcode[0..2]}.csv"
@@ -1,3 +1,3 @@
1
1
  module Jipcode
2
- VERSION = '1.5.12'
2
+ VERSION = '2.0.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jipcode
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.12
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - rinkei
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-02 00:00:00.000000000 Z
11
+ date: 2020-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -1097,15 +1097,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
1097
1097
  requirements:
1098
1098
  - - ">="
1099
1099
  - !ruby/object:Gem::Version
1100
- version: '0'
1100
+ version: 2.4.0
1101
1101
  required_rubygems_version: !ruby/object:Gem::Requirement
1102
1102
  requirements:
1103
1103
  - - ">="
1104
1104
  - !ruby/object:Gem::Version
1105
1105
  version: '0'
1106
1106
  requirements: []
1107
- rubyforge_project:
1108
- rubygems_version: 2.7.6
1107
+ rubygems_version: 3.0.3
1109
1108
  signing_key:
1110
1109
  specification_version: 4
1111
1110
  summary: A gem for Japan Post's official zipcode data search & update.