notam 1.1.0 → 1.1.1

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: 45b4ce39f423833013299133d3b54d3ee759d701aa6a53d0075e8546bd48dfa2
4
- data.tar.gz: f4a86ad18546f654becd05db944a2c9b22213f4095794c20dc911dccdfa93be8
3
+ metadata.gz: 417d4bc6e661b8d3a79cf54a3f191eea69643e6e40de00152589b12bedf8e768
4
+ data.tar.gz: 51e949d622b8da7772b8dc1e2247ffe41529e787ec2ee133a7852d728bfdf251
5
5
  SHA512:
6
- metadata.gz: c62bd682d3849093fb96d887f16933159945ecc60edae31da0415cc35f8c2bd4e30655d336a5134eddc0cb9443e7b492aae99f3868dad09c47d3731d7f69bb17
7
- data.tar.gz: a52c3ccb305e863d5cd8dc4bd2ff345406ca9a73ae4493cbc4445b8f7f3d63ab98371f219689b236e2c0257aab503b86700b1a770abd2bebc3a1fbd3a92a0e3a
6
+ metadata.gz: 6717133961de80fed0c49d88af287526e71654ea04ac51baeb69e1fc7b4bfdda8149bddec3949dc1292ad9bec69d1c4aa395224e6db5f17973bf9dd01a915b7e
7
+ data.tar.gz: 1827871715ad368903c2a91bc8da784a248f7cb44bf926d982efab3243c3ddc3afde83e2fecd1474c8b7725bf8ca4e824fd00ecade6710e9447c1c7e2a98ec18
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1,3 @@
1
- ���3Ƈ�3�*�P���3g��X�).5W��}!ҕ� �ږ!�pTmش���v�z���4m���ڤU���]X�HFK���a��i��rDj��`������9f��$$�����?z/����]o��Z5��L/��Tbt�8jπ����������3>ε�1 C��9z#�E��ޅ�y�r5a�+��,
2
- ���љt u���A$2)DVh��B��^���4,��(�T�I���jHV��
3
- �ϛ�5�@�u
1
+ ��*-bxsk:� ��,�d'��������%3O��7$=B ы�A�\�w[�.�
2
+ RCu�==���9=��4-fdqf&��j��xP��\2�AF���|�g��լ~ǵ7ih��T��$nzg���h��Ù ��k�
3
+ w&㛷r��G�۳��6
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  Nothing so far
4
4
 
5
+ ## 1.1.1
6
+
7
+ #### Fixes
8
+ * Carry over base date for multiple D-item elements which partially omit to
9
+ mention the month in every element
10
+
5
11
  ## 1.1.0
6
12
 
7
13
  #### Additions
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [![Version](https://img.shields.io/gem/v/notam.svg?style=flat)](https://rubygems.org/gems/notam)
2
- [![Tests](https://img.shields.io/github/workflow/status/svoop/notam/Test.svg?style=flat&label=tests)](https://github.com/svoop/notam/actions?workflow=Test)
2
+ [![Tests](https://img.shields.io/github/actions/workflow/status/svoop/notam/test.yml?style=flat&label=tests)](https://github.com/svoop/notam/actions?workflow=Test)
3
3
  [![Code Climate](https://img.shields.io/codeclimate/maintainability/svoop/notam.svg?style=flat)](https://codeclimate.com/github/svoop/notam/)
4
4
  [![Donorbox](https://img.shields.io/badge/donate-on_donorbox-yellow.svg)](https://donorbox.org/bitcetera)
5
5
 
data/lib/notam/item/d.rb CHANGED
@@ -15,7 +15,11 @@ module NOTAM
15
15
  def parse
16
16
  base_date = AIXM.date(data[:effective_at])
17
17
  @schedules = text.sub(/\AD\)/, '').split(',').flat_map do |string|
18
- Schedule.parse(string, base_date: base_date)
18
+ Schedule.parse(string, base_date: base_date).tap do |schedule|
19
+ if (date = schedule.first.actives.first).instance_of? AIXM::Schedule::Date
20
+ base_date = date # carry over month
21
+ end
22
+ end
19
23
  end
20
24
  self
21
25
  rescue
data/lib/notam/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NOTAM
4
- VERSION = "1.1.0".freeze
4
+ VERSION = "1.1.1".freeze
5
5
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notam
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
  - 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-19 00:00:00.000000000 Z
32
+ date: 2023-06-07 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: aixm
@@ -257,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
257
257
  - !ruby/object:Gem::Version
258
258
  version: '0'
259
259
  requirements: []
260
- rubygems_version: 3.3.26
260
+ rubygems_version: 3.4.13
261
261
  signing_key:
262
262
  specification_version: 4
263
263
  summary: Parser for NOTAM (Notice to Airmen) messages
metadata.gz.sig CHANGED
@@ -1 +1,3 @@
1
- ]�����8��R덝��Q�F\q A���=�-&���E�4[ �'@M�^��fi��6��:����o*״�XNζ$yx *���-1/zs,�т�m���FlJc��9�u�xEV*�d�{B-�;�F)�G˱��\����B��X���uW�
1
+ !�N~lo��q���u'Ʋ��iV��#��GM������|�ޞ>/P������uw��*4�%�<�Ȯ��#��r
2
+ ���=�J%ڠ
3
+ D4:��y��%�8���՞��B/5�:�&��qAe��gS�ɣ�=y*��@c��qF�|Fo7T���Js'�9,6�|��.��e��]����< �Vq�B9���(������MAa/P{0J�\72���dX8ΔC|!���