notam 1.1.3.pre1 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +7 -1
- data/lib/notam/schedule.rb +6 -4
- data/lib/notam/version.rb +1 -1
- data/lib/notam.rb +0 -1
- data.tar.gz.sig +0 -0
- metadata +6 -20
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2c4ccc31924d8944cb6b0f0be5d459c550671d3b4e558996f9e4fe970616338
|
4
|
+
data.tar.gz: b4516ec0dea483421d9af7dc290aebc4353951b3ee27e698cf9595d26d1e610c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea182ba15cfb1550e4d83102eefbdfab50df6ba17bac70abe44c978ddac19265cc58d1e06394164a7a4b376d0313229533e86eaae58dc3bc3a3944e151a82e3c
|
7
|
+
data.tar.gz: 0467ca1270c65c10c78c611180c706dd18c347620b0b3242279c54030f3b50573a8dd6863a7a5de2772df20a0de2dc5fc983ffe768dbaf0f452ff0b89e907303
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
data/lib/notam/schedule.rb
CHANGED
@@ -15,16 +15,18 @@ module NOTAM
|
|
15
15
|
DATE_RE = /[0-2]\d|3[01]/.freeze
|
16
16
|
DAY_RE = /#{DAYS.keys.join('|')}/.freeze
|
17
17
|
MONTH_RE = /#{MONTHS.keys.join('|')}/.freeze
|
18
|
-
|
18
|
+
HCODE_RE = /(?<hcode>H24|HJ|HN)/.freeze
|
19
19
|
HOUR_RE = /(?<hour>[01]\d|2[0-4])(?<minute>[0-5]\d)/.freeze
|
20
20
|
OPERATIONS_RE = /#{OPERATIONS.keys.join('|')}/.freeze
|
21
21
|
EVENT_RE = /(?<event>SR|SS)(?:\s(?<operation>#{OPERATIONS_RE})(?<delta>\d+))?/.freeze
|
22
22
|
TIME_RE = /#{HOUR_RE}|#{EVENT_RE}/.freeze
|
23
|
-
TIME_RANGE_RE = /#{TIME_RE}-#{TIME_RE}|#{
|
23
|
+
TIME_RANGE_RE = /#{TIME_RE}-#{TIME_RE}|#{HCODE_RE}/.freeze
|
24
24
|
DATETIME_RE = /(?:(?<month>#{MONTH_RE}) )?(?<date>#{DATE_RE}) (?<time>#{TIME_RE})/.freeze
|
25
25
|
DATETIME_RANGE_RE = /#{DATETIME_RE}-#{DATETIME_RE}/.freeze
|
26
26
|
|
27
27
|
H24 = (AIXM::BEGINNING_OF_DAY..AIXM::END_OF_DAY).freeze
|
28
|
+
HJ = (AIXM.time(:sunrise)..AIXM.time(:sunset)).freeze
|
29
|
+
HN = (AIXM.time(:sunset)..AIXM.time(:sunrise)).freeze
|
28
30
|
|
29
31
|
# Active dates or days
|
30
32
|
#
|
@@ -182,8 +184,8 @@ module NOTAM
|
|
182
184
|
# @return [Range<AIXM::Schedule::Time>]
|
183
185
|
def time_range_from(string)
|
184
186
|
case string
|
185
|
-
when
|
186
|
-
|
187
|
+
when HCODE_RE
|
188
|
+
const_get($~[:hcode].upcase)
|
187
189
|
else
|
188
190
|
from, to = string.split('-')
|
189
191
|
(time_from(from)..time_from(to))
|
data/lib/notam/version.rb
CHANGED
data/lib/notam.rb
CHANGED
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.
|
4
|
+
version: 1.1.4
|
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: 2023-
|
32
|
+
date: 2023-09-04 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: aixm
|
@@ -65,20 +65,6 @@ dependencies:
|
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '1'
|
68
|
-
- !ruby/object:Gem::Dependency
|
69
|
-
name: countries
|
70
|
-
requirement: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '4'
|
75
|
-
type: :runtime
|
76
|
-
prerelease: false
|
77
|
-
version_requirements: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - "~>"
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '4'
|
82
68
|
- !ruby/object:Gem::Dependency
|
83
69
|
name: rake
|
84
70
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,7 +108,7 @@ dependencies:
|
|
122
108
|
- !ruby/object:Gem::Version
|
123
109
|
version: '0'
|
124
110
|
- !ruby/object:Gem::Dependency
|
125
|
-
name: minitest-
|
111
|
+
name: minitest-flash
|
126
112
|
requirement: !ruby/object:Gem::Requirement
|
127
113
|
requirements:
|
128
114
|
- - ">="
|
@@ -253,11 +239,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
253
239
|
version: 3.0.0
|
254
240
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
255
241
|
requirements:
|
256
|
-
- - "
|
242
|
+
- - ">="
|
257
243
|
- !ruby/object:Gem::Version
|
258
|
-
version:
|
244
|
+
version: '0'
|
259
245
|
requirements: []
|
260
|
-
rubygems_version: 3.4.
|
246
|
+
rubygems_version: 3.4.19
|
261
247
|
signing_key:
|
262
248
|
specification_version: 4
|
263
249
|
summary: Parser for NOTAM (Notice to Airmen) messages
|
metadata.gz.sig
CHANGED
Binary file
|