aipp 2.0.0 → 2.0.2

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: aead3f21ec1e78d23e1c273e6d19f3db92834bb3dccd8ec77f85bf3c279a7a74
4
- data.tar.gz: 8c1203247d9a8714fabb704fabbd972364f6c1544b2294b6ae004a59ebf94c74
3
+ metadata.gz: aae45b128912df9df9109e73ba42eaa08491b28811f2aa4cd0d9ce0a703407a3
4
+ data.tar.gz: ff736ac780721e9829bfdcbaa4dd55fb303adef8832a8a0a48aeba14f6ee94af
5
5
  SHA512:
6
- metadata.gz: '09e058cee67ad5456af31c5cbc93462207303f89857e4bc709d9c09fb9f82212f24db2c59fe1e99a26b0153449f5b347aedd731114b2c549e246a23f270c558a'
7
- data.tar.gz: 00c2fdf2386236e31f965317d1d743522adf70a10e80fbf04371ed5c350dcc22f490592ab06d05665a6d8acc55257b458a81cc5c151c031e6b4fc7b4bb04548f
6
+ metadata.gz: c9dfd3da655aa728bd3794b2c66ae9bfda2a62ebf13a03c2e88e82c329245532e00e3204ff3fa8f16a800f6531b0717a0eb026318e96a92537594c349ecf0e23
7
+ data.tar.gz: d51724f671e855b6ff396fe3e2dcc84440db2685092c28a8d8d9e08e2cf3ee5f4faf61a2720abccf45d5e8b5944cbaed9d1aa41944b7777d6cee9dacdbd6aece
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1 @@
1
- ��~@f���x�i�h*���=�L���b0��'�Ђ2zUh���7H4~�]ӧ^� �\�+�0����W-��`������ۡMn&��*^�Gm��h��킡.�LRi�&��*,�꛿
2
- Oʼn�7������E��F���H��;[fp�=���3���%�bS��TP̥��)���,s����Q���d#�Ku�� ����[N���byN{�'TR�i��p��/+S�b�U͂���� d:V8��zw
1
+ ׼��O�i��Ib�f��x�����~�;�c&(��W�@4���W1O"��<v�����TGM�V2��vo����ު�~1�����Q� Rc2��O�*h ���j�,�Mkz^��SX�F��A�*��y@Y[<S[i��g�Ԥ�u���j�������ᙛK����f�:q��H��/)��Y[Mx��U~��3~l%Dף��X!��3�aq�Ҵ�U6YU��Z��h
data/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  Nothing so far
4
4
 
5
+ ## 2.0.2
6
+
7
+ #### Additions
8
+ * Support for Ruby 3.2
9
+
10
+ #### Fixes
11
+ * Improve hack to fix braindead years on D-items
12
+
13
+ ## 2.0.1
14
+
15
+ #### Fixes
16
+ * Fix ineffective rescue when parsing a NOTAM fails in force mode
17
+ * Hack to fix braindead years on D-items
18
+
5
19
  ## 2.0.0
6
20
 
7
21
  #### Additions
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [![Version](https://img.shields.io/gem/v/aipp.svg?style=flat)](https://rubygems.org/gems/aipp)
2
- [![Tests](https://img.shields.io/github/workflow/status/svoop/aipp/Test.svg?style=flat&label=tests)](https://github.com/svoop/aipp/actions?workflow=Test)
2
+ [![Tests](https://img.shields.io/github/actions/workflow/status/svoop/aipp/test.yml?style=flat&label=tests)](https://github.com/svoop/aipp/actions?workflow=Test)
3
3
  [![Donorbox](https://img.shields.io/badge/donate-on_donorbox-yellow.svg)](https://donorbox.org/bitcetera)
4
4
 
5
5
  # AIPP
@@ -21,6 +21,14 @@ if row['notamRaw'].match? /\A[AB]/
21
21
  end
22
22
  end
23
23
 
24
+ # HACK: remove braindead years from D-item of W-series NOTAM
25
+ if row['notamRaw'].match? /\AW/
26
+ year = Time.now.year
27
+ if row['notamRaw'].gsub!(/\s*(?:#{year}|#{year+1})\s*(#{NOTAM::Schedule::MONTH_RE})/, ' \1')
28
+ warn("HACK: removed braindead years from D item")
29
+ end
30
+ end
31
+
24
32
  (notam = notam_for(row['notamRaw'])) or next
25
33
  if respect? notam
26
34
  next if notam.data[:five_day_schedules] == []
@@ -80,7 +88,7 @@ end
80
88
  NOTAM.parse(raw_notam)
81
89
  rescue
82
90
  warn "cannot parse #{notam_id}"
83
- raise if AIPP.options.force
91
+ raise unless AIPP.options.force
84
92
  end
85
93
 
86
94
  # @return [Boolean] whether to respect this NOTAM or ignore it
data/lib/aipp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module AIPP
2
- VERSION = "2.0.0".freeze
2
+ VERSION = "2.0.2".freeze
3
3
  end
data/lib/aipp.rb CHANGED
@@ -60,10 +60,3 @@ require_relative 'aipp/aip/parser'
60
60
  require_relative 'aipp/notam/executable'
61
61
  require_relative 'aipp/notam/runner'
62
62
  require_relative 'aipp/notam/parser'
63
-
64
- # Disable "did you mean?" suggestions
65
- #
66
- # @!visibility private
67
- module DidYouMean::Correctable
68
- remove_method :to_s
69
- end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aipp
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sven Schwyn
@@ -29,7 +29,7 @@ cert_chain:
29
29
  kAyiRqgxF4dJviwtqI7mZIomWL63+kXLgjOjMe1SHxfIPo/0ji6+r1p4KYa7o41v
30
30
  fwIwU1MKlFBdsjkd
31
31
  -----END CERTIFICATE-----
32
- date: 2022-11-20 00:00:00.000000000 Z
32
+ date: 2023-01-02 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: airac
@@ -441,7 +441,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
441
441
  - !ruby/object:Gem::Version
442
442
  version: '0'
443
443
  requirements: []
444
- rubygems_version: 3.3.26
444
+ rubygems_version: 3.4.2
445
445
  signing_key:
446
446
  specification_version: 4
447
447
  summary: Parser for aeronautical information publications
metadata.gz.sig CHANGED
Binary file