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.
- checksums.yaml +4 -4
 - data/.github/workflows/test.yml +26 -0
 - data/.ruby-version +1 -1
 - data/CHANGELOG.md +17 -4
 - data/README.md +23 -5
 - data/lib/aixm/component/fato.rb +3 -3
 - data/lib/aixm/component/frequency.rb +1 -1
 - data/lib/aixm/component/geometry/border.rb +9 -3
 - data/lib/aixm/component/helipad.rb +1 -1
 - data/lib/aixm/component/lighting.rb +1 -1
 - data/lib/aixm/component/runway.rb +4 -7
 - data/lib/aixm/config.rb +2 -1
 - data/lib/aixm/document.rb +1 -0
 - data/lib/aixm/feature/address.rb +1 -1
 - data/lib/aixm/feature/airport.rb +13 -4
 - data/lib/aixm/feature/airspace.rb +11 -8
 - data/lib/aixm/feature/navigational_aid/designated_point.rb +1 -1
 - data/lib/aixm/feature/navigational_aid/dme.rb +1 -1
 - data/lib/aixm/feature/navigational_aid/marker.rb +1 -1
 - data/lib/aixm/feature/navigational_aid/ndb.rb +1 -1
 - data/lib/aixm/feature/navigational_aid/tacan.rb +1 -1
 - data/lib/aixm/feature/navigational_aid/vor.rb +1 -1
 - data/lib/aixm/feature/obstacle.rb +1 -1
 - data/lib/aixm/feature/obstacle_group.rb +1 -1
 - data/lib/aixm/feature/organisation.rb +1 -1
 - data/lib/aixm/feature/service.rb +1 -1
 - data/lib/aixm/feature/unit.rb +1 -1
 - data/lib/aixm/refinements.rb +39 -8
 - data/lib/aixm/version.rb +1 -1
 - data/rakefile.rb +22 -8
 - data/spec/lib/aixm/a_spec.rb +55 -55
 - data/spec/lib/aixm/component/fato_spec.rb +30 -23
 - data/spec/lib/aixm/component/frequency_spec.rb +12 -13
 - data/spec/lib/aixm/component/geometry/arc_spec.rb +7 -9
 - data/spec/lib/aixm/component/geometry/border_spec.rb +8 -3
 - data/spec/lib/aixm/component/geometry/circle_spec.rb +6 -8
 - data/spec/lib/aixm/component/geometry/point_spec.rb +2 -4
 - data/spec/lib/aixm/component/geometry_spec.rb +57 -62
 - data/spec/lib/aixm/component/helipad_spec.rb +25 -19
 - data/spec/lib/aixm/component/layer_spec.rb +17 -19
 - data/spec/lib/aixm/component/lighting_spec.rb +21 -15
 - data/spec/lib/aixm/component/runway_spec.rb +44 -37
 - data/spec/lib/aixm/component/surface_spec.rb +24 -24
 - data/spec/lib/aixm/component/timetable_spec.rb +7 -9
 - data/spec/lib/aixm/component/vertical_limits_spec.rb +9 -12
 - data/spec/lib/aixm/config_spec.rb +8 -8
 - data/spec/lib/aixm/d_spec.rb +28 -28
 - data/spec/lib/aixm/document_spec.rb +46 -37
 - data/spec/lib/aixm/errors_spec.rb +2 -2
 - data/spec/lib/aixm/f_spec.rb +16 -16
 - data/spec/lib/aixm/feature/address_spec.rb +12 -7
 - data/spec/lib/aixm/feature/airport_spec.rb +80 -74
 - data/spec/lib/aixm/feature/airspace_spec.rb +32 -28
 - data/spec/lib/aixm/feature/navigational_aid/designated_point_spec.rb +16 -11
 - data/spec/lib/aixm/feature/navigational_aid/dme_spec.rb +22 -16
 - data/spec/lib/aixm/feature/navigational_aid/marker_spec.rb +13 -7
 - data/spec/lib/aixm/feature/navigational_aid/ndb_spec.rb +15 -9
 - data/spec/lib/aixm/feature/navigational_aid/tacan_spec.rb +22 -16
 - data/spec/lib/aixm/feature/navigational_aid/vor_spec.rb +21 -15
 - data/spec/lib/aixm/feature/navigational_aid_spec.rb +6 -6
 - data/spec/lib/aixm/feature/obstacle_group_spec.rb +25 -21
 - data/spec/lib/aixm/feature/obstacle_spec.rb +47 -42
 - data/spec/lib/aixm/feature/organisation_spec.rb +16 -10
 - data/spec/lib/aixm/feature/service_spec.rb +9 -9
 - data/spec/lib/aixm/feature/unit_spec.rb +21 -13
 - data/spec/lib/aixm/feature_spec.rb +5 -5
 - data/spec/lib/aixm/p_spec.rb +37 -37
 - data/spec/lib/aixm/refinements_spec.rb +164 -115
 - data/spec/lib/aixm/version_spec.rb +1 -1
 - data/spec/lib/aixm/w_spec.rb +28 -28
 - data/spec/lib/aixm/xy_spec.rb +34 -34
 - data/spec/lib/aixm/z_spec.rb +19 -19
 - data/spec/macros/marking.rb +3 -3
 - data/spec/macros/organisation.rb +2 -2
 - data/spec/macros/remarks.rb +3 -3
 - data/spec/macros/timetable.rb +2 -2
 - data/spec/macros/xy.rb +2 -2
 - data/spec/macros/z_qnh.rb +2 -2
 - data/spec/spec_helper.rb +7 -0
 - metadata +3 -3
 - data/.travis.yml +0 -8
 
    
        data/spec/macros/marking.rb
    CHANGED
    
    | 
         @@ -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
         
     | 
    
        data/spec/macros/organisation.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, :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
         
     | 
    
        data/spec/macros/remarks.rb
    CHANGED
    
    | 
         @@ -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
         
     | 
    
        data/spec/macros/timetable.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, :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. 
     | 
| 
      
 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- 
     | 
| 
      
 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
         
     |