eew_parser 0.2.4 → 0.2.5

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: 84867fff97e9683770468608b4897c7b08077fed62a13bceef8997ff60bf469a
4
- data.tar.gz: 4d5985cf10bf5a7780bb6368e4b3f288d79bbf5051377a1feb838edd0e8f180d
3
+ metadata.gz: 4aa589331bd214780e5d9425dffbeb03bbf1a70d0d25cfec5e5a97a55e50e80b
4
+ data.tar.gz: 5a537eae87f372630c6a34f83d7d9b7f7ceeda28e6893f5ad97ba521c4ef82f3
5
5
  SHA512:
6
- metadata.gz: 0c0bac0a49ed1ff6fc5d75460b52a12ea52158a1f17f593a3060d72c75820bcb40c03b2d376f923469ee888382931286f256906fdde5fd98d20ab374fb3c118c
7
- data.tar.gz: 793fc2477d699bdbd4642dac86f406bc828ebd1cadf78cf67e278da7694b6dba727a2d735604091ef8c12a9be713dd985263ba565e65d57c360c82bd5e3bb7ef
6
+ metadata.gz: 8b45976907d3ad6206338ef2505e844627f30c1662dde960e6c041041d01f486135e8ad4967de1a299230a867fb4195c0d8a2aa677bc042e4a982d7a0330212b
7
+ data.tar.gz: e0919c4ef98360d6d81b9bb501a89c64409959b54efdfbb6fdddfecfb0d0a877c14f8e8bcdcd0de41b90664e7fbe7c84a04faf358ecfc20e7a22b8ac35f015db
data/eew_parser.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "eew_parser"
3
- spec.version = "0.2.4"
3
+ spec.version = "0.2.5"
4
4
  spec.authors = ["Masaki Matsushita"]
5
5
  spec.email = ["glass.saga@gmail.com"]
6
6
  spec.summary = %q{Parser for Earthquake Early Warning from JMA}
data/lib/area_code.rb CHANGED
@@ -99,6 +99,8 @@ module EEW
99
99
  391 => "石川県加賀",
100
100
  400 => "福井県嶺北",
101
101
  401 => "福井県嶺南",
102
+ 411 => "山梨県中・西部",
103
+ 412 => "山梨県東部・富士五湖",
102
104
  420 => "山梨県東部",
103
105
  421 => "山梨県西部",
104
106
  430 => "長野県北部",
data/lib/eew_parser.rb CHANGED
@@ -635,9 +635,7 @@ module EEW
635
635
  end
636
636
 
637
637
  def ebi_area_name(area_code)
638
- return AreaCode.fetch(area_code)
639
- rescue KeyError
640
- raise Error, "電文の形式が不正です(EBI: 地域名称)"
638
+ return AreaCode.fetch(area_code, "不明")
641
639
  end
642
640
 
643
641
  def ebi_intensity(local_str)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eew_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaki Matsushita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-17 00:00:00.000000000 Z
11
+ date: 2024-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  - !ruby/object:Gem::Version
106
106
  version: '0'
107
107
  requirements: []
108
- rubygems_version: 3.5.9
108
+ rubygems_version: 3.5.11
109
109
  signing_key:
110
110
  specification_version: 4
111
111
  summary: Parser for Earthquake Early Warning from JMA