aipp 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +9 -0
- data/README.md +47 -13
- data/TODO.md +5 -2
- data/aipp.gemspec +1 -1
- data/lib/aipp.rb +2 -0
- data/lib/aipp/aip.rb +4 -3
- data/lib/aipp/border.rb +146 -0
- data/lib/aipp/downloader.rb +1 -1
- data/lib/aipp/executable.rb +2 -2
- data/lib/aipp/parser.rb +12 -1
- data/lib/aipp/patcher.rb +1 -1
- data/lib/aipp/pdf.rb +5 -5
- data/lib/aipp/regions/LF/AD-1.3.rb +4 -4
- data/lib/aipp/regions/LF/AD-1.6.rb +1 -1
- data/lib/aipp/regions/LF/AD-2.rb +7 -7
- data/lib/aipp/regions/LF/ENR-2.1.rb +9 -7
- data/lib/aipp/regions/LF/ENR-4.1.rb +2 -7
- data/lib/aipp/regions/LF/ENR-4.3.rb +1 -1
- data/lib/aipp/regions/LF/ENR-5.1.rb +2 -2
- data/lib/aipp/regions/LF/ENR-5.5.rb +53 -0
- data/lib/aipp/regions/LF/borders/france_atlantic_coast.geojson +2546 -0
- data/lib/aipp/regions/LF/borders/france_atlantic_territorial_sea.geojson +1663 -0
- data/lib/aipp/regions/LF/borders/france_ecrins_national_park.geojson +5861 -0
- data/lib/aipp/regions/LF/borders/france_mediterranean_coast.geojson +6203 -0
- data/lib/aipp/regions/LF/helpers/common.rb +26 -16
- data/lib/aipp/version.rb +1 -1
- data/lib/core_ext/integer.rb +16 -0
- data/lib/core_ext/object.rb +4 -4
- data/spec/fixtures/border.geojson +201 -0
- data/spec/lib/aipp/border_spec.rb +135 -0
- data/spec/lib/core_ext/integer_spec.rb +15 -0
- metadata +17 -5
- data/lib/aipp/regions/LF/ENR-5.5.rb-NEW +0 -11
@@ -0,0 +1,15 @@
|
|
1
|
+
require_relative '../../spec_helper'
|
2
|
+
|
3
|
+
describe Integer do
|
4
|
+
|
5
|
+
describe :up_or_downto do
|
6
|
+
it "behaves like Integer#upto for an increasing range" do
|
7
|
+
10.up_or_downto(12).to_a.must_equal 10.upto(12).to_a
|
8
|
+
end
|
9
|
+
|
10
|
+
it "behaves like Integer#downto for a decreasing range" do
|
11
|
+
10.up_or_downto(8).to_a.must_equal 10.downto(8).to_a
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aipp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sven Schwyn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 0.3.
|
131
|
+
version: 0.3.5
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 0.3.
|
138
|
+
version: 0.3.5
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: activesupport
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -302,6 +302,7 @@ files:
|
|
302
302
|
- lib/aipp.rb
|
303
303
|
- lib/aipp/aip.rb
|
304
304
|
- lib/aipp/airac.rb
|
305
|
+
- lib/aipp/border.rb
|
305
306
|
- lib/aipp/downloader.rb
|
306
307
|
- lib/aipp/executable.rb
|
307
308
|
- lib/aipp/parser.rb
|
@@ -317,29 +318,37 @@ files:
|
|
317
318
|
- lib/aipp/regions/LF/ENR-4.1.rb
|
318
319
|
- lib/aipp/regions/LF/ENR-4.3.rb
|
319
320
|
- lib/aipp/regions/LF/ENR-5.1.rb
|
320
|
-
- lib/aipp/regions/LF/ENR-5.5.rb
|
321
|
+
- lib/aipp/regions/LF/ENR-5.5.rb
|
322
|
+
- lib/aipp/regions/LF/borders/france_atlantic_coast.geojson
|
323
|
+
- lib/aipp/regions/LF/borders/france_atlantic_territorial_sea.geojson
|
324
|
+
- lib/aipp/regions/LF/borders/france_ecrins_national_park.geojson
|
325
|
+
- lib/aipp/regions/LF/borders/france_mediterranean_coast.geojson
|
321
326
|
- lib/aipp/regions/LF/helpers/AD_radio.rb
|
322
327
|
- lib/aipp/regions/LF/helpers/URL.rb
|
323
328
|
- lib/aipp/regions/LF/helpers/common.rb
|
324
329
|
- lib/aipp/t_hash.rb
|
325
330
|
- lib/aipp/version.rb
|
326
331
|
- lib/core_ext/enumerable.rb
|
332
|
+
- lib/core_ext/integer.rb
|
327
333
|
- lib/core_ext/nil_class.rb
|
328
334
|
- lib/core_ext/object.rb
|
329
335
|
- lib/core_ext/string.rb
|
330
336
|
- spec/fixtures/archive.zip
|
337
|
+
- spec/fixtures/border.geojson
|
331
338
|
- spec/fixtures/document.pdf
|
332
339
|
- spec/fixtures/document.pdf.json
|
333
340
|
- spec/fixtures/new.html
|
334
341
|
- spec/fixtures/new.pdf
|
335
342
|
- spec/fixtures/new.txt
|
336
343
|
- spec/lib/aipp/airac_spec.rb
|
344
|
+
- spec/lib/aipp/border_spec.rb
|
337
345
|
- spec/lib/aipp/downloader_spec.rb
|
338
346
|
- spec/lib/aipp/patcher_spec.rb
|
339
347
|
- spec/lib/aipp/pdf_spec.rb
|
340
348
|
- spec/lib/aipp/t_hash_spec.rb
|
341
349
|
- spec/lib/aipp/version_spec.rb
|
342
350
|
- spec/lib/core_ext/enumberable_spec.rb
|
351
|
+
- spec/lib/core_ext/integer_spec.rb
|
343
352
|
- spec/lib/core_ext/nil_class_spec.rb
|
344
353
|
- spec/lib/core_ext/string_spec.rb
|
345
354
|
- spec/sounds/failure.mp3
|
@@ -370,18 +379,21 @@ specification_version: 4
|
|
370
379
|
summary: Parser for Aeronautical Information Publications (AIP).
|
371
380
|
test_files:
|
372
381
|
- spec/fixtures/archive.zip
|
382
|
+
- spec/fixtures/border.geojson
|
373
383
|
- spec/fixtures/document.pdf
|
374
384
|
- spec/fixtures/document.pdf.json
|
375
385
|
- spec/fixtures/new.html
|
376
386
|
- spec/fixtures/new.pdf
|
377
387
|
- spec/fixtures/new.txt
|
378
388
|
- spec/lib/aipp/airac_spec.rb
|
389
|
+
- spec/lib/aipp/border_spec.rb
|
379
390
|
- spec/lib/aipp/downloader_spec.rb
|
380
391
|
- spec/lib/aipp/patcher_spec.rb
|
381
392
|
- spec/lib/aipp/pdf_spec.rb
|
382
393
|
- spec/lib/aipp/t_hash_spec.rb
|
383
394
|
- spec/lib/aipp/version_spec.rb
|
384
395
|
- spec/lib/core_ext/enumberable_spec.rb
|
396
|
+
- spec/lib/core_ext/integer_spec.rb
|
385
397
|
- spec/lib/core_ext/nil_class_spec.rb
|
386
398
|
- spec/lib/core_ext/string_spec.rb
|
387
399
|
- spec/sounds/failure.mp3
|