aixm 0.3.7 → 0.3.8

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.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +26 -0
  3. data/.ruby-version +1 -1
  4. data/CHANGELOG.md +17 -4
  5. data/README.md +23 -5
  6. data/lib/aixm/component/fato.rb +3 -3
  7. data/lib/aixm/component/frequency.rb +1 -1
  8. data/lib/aixm/component/geometry/border.rb +9 -3
  9. data/lib/aixm/component/helipad.rb +1 -1
  10. data/lib/aixm/component/lighting.rb +1 -1
  11. data/lib/aixm/component/runway.rb +4 -7
  12. data/lib/aixm/config.rb +2 -1
  13. data/lib/aixm/document.rb +1 -0
  14. data/lib/aixm/feature/address.rb +1 -1
  15. data/lib/aixm/feature/airport.rb +13 -4
  16. data/lib/aixm/feature/airspace.rb +11 -8
  17. data/lib/aixm/feature/navigational_aid/designated_point.rb +1 -1
  18. data/lib/aixm/feature/navigational_aid/dme.rb +1 -1
  19. data/lib/aixm/feature/navigational_aid/marker.rb +1 -1
  20. data/lib/aixm/feature/navigational_aid/ndb.rb +1 -1
  21. data/lib/aixm/feature/navigational_aid/tacan.rb +1 -1
  22. data/lib/aixm/feature/navigational_aid/vor.rb +1 -1
  23. data/lib/aixm/feature/obstacle.rb +1 -1
  24. data/lib/aixm/feature/obstacle_group.rb +1 -1
  25. data/lib/aixm/feature/organisation.rb +1 -1
  26. data/lib/aixm/feature/service.rb +1 -1
  27. data/lib/aixm/feature/unit.rb +1 -1
  28. data/lib/aixm/refinements.rb +39 -8
  29. data/lib/aixm/version.rb +1 -1
  30. data/rakefile.rb +22 -8
  31. data/spec/lib/aixm/a_spec.rb +55 -55
  32. data/spec/lib/aixm/component/fato_spec.rb +30 -23
  33. data/spec/lib/aixm/component/frequency_spec.rb +12 -13
  34. data/spec/lib/aixm/component/geometry/arc_spec.rb +7 -9
  35. data/spec/lib/aixm/component/geometry/border_spec.rb +8 -3
  36. data/spec/lib/aixm/component/geometry/circle_spec.rb +6 -8
  37. data/spec/lib/aixm/component/geometry/point_spec.rb +2 -4
  38. data/spec/lib/aixm/component/geometry_spec.rb +57 -62
  39. data/spec/lib/aixm/component/helipad_spec.rb +25 -19
  40. data/spec/lib/aixm/component/layer_spec.rb +17 -19
  41. data/spec/lib/aixm/component/lighting_spec.rb +21 -15
  42. data/spec/lib/aixm/component/runway_spec.rb +44 -37
  43. data/spec/lib/aixm/component/surface_spec.rb +24 -24
  44. data/spec/lib/aixm/component/timetable_spec.rb +7 -9
  45. data/spec/lib/aixm/component/vertical_limits_spec.rb +9 -12
  46. data/spec/lib/aixm/config_spec.rb +8 -8
  47. data/spec/lib/aixm/d_spec.rb +28 -28
  48. data/spec/lib/aixm/document_spec.rb +46 -37
  49. data/spec/lib/aixm/errors_spec.rb +2 -2
  50. data/spec/lib/aixm/f_spec.rb +16 -16
  51. data/spec/lib/aixm/feature/address_spec.rb +12 -7
  52. data/spec/lib/aixm/feature/airport_spec.rb +80 -74
  53. data/spec/lib/aixm/feature/airspace_spec.rb +32 -28
  54. data/spec/lib/aixm/feature/navigational_aid/designated_point_spec.rb +16 -11
  55. data/spec/lib/aixm/feature/navigational_aid/dme_spec.rb +22 -16
  56. data/spec/lib/aixm/feature/navigational_aid/marker_spec.rb +13 -7
  57. data/spec/lib/aixm/feature/navigational_aid/ndb_spec.rb +15 -9
  58. data/spec/lib/aixm/feature/navigational_aid/tacan_spec.rb +22 -16
  59. data/spec/lib/aixm/feature/navigational_aid/vor_spec.rb +21 -15
  60. data/spec/lib/aixm/feature/navigational_aid_spec.rb +6 -6
  61. data/spec/lib/aixm/feature/obstacle_group_spec.rb +25 -21
  62. data/spec/lib/aixm/feature/obstacle_spec.rb +47 -42
  63. data/spec/lib/aixm/feature/organisation_spec.rb +16 -10
  64. data/spec/lib/aixm/feature/service_spec.rb +9 -9
  65. data/spec/lib/aixm/feature/unit_spec.rb +21 -13
  66. data/spec/lib/aixm/feature_spec.rb +5 -5
  67. data/spec/lib/aixm/p_spec.rb +37 -37
  68. data/spec/lib/aixm/refinements_spec.rb +164 -115
  69. data/spec/lib/aixm/version_spec.rb +1 -1
  70. data/spec/lib/aixm/w_spec.rb +28 -28
  71. data/spec/lib/aixm/xy_spec.rb +34 -34
  72. data/spec/lib/aixm/z_spec.rb +19 -19
  73. data/spec/macros/marking.rb +3 -3
  74. data/spec/macros/organisation.rb +2 -2
  75. data/spec/macros/remarks.rb +3 -3
  76. data/spec/macros/timetable.rb +2 -2
  77. data/spec/macros/xy.rb +2 -2
  78. data/spec/macros/z_qnh.rb +2 -2
  79. data/spec/spec_helper.rb +7 -0
  80. metadata +3 -3
  81. data/.travis.yml +0 -8
