notam 1.1.1 → 1.1.2
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
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +5 -0
- data/README.md +1 -0
- data/lib/notam/item/d.rb +1 -3
- data/lib/notam/schedule.rb +12 -2
- data/lib/notam/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 9ac9f9d9c891d07fa204936e712b43f3b872d0d79b07298e426e845916d8b20d
         | 
| 4 | 
            +
              data.tar.gz: 33a5fdaadf77d20c37690e06147942c30167e296cb1e2c41f90d432c44a5f39d
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: a1d8eb8f529b8cfd2b0da1426093450451dffd85aa28e9ddee6e69e25ec993dc56f5035954c17e10e801dc9ecf90583a5e36306dab8ac4722c1c26305a557107
         | 
| 7 | 
            +
              data.tar.gz: 17c930b744c09c3059592d8e859c8e3cb8a8e7dc805d847e8ef9eac4f43991f6125af70e5ae4e66f8d56217a922300ea69e7a5c7bc0a52e20dd8863411f350fe
         | 
    
        checksums.yaml.gz.sig
    CHANGED
    
    | Binary file | 
    
        data/CHANGELOG.md
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | @@ -212,6 +212,7 @@ Parsed | `00:00`          | `24:00`    | the Ruby way | |
| 212 212 | 
             
            ### References
         | 
| 213 213 |  | 
| 214 214 | 
             
            * [ICAO Doc 8126: Aeronautical Information Services Manual](https://www.icao.int/NACC/Documents/eDOCS/AIM/8126_unedited_en%20Jul2021.pdf)
         | 
| 215 | 
            +
            * [ICAO Doc 10066: Aeronautical Information Management](https://ffac.ch/wp-content/uploads/2020/11/ICAO-Doc-10066-Aeronautical-Information-Management.pdf)
         | 
| 215 216 | 
             
            * [EUROCONTROL Guidelines Operating Procedures AIS Dynamic Data (OPADD)](https://www.eurocontrol.int/sites/default/files/2021-07/eurocontrol-guidelines-opadd-ed4-1.pdf)
         | 
| 216 217 | 
             
            * [NOTAM Q Codes](https://www.faa.gov/air_traffic/publications/atpubs/notam_html/appendix_b.html)
         | 
| 217 218 | 
             
            * [NOTAM Contractions](https://www.notams.faa.gov/downloads/contractions.pdf)
         | 
    
        data/lib/notam/item/d.rb
    CHANGED
    
    | @@ -16,9 +16,7 @@ module NOTAM | |
| 16 16 | 
             
                  base_date = AIXM.date(data[:effective_at])
         | 
| 17 17 | 
             
                  @schedules = text.sub(/\AD\)/, '').split(',').flat_map do |string|
         | 
| 18 18 | 
             
                    Schedule.parse(string, base_date: base_date).tap do |schedule|
         | 
| 19 | 
            -
                       | 
| 20 | 
            -
                        base_date = date   # carry over month
         | 
| 21 | 
            -
                      end
         | 
| 19 | 
            +
                      base_date = schedule.last.last_date || base_date   # carry over month
         | 
| 22 20 | 
             
                    end
         | 
| 23 21 | 
             
                  end
         | 
| 24 22 | 
             
                  self
         | 
    
        data/lib/notam/schedule.rb
    CHANGED
    
    | @@ -28,7 +28,7 @@ module NOTAM | |
| 28 28 |  | 
| 29 29 | 
             
                # Active dates or days
         | 
| 30 30 | 
             
                #
         | 
| 31 | 
            -
                # @note If {# | 
| 31 | 
            +
                # @note If {#actives} lists dates, then {#inactives} must list days and
         | 
| 32 32 | 
             
                #   vice versa.
         | 
| 33 33 | 
             
                #
         | 
| 34 34 | 
             
                # @return [Array<NOTAM::Schedule::Dates>, Array<NOTAM::Schedule::Days>]
         | 
| @@ -41,7 +41,7 @@ module NOTAM | |
| 41 41 |  | 
| 42 42 | 
             
                # Inactive dates or days
         | 
| 43 43 | 
             
                #
         | 
| 44 | 
            -
                # @note If {# | 
| 44 | 
            +
                # @note If {#inactives} lists dates, then {#actives} must list days and
         | 
| 45 45 | 
             
                #   vice versa.
         | 
| 46 46 | 
             
                #
         | 
| 47 47 | 
             
                # @return [Array<NOTAM::Schedule::Dates>, Array<NOTAM::Schedule::Days>]
         | 
| @@ -274,6 +274,16 @@ module NOTAM | |
| 274 274 | 
             
                  resolve(on: date, xy: xy).slice(date).times.cover? AIXM.time(at)
         | 
| 275 275 | 
             
                end
         | 
| 276 276 |  | 
| 277 | 
            +
                # Last +actives+ date of the schedule (+inatives+ are ignored).
         | 
| 278 | 
            +
                #
         | 
| 279 | 
            +
                # @return [AIXM::Date, nil] last date or +nil+ if schedule actives are days
         | 
| 280 | 
            +
                def last_date
         | 
| 281 | 
            +
                  actives.last.then do |active|
         | 
| 282 | 
            +
                    active = active.last if active.respond_to? :last
         | 
| 283 | 
            +
                    active if active.instance_of? AIXM::Schedule::Date
         | 
| 284 | 
            +
                  end
         | 
| 285 | 
            +
                end
         | 
| 286 | 
            +
             | 
| 277 287 | 
             
                # @abstract
         | 
| 278 288 | 
             
                class ScheduleArray < Array
         | 
| 279 289 | 
             
                  # @return [String]
         | 
    
        data/lib/notam/version.rb
    CHANGED
    
    
    
        data.tar.gz.sig
    CHANGED
    
    | Binary file | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: notam
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.1. | 
| 4 | 
            +
              version: 1.1.2
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Sven Schwyn
         | 
| @@ -29,7 +29,7 @@ cert_chain: | |
| 29 29 | 
             
              kAyiRqgxF4dJviwtqI7mZIomWL63+kXLgjOjMe1SHxfIPo/0ji6+r1p4KYa7o41v
         | 
| 30 30 | 
             
              fwIwU1MKlFBdsjkd
         | 
| 31 31 | 
             
              -----END CERTIFICATE-----
         | 
| 32 | 
            -
            date: 2023-06- | 
| 32 | 
            +
            date: 2023-06-17 00:00:00.000000000 Z
         | 
| 33 33 | 
             
            dependencies:
         | 
| 34 34 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 35 35 | 
             
              name: aixm
         | 
| @@ -257,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 257 257 | 
             
                - !ruby/object:Gem::Version
         | 
| 258 258 | 
             
                  version: '0'
         | 
| 259 259 | 
             
            requirements: []
         | 
| 260 | 
            -
            rubygems_version: 3.4. | 
| 260 | 
            +
            rubygems_version: 3.4.14
         | 
| 261 261 | 
             
            signing_key:
         | 
| 262 262 | 
             
            specification_version: 4
         | 
| 263 263 | 
             
            summary: Parser for NOTAM (Notice to Airmen) messages
         | 
    
        metadata.gz.sig
    CHANGED
    
    | Binary file |