notam 1.1.4 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e2c4ccc31924d8944cb6b0f0be5d459c550671d3b4e558996f9e4fe970616338
4
- data.tar.gz: b4516ec0dea483421d9af7dc290aebc4353951b3ee27e698cf9595d26d1e610c
3
+ metadata.gz: 4d76857c6db19fbcfed2a83126e2f1f8f20242299e881a4ff0af75d5b88bde11
4
+ data.tar.gz: 951551a0a15ed048c14c74fb6cfc16b6159113fe273e1b6a33486a1d28e3ff3d
5
5
  SHA512:
6
- metadata.gz: ea182ba15cfb1550e4d83102eefbdfab50df6ba17bac70abe44c978ddac19265cc58d1e06394164a7a4b376d0313229533e86eaae58dc3bc3a3944e151a82e3c
7
- data.tar.gz: 0467ca1270c65c10c78c611180c706dd18c347620b0b3242279c54030f3b50573a8dd6863a7a5de2772df20a0de2dc5fc983ffe768dbaf0f452ff0b89e907303
6
+ metadata.gz: 6d3854b8eabe13b30a372444f4eb997239a56c6819b1772dcaf6706e22189eef827686bb18fb29ae418ce0ed2dd53d97a97eed621ee0dfb732b1c820ae5b79cd
7
+ data.tar.gz: 7bd00bdb01476879ef207403d9ffa2994d0408dafcf7d0453b5a483546db2ad75dd550b452d307ac300a7bd46b0243c9f1b3177bce11f9e4f50e19ca85ab5451
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
  Nothing so far
4
4
 
5
+ ## 1.1.6
6
+
7
+ #### Changes
8
+ * Update Ruby to 3.4
9
+ * Add ignore list for fixtures broken upstream
10
+
11
+ ## 1.1.5
12
+
13
+ #### Changes
14
+ * Add support for Ruby 3.3
15
+
5
16
  ## 1.1.4
6
17
 
7
18
  #### Changes
data/README.md CHANGED
@@ -1,16 +1,18 @@
1
1
  [![Version](https://img.shields.io/gem/v/notam.svg?style=flat)](https://rubygems.org/gems/notam)
2
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
- [![Donorbox](https://img.shields.io/badge/donate-on_donorbox-yellow.svg)](https://donorbox.org/bitcetera)
4
+ [![GitHub Sponsors](https://img.shields.io/github/sponsors/svoop.svg)](https://github.com/sponsors/svoop)
5
5
 
6
6
  # NOTAM
7
7
 
8
- Parser for [NOTAM (Notice to Airmen)](https://www.icao.int/safety/istars/pages/notams.aspx) messages in Ruby.
8
+ Parser for [NOTAM (Notice to Air Missions)](https://www.icao.int/safety/istars/pages/notams.aspx) messages in Ruby.
9
9
 
10
10
  * [Homepage](https://github.com/svoop/notam)
11
11
  * [API](https://www.rubydoc.info/gems/notam)
12
12
  * Author: [Sven Schwyn - Bitcetera](https://bitcetera.com)
13
13
 
14
+ Thank you for supporting free and open-source software by sponsoring on [GitHub](https://github.com/sponsors/svoop) or on [Donorbox](https://donorbox.com/bitcetera). Any gesture is appreciated, from a single Euro for a ☕️ cup of coffee to 🍹 early retirement.
15
+
14
16
  ## Install
15
17
 
16
18
  ### Security
@@ -254,6 +256,10 @@ bundle exec guard # run tests whenever files are modified
254
256
 
255
257
  You're welcome to [submit issues](https://github.com/svoop/notam/issues) and contribute code by [forking the project and submitting pull requests](https://docs.github.com/en/get-started/quickstart/fork-a-repo).
256
258
 
259
+ ## Trivia
260
+
261
+ In the early days, the acronym [NOTAM](https://en.wikipedia.org/wiki/NOTAM) ment "Notice to Airmen". As many women roam the skies these days as well, it has finally been redefined as "Notice to Air Missions".
262
+
257
263
  ## License
258
264
 
259
265
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/lib/locales/en.yml CHANGED
@@ -829,7 +829,7 @@ en:
829
829
  nonstandard: "nonstandard"
830
830
  no_procedure_turn_required: "no procedure turn required"
831
831
  number: "number"
832
- notice_to_airmen_publication: "notice to airmen publication"
832
+ notice_to_air_missions_publication: "notice to air missions publication"
833
833
  northwest: "northwest"
834
834
  obscured: "obscured/obscure/obscuring"
835
835
  obstacle: "obstacle/obstruction"
@@ -100,7 +100,7 @@ module NOTAM
100
100
  actives = send("#{active_unit}_from", raw_active_unit.strip)
101
101
  times = times_from(raw_times.strip)
102
102
  inactives = send("#{inactive_unit}_from", @exceptions)
103
- if times.any? &method(:across_midnight?)
103
+ if times.any?(&method(:across_midnight?))
104
104
  times.each_with_object([]) do |time, array|
105
105
  if across_midnight? time
106
106
  array << new(actives, [(time.first..AIXM::END_OF_DAY)], inactives, base_date: @base_date)
@@ -966,7 +966,7 @@ module NOTAM
966
966
  'NONSTD' => :nonstandard,
967
967
  'NOPT' => :no_procedure_turn_required,
968
968
  'NR' => :number,
969
- 'NTAP' => :notice_to_airmen_publication,
969
+ 'NTAP' => :notice_to_air_missions_publication,
970
970
  'NW' => :northwest,
971
971
  'OBSC' => :obscured,
972
972
  'OBST' => :obstacle,
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.4".freeze
4
+ VERSION = "1.1.6".freeze
5
5
  end
@@ -5,6 +5,9 @@ require_relative '../notam/translation'
5
5
 
6
6
  namespace :fixtures do
7
7
  DEFAULT_FIRS = 'ED,LF,LO,LS'
8
+ IGNORE = [
9
+ 'LFBB_R0188_24' # broken - duplicate F item
10
+ ]
8
11
 
9
12
  desc "Fetch new NOTAM fixtures for comma separated informal two letter ICAO FIR codes (default: #{DEFAULT_FIRS})"
10
13
  task :fetch, [:firs] do |_, args|
@@ -21,9 +24,11 @@ namespace :fixtures do
21
24
  response.body.scan(/<pre>(.+?)<\/pre>/im) do |message|
22
25
  message = message.first
23
26
  if NOTAM::Message.supported_format? message
27
+ next unless message.match %r{^(\w+?)/(\w+?)\s+\w+\s+Q\)\s+(\w+?)/}
28
+ name = [$3, $1, $2].join('_')
29
+ next if IGNORE.include? name
24
30
  counter += 1
25
- id = message.split(/\s/, 2).first.sub(/\W+/, '_')
26
- File.write(fixtures_path.join("#{id}.txt"), message)
31
+ File.write(fixtures_path.join(name + '.txt'), message)
27
32
  end
28
33
  end
29
34
  puts "#{counter} fixtures downloaded"
@@ -46,8 +51,8 @@ namespace :fixtures do
46
51
  end
47
52
  end
48
53
 
49
- desc "Clean current test NOTAM fixtures"
50
- task :clean do
54
+ desc "Clear current test NOTAM fixtures"
55
+ task :clear do
51
56
  fixtures_path.rmtree
52
57
  end
53
58
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,18 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notam
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sven Schwyn
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain:
11
10
  - |
12
11
  -----BEGIN CERTIFICATE-----
13
12
  MIIDODCCAiCgAwIBAgIBATANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQDDBhydWJ5
14
- L0RDPWJpdGNldGVyYS9EQz1jb20wHhcNMjIxMTA2MTIzNjUwWhcNMjMxMTA2MTIz
15
- NjUwWjAjMSEwHwYDVQQDDBhydWJ5L0RDPWJpdGNldGVyYS9EQz1jb20wggEiMA0G
13
+ L0RDPWJpdGNldGVyYS9EQz1jb20wHhcNMjQxMTIwMjExMDIwWhcNMjUxMTIwMjEx
14
+ MDIwWjAjMSEwHwYDVQQDDBhydWJ5L0RDPWJpdGNldGVyYS9EQz1jb20wggEiMA0G
16
15
  CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDcLg+IHjXYaUlTSU7R235lQKD8ZhEe
17
16
  KMhoGlSUonZ/zo1OT3KXcqTCP1iMX743xYs6upEGALCWWwq+nxvlDdn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XrS6bw1Ortu0KmWOIk
28
+ jTyRsT1gymASS2KHe+BaCTwD74GqO8q4woYLZgXnJ/PvgcFgY2FEi2Kn/sXLp4JE
29
+ boIgxQCMT+nxBHCD
31
30
  -----END CERTIFICATE-----
32
- date: 2023-09-04 00:00:00.000000000 Z
31
+ date: 2024-12-27 00:00:00.000000000 Z
33
32
  dependencies:
34
33
  - !ruby/object:Gem::Dependency
35
34
  name: aixm
@@ -51,6 +50,20 @@ dependencies:
51
50
  - - ">="
52
51
  - !ruby/object:Gem::Version
53
52
  version: 1.3.2
53
+ - !ruby/object:Gem::Dependency
54
+ name: bigdecimal
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '3'
60
+ type: :runtime
61
+ prerelease: false
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: '3'
54
67
  - !ruby/object:Gem::Dependency
55
68
  name: i18n
56
69
  requirement: !ruby/object:Gem::Requirement
@@ -177,7 +190,7 @@ dependencies:
177
190
  - - ">="
178
191
  - !ruby/object:Gem::Version
179
192
  version: '0'
180
- description: 'Parser for NOTAM (Notice to Airmen) messages in Ruby.
193
+ description: 'Parser for NOTAM (Notice to Air Missions) messages in Ruby.
181
194
 
182
195
  '
183
196
  email:
@@ -221,7 +234,6 @@ metadata:
221
234
  source_code_uri: https://github.com/svoop/notam
222
235
  documentation_uri: https://www.rubydoc.info/gems/notam
223
236
  bug_tracker_uri: https://github.com/svoop/notam/issues
224
- post_install_message:
225
237
  rdoc_options:
226
238
  - "--title"
227
239
  - NOTAM Parser
@@ -243,8 +255,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
255
  - !ruby/object:Gem::Version
244
256
  version: '0'
245
257
  requirements: []
246
- rubygems_version: 3.4.19
247
- signing_key:
258
+ rubygems_version: 3.6.2
248
259
  specification_version: 4
249
- summary: Parser for NOTAM (Notice to Airmen) messages
260
+ summary: Parser for NOTAM (Notice to Air Missions) messages
250
261
  test_files: []
metadata.gz.sig CHANGED
Binary file