@@ -1,12 +1,12 @@
1
1
  describe nil do
2
2
 
3
3
  it "accepts nil value" do
4
- [nil].must_be_written_to subject, :marking
4
+ _([nil]).must_be_written_to subject, :marking
5
5
  end
6
6
 
7
7
  it "stringifies valid values" do
8
- subject.tap { |s| s.marking = 'foobar' }.marking.must_equal 'foobar'
9
- subject.tap { |s| s.marking = 123 }.marking.must_equal '123'
8
+ _(subject.tap { |s| s.marking = 'foobar' }.marking).must_equal 'foobar'
9
+ _(subject.tap { |s| s.marking = 123 }.marking).must_equal '123'
10
10
  end
11
11
 
12
12
  end
@@ -1,11 +1,11 @@
1
1
  describe nil do
2
2
 
3
3
  it "fails on invalid values" do
4
- [:foobar, 123].wont_be_written_to subject, :organisation
4
+ _([:foobar, 123]).wont_be_written_to subject, :organisation
5
5
  end
6
6
 
7
7
  it "accepts valid values" do
8
- [AIXM::Factory.organisation].must_be_written_to subject, :organisation
8
+ _([AIXM::Factory.organisation]).must_be_written_to subject, :organisation
9
9
  end
10
10
 
11
11
  end
@@ -1,12 +1,12 @@
1
1
  describe nil do
2
2
 
3
3
  it "accepts nil value" do
4
- [nil].must_be_written_to subject, :remarks
4
+ _([nil]).must_be_written_to subject, :remarks
5
5
  end
6
6
 
7
7
  it "stringifies valid values" do
8
- subject.tap { |s| s.remarks = 'foobar' }.remarks.must_equal 'foobar'
9
- subject.tap { |s| s.remarks = 123 }.remarks.must_equal '123'
8
+ _(subject.tap { |s| s.remarks = 'foobar' }.remarks).must_equal 'foobar'
9
+ _(subject.tap { |s| s.remarks = 123 }.remarks).must_equal '123'
10
10
  end
11
11
 
12
12
  end
@@ -1,11 +1,11 @@
1
1
  describe nil do
2
2
 
3
3
  it "fails on invalid values" do
4
- [:foobar, 123].wont_be_written_to subject, :timetable
4
+ _([:foobar, 123]).wont_be_written_to subject, :timetable
5
5
  end
6
6
 
7
7
  it "accepts nil values" do
8
- [nil].must_be_written_to subject, :timetable
8
+ _([nil]).must_be_written_to subject, :timetable
9
9
  end
10
10
 
11
11
  end
data/spec/macros/xy.rb CHANGED
@@ -1,11 +1,11 @@
1
1
  describe nil do
2
2
 
3
3
  it "fails on invalid values" do
4
- [:foobar, 123].wont_be_written_to subject, :xy
4
+ _([:foobar, 123]).wont_be_written_to subject, :xy
5
5
  end
6
6
 
7
7
  it "accepts valid values" do
8
- [AIXM::Factory.xy].must_be_written_to subject, :xy
8
+ _([AIXM::Factory.xy]).must_be_written_to subject, :xy
9
9
  end
10
10
 
11
11
  end
data/spec/macros/z_qnh.rb CHANGED
@@ -1,11 +1,11 @@
1
1
  describe nil do
2
2
 
3
3
  it "fails on invalid values" do
4
- [:foobar, 123, AIXM.z(123, :qfe)].wont_be_written_to subject, :z
4
+ _([:foobar, 123, AIXM.z(123, :qfe)]).wont_be_written_to subject, :z
5
5
  end
6
6
 
7
7
  it "accepts valid values" do
8
- [AIXM.z(123, :qnh)].must_be_written_to subject, :z
8
+ _([AIXM.z(123, :qnh)]).must_be_written_to subject, :z
9
9
  end
10
10
 
11
11
  end
data/spec/spec_helper.rb CHANGED
@@ -53,3 +53,10 @@ end
53
53
 
54
54
  Array.infect_an_assertion :assert_write, :must_be_written_to, :reverse
55
55
  Array.infect_an_assertion :refute_write, :wont_be_written_to, :reverse
56
+
57
+ class Minitest::Spec
58
+ before :each do
59
+ AIXM.config.schema = :aixm
60
+ AIXM.config.mid_region = nil
61
+ end
62
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aixm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sven Schwyn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-29 00:00:00.000000000 Z
11
+ date: 2019-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -171,9 +171,9 @@ executables: []
171
171
  extensions: []
172
172
  extra_rdoc_files: []
173
173
  files:
174
+ - ".github/workflows/test.yml"
174
175
  - ".gitignore"
175
176
  - ".ruby-version"
176
- - ".travis.yml"
177
177
  - ".yardopts"
178
178
  - CHANGELOG.md
179
179
  - Guardfile
data/.travis.yml DELETED
@@ -1,8 +0,0 @@
1
- ---
2
- language: ruby
3
- rvm:
4
- - 2.6.3
5
- before_install:
6
- - gem update --system
7
- - gem install bundler
8
- - bundle install