aipp 2.1.9.pre1 → 2.1.10

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: 0307bb285aef2596ac6f60d3a3c6a444d8cadc38ad57d017f38d723f0116dbb2
4
- data.tar.gz: d18c31ccc9920ef227fc95767cc45022b52dd1878d3a2d3f7434ad55cf8c811b
3
+ metadata.gz: 990f2f967ee3dba62bb824e80229908985520e95c0797fc53cba5fee30e704d1
4
+ data.tar.gz: 37104d39d21f4e35e7cc9730bb0b9edcf3b383ff2fe46a2feb965d20f02882f0
5
5
  SHA512:
6
- metadata.gz: 40a5090e16fdb0f50a48f5007e2479ac95c7dfadf788c123ec84aa7baace1875c11eae33dd9dd2860b578b2591fb947627e8187df0cbd751a60ade5b87fc929a
7
- data.tar.gz: 8e1097ca18cfe5b61aa6a52e89dbdcab8fea449b426b6d3e3e971e7ffc330de1e05550e4d78fbe8307184f4f7d0daa9f6b968b19e9485baa1adca1d7237e94f2
6
+ metadata.gz: 8d854f0ec0d98ad690ef43c0a504e8a85cd22fbd392181073a35a9c4541995610c217a064e4d37192e4e526316e1f2db96581fd8ef1b10a14426973f71424191
7
+ data.tar.gz: 7ed179844f5093236aee066d03a4330e61054397769ae78a885033955bb19596966880ef9076aceae17082e7dc932330776c2dae9dc28e8111499403a2cc12b3
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  Nothing so far
4
4
 
5
+ ## 2.1.10
6
+
7
+ #### Additions
8
+ * Show the gem version used in order to verify deployments
9
+
10
+ #### Changes
11
+ * Make dash between LS and DPR zone optional in NOTAM
12
+
13
+ ## 2.1.9
14
+
15
+ #### Additions
16
+ * Support for Ruby 3.3
17
+
5
18
  ## 2.1.8
6
19
 
7
20
  #### Additions
@@ -19,8 +19,8 @@ module AIPP::LF::AIP
19
19
  ACTIVITIES.each do |code, type|
20
20
  verbose_info("processing #{code}")
21
21
  AIPP.cache.espace.css(%Q(Espace[lk^="[LF][#{code} "])).each do |espace_node|
22
- # HACK: Missing partie/volume as of AIRAC 2204 (reported)
23
- next if espace_node['pk'] == '1360'
22
+ # HACK: Missing partie/volume as of AIRAC 2312 (reported)
23
+ next if espace_node['pk'] == '302508'
24
24
  partie_node = AIPP.cache.partie.at_css(%Q(Partie:has(Espace[pk="#{espace_node['pk']}"])))
25
25
  volume_node = AIPP.cache.volume.at_css(%Q(Volume:has(Partie[pk="#{partie_node['pk']}"])))
26
26
  add(
@@ -189,6 +189,11 @@ LFDU:
189
189
  xy: 45°11'42.8"N 0°53'17.3"W
190
190
  "24":
191
191
  xy: 45°11'55.8"N 0°52'40.4"W
192
+ LFDV:
193
+ "02R":
194
+ xy: 46°16'10.8"N 0°11'19.3"E
195
+ "20L":
196
+ xy: 46°16'26.3"N 0°11'27.4"E
192
197
  LFDX:
193
198
  "17":
194
199
  xy: 44°27'44.8"N 1°00'23.2"E
@@ -118,6 +118,7 @@ Any output on STDERR should trigger an alert.
118
118
  ## References
119
119
 
120
120
  * [skybriefing](https://www.skybriefing.com)
121
+ * [skybriefing contact (aka: LS NOF)](https://www.skybriefing.com/support)
121
122
  * [AIM Data Catalogue](https://www.aerodatacat.ch)
122
123
  * [DABS](https://www.skybriefing.com/de/dabs)
123
124
  * [NOTAM Info](https://notaminfo.com/switzerlandmap)
@@ -74,9 +74,9 @@ module AIPP
74
74
 
75
75
  # Templates
76
76
 
77
- def organisation_lf
78
- unless AIPP.cache.organisation_lf
79
- AIPP.cache.organisation_lf = AIXM.organisation(
77
+ def organisation_ls
78
+ unless AIPP.cache.organisation_ls
79
+ AIPP.cache.organisation_ls = AIXM.organisation(
80
80
  source: source(position: 1, document: "GEN-3.1"),
81
81
  name: 'SWITZERLAND',
82
82
  type: 'S'
@@ -12,17 +12,16 @@ module AIPP::LS::NOTAM
12
12
  fail "malformed JSON received from API" unless json.has_key?(:queryNOTAMs)
13
13
  added_notam_ids = []
14
14
  json[:queryNOTAMs].each do |row|
15
- puts row[:notamRaw][0,9]
16
15
  next unless row[:notamRaw].match? /^Q\) LS/ # only parse national NOTAM
17
16
 
18
17
  # HACK: try to add missing commas to D-item of A- and B-series NOTAM
19
- if row[:notamRaw].match? /\A[AB]/
20
- if row[:notamRaw].gsub!(/(#{NOTAM::Schedule::HOUR_RE.decapture}-#{NOTAM::Schedule::HOUR_RE.decapture})/, '\1,')
21
- row[:notamRaw].gsub!(/,+/, ',')
22
- row[:notamRaw].sub!(/,\n/, "\n")
23
- warn("HACK: added missing commas to D item")
24
- end
25
- end
18
+ # if row[:notamRaw].match? /\A[AB]/
19
+ # if row[:notamRaw].gsub!(/(#{NOTAM::Schedule::HOUR_RE.decapture}-#{NOTAM::Schedule::HOUR_RE.decapture})/, '\1,')
20
+ # row[:notamRaw].gsub!(/,+/, ',')
21
+ # row[:notamRaw].sub!(/,\n/, "\n")
22
+ # warn("HACK: added missing commas to D item")
23
+ # end
24
+ # end
26
25
 
27
26
  # HACK: remove braindead years from D-item of W-series NOTAM
28
27
  if row[:notamRaw].match? /\AW/
@@ -106,7 +105,7 @@ end
106
105
  case notam.data[:content]
107
106
  when /(?<type>TMA) ((SECT )?(?<section>\d+) )?ACT/
108
107
  'Ase:has(codeType:contains("%s") + codeId:contains("%s %s"))' % [$~['type'], notam.data[:locations].first, $~['section']]
109
- when /[DR].AREA (?<name>LS-[DR]\d+[A-Z]?).+ACT/
108
+ when /[DR].AREA (?<name>LS-?[DR]\d+[A-Z]?).+ACT/
110
109
  'Ase:has(codeId:matches("^%s( .+)?$"))' % [$~['name']]
111
110
  else
112
111
  return
data/lib/aipp/runner.rb CHANGED
@@ -66,6 +66,7 @@ module AIPP
66
66
 
67
67
  # Read the configuration from config.yml.
68
68
  def read_config
69
+ info("using gem aipp-#{AIPP::VERSION}")
69
70
  info("reading config.yml")
70
71
  AIPP.config.read! config_file
71
72
  @aixm.namespace = AIPP.config.namespace
data/lib/aipp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module AIPP
2
- VERSION = "2.1.9.pre1".freeze
2
+ VERSION = "2.1.10".freeze
3
3
  end
@@ -20,9 +20,9 @@ module Enumerable
20
20
  # @yield [Object] element to analyze
21
21
  # @yieldreturn [Boolean] whether to split at this element or not
22
22
  # @return [Array]
23
- def split(*args, &)
23
+ def split(*args, &block)
24
24
  [].tap do |array|
25
- while index = slice((start ||= 0)...length).find_index(*args, &)
25
+ while index = slice((start ||= 0)...length).find_index(*args, &block)
26
26
  array << slice(start...start+index)
27
27
  start += index + 1
28
28
  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.1.9.pre1
4
+ version: 2.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sven Schwyn
@@ -10,26 +10,24 @@ bindir: exe
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDODCCAiCgAwIBAgIBATANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQDDBhydWJ5
14
- L0RDPWJpdGNldGVyYS9EQz1jb20wHhcNMjIxMTA2MTIzNjUwWhcNMjMxMTA2MTIz
15
- NjUwWjAjMSEwHwYDVQQDDBhydWJ5L0RDPWJpdGNldGVyYS9EQz1jb20wggEiMA0G
13
+ MIIC+jCCAeKgAwIBAgIBAjANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQDDBhydWJ5
14
+ L0RDPWJpdGNldGVyYS9EQz1jb20wHhcNMjMxMTEwMTgyMzM2WhcNMjQxMTA5MTgy
15
+ MzM2WjAjMSEwHwYDVQQDDBhydWJ5L0RDPWJpdGNldGVyYS9EQz1jb20wggEiMA0G
16
16
  CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDcLg+IHjXYaUlTSU7R235lQKD8Z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Oefi2iydqh1yIqXyTA9PGR1w5O6O+WS1FvF+sHCwh8fFjCuStg2L8V2RSeo
25
+ aDtfZ5s80sL8wRFxg3kek69cBuI6ozU+rf9DaXlMES4i8+zASsdv9Y4a2BsbhEdE
26
+ 9AtuMcWn5a45TOO0S4Q8OuV0v705V38Ow15J2RDRvkFRySt+//8/Vd57XAJxPXU0
27
+ k/QvZU05f6HMYBrPogJgIzHC/C5N/yeE4BVEuBDn+10Zb1iu3aDk8sd0uMgukCY8
28
+ TUmlP5A6NeGdeDJIoLgromAKs+nvI7TWzhQq9ODs51XhxgUFRCvBqUTpjTQigw==
31
29
  -----END CERTIFICATE-----
32
- date: 2023-09-01 00:00:00.000000000 Z
30
+ date: 2024-03-08 00:00:00.000000000 Z
33
31
  dependencies:
34
32
  - !ruby/object:Gem::Dependency
35
33
  name: airac
@@ -40,7 +38,7 @@ dependencies:
40
38
  version: '1.0'
41
39
  - - ">="
42
40
  - !ruby/object:Gem::Version
43
- version: 1.0.1
41
+ version: 1.0.3
44
42
  type: :runtime
45
43
  prerelease: false
46
44
  version_requirements: !ruby/object:Gem::Requirement
@@ -50,7 +48,7 @@ dependencies:
50
48
  version: '1.0'
51
49
  - - ">="
52
50
  - !ruby/object:Gem::Version
53
- version: 1.0.1
51
+ version: 1.0.3
54
52
  - !ruby/object:Gem::Dependency
55
53
  name: aixm
56
54
  requirement: !ruby/object:Gem::Requirement
@@ -60,7 +58,7 @@ dependencies:
60
58
  version: '1'
61
59
  - - ">="
62
60
  - !ruby/object:Gem::Version
63
- version: 1.4.2
61
+ version: 1.4.3
64
62
  type: :runtime
65
63
  prerelease: false
66
64
  version_requirements: !ruby/object:Gem::Requirement
@@ -70,7 +68,7 @@ dependencies:
70
68
  version: '1'
71
69
  - - ">="
72
70
  - !ruby/object:Gem::Version
73
- version: 1.4.2
71
+ version: 1.4.3
74
72
  - !ruby/object:Gem::Dependency
75
73
  name: notam
76
74
  requirement: !ruby/object:Gem::Requirement
@@ -80,7 +78,7 @@ dependencies:
80
78
  version: '1'
81
79
  - - ">="
82
80
  - !ruby/object:Gem::Version
83
- version: 1.1.3
81
+ version: 1.1.5
84
82
  type: :runtime
85
83
  prerelease: false
86
84
  version_requirements: !ruby/object:Gem::Requirement
@@ -90,7 +88,7 @@ dependencies:
90
88
  version: '1'
91
89
  - - ">="
92
90
  - !ruby/object:Gem::Version
93
- version: 1.1.3
91
+ version: 1.1.5
94
92
  - !ruby/object:Gem::Dependency
95
93
  name: activesupport
96
94
  requirement: !ruby/object:Gem::Requirement
@@ -123,16 +121,16 @@ dependencies:
123
121
  name: graphql
124
122
  requirement: !ruby/object:Gem::Requirement
125
123
  requirements:
126
- - - "<"
124
+ - - "~>"
127
125
  - !ruby/object:Gem::Version
128
- version: '2.1'
126
+ version: '2'
129
127
  type: :runtime
130
128
  prerelease: false
131
129
  version_requirements: !ruby/object:Gem::Requirement
132
130
  requirements:
133
- - - "<"
131
+ - - "~>"
134
132
  - !ruby/object:Gem::Version
135
- version: '2.1'
133
+ version: '2'
136
134
  - !ruby/object:Gem::Dependency
137
135
  name: graphql-client
138
136
  requirement: !ruby/object:Gem::Requirement
@@ -140,6 +138,9 @@ dependencies:
140
138
  - - "~>"
141
139
  - !ruby/object:Gem::Version
142
140
  version: '0'
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ version: 0.19.0
143
144
  type: :runtime
144
145
  prerelease: false
145
146
  version_requirements: !ruby/object:Gem::Requirement
@@ -147,6 +148,9 @@ dependencies:
147
148
  - - "~>"
148
149
  - !ruby/object:Gem::Version
149
150
  version: '0'
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: 0.19.0
150
154
  - !ruby/object:Gem::Dependency
151
155
  name: nokogiri
152
156
  requirement: !ruby/object:Gem::Requirement
@@ -195,6 +199,20 @@ dependencies:
195
199
  - - "~>"
196
200
  - !ruby/object:Gem::Version
197
201
  version: '2'
202
+ - !ruby/object:Gem::Dependency
203
+ name: csv
204
+ requirement: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: '3'
209
+ type: :runtime
210
+ prerelease: false
211
+ version_requirements: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: '3'
198
216
  - !ruby/object:Gem::Dependency
199
217
  name: json
200
218
  requirement: !ruby/object:Gem::Requirement
@@ -452,11 +470,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
452
470
  version: 3.1.0
453
471
  required_rubygems_version: !ruby/object:Gem::Requirement
454
472
  requirements:
455
- - - ">"
473
+ - - ">="
456
474
  - !ruby/object:Gem::Version
457
- version: 1.3.1
475
+ version: '0'
458
476
  requirements: []
459
- rubygems_version: 3.4.19
477
+ rubygems_version: 3.5.6
460
478
  signing_key:
461
479
  specification_version: 4
462
480
  summary: Parser for aeronautical information publications
metadata.gz.sig CHANGED
Binary file