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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18311585815e5dcf56f3d411ca05de397fa7cd02abc445d2e0a955b8a4184707
4
- data.tar.gz: 0c96db85cdfe2813aa974087044b216f9ac9ced153d5b6661444a3bd74e8d239
3
+ metadata.gz: e2c4ccc31924d8944cb6b0f0be5d459c550671d3b4e558996f9e4fe970616338
4
+ data.tar.gz: b4516ec0dea483421d9af7dc290aebc4353951b3ee27e698cf9595d26d1e610c
5
5
  SHA512:
6
- metadata.gz: 34c4edb2e848b573eab84636134291b6581dbfccc89eed657c785b6aa5afe8feb101ccee5277060fdc1efce095c6f5da14c8a455e9e5429ad608963747c03e74
7
- data.tar.gz: e0ff937aa5b5d20dd429c837070ba9b8589f3cc1bda85f7fef959fba97d8199b727049acc60bf4f30fe26f70a331fd576193e41cc144391c5943f6f5867f4782
6
+ metadata.gz: ea182ba15cfb1550e4d83102eefbdfab50df6ba17bac70abe44c978ddac19265cc58d1e06394164a7a4b376d0313229533e86eaae58dc3bc3a3944e151a82e3c
7
+ data.tar.gz: 0467ca1270c65c10c78c611180c706dd18c347620b0b3242279c54030f3b50573a8dd6863a7a5de2772df20a0de2dc5fc983ffe768dbaf0f452ff0b89e907303
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -2,10 +2,16 @@
2
2
 
3
3
  Nothing so far
4
4
 
5
- ## 1.1.3.pre1
5
+ ## 1.1.4
6
+
7
+ #### Changes
8
+ * Drop obsolete countries gem
9
+
10
+ ## 1.1.3
6
11
 
7
12
  #### Changes
8
13
  * Don't wrap years when breaking down date ranges
14
+ * Allow HJ and HN in schedules
9
15
 
10
16
  ## 1.1.2
11
17
 
@@ -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
- H24_RE = /(?<h24>H24)/.freeze
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}|#{H24_RE}/.freeze
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 H24_RE
186
- H24
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NOTAM
4
- VERSION = "1.1.3.pre1".freeze
4
+ VERSION = "1.1.4".freeze
5
5
  end
data/lib/notam.rb CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  require 'aixm'
4
4
  require 'i18n'
5
- require 'countries'
6
5
 
7
6
  require_relative "notam/version"
8
7
  require_relative "notam/errors"
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.3.pre1
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-06-27 00:00:00.000000000 Z
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-sound
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: 1.3.1
244
+ version: '0'
259
245
  requirements: []
260
- rubygems_version: 3.4.14
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