aixm 1.4.2 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17c37db68c0bd400f252a05376c97844c89287a062c0dc26ceb4e8b4fc53fe62
4
- data.tar.gz: 9fd668c694f127adfe07bceb74765785d913bb65413b93330e6870e8ce8761ee
3
+ metadata.gz: e9e8f3bbcf81e3c87a204045d8584260a3e2f847a202e646e6460bcf79ae7e05
4
+ data.tar.gz: 83016171288807a92acee0673e989aa23c00b28cb2b81bc12552fd1873571013
5
5
  SHA512:
6
- metadata.gz: 4b594ea96f955f07ad380ec021a6b330eb4ec569d92b9dc44897bdc46603431057db81c2091cefddab50d5d6ed1b12ad9cafd13be5fca20627bcaeb7f481cc15
7
- data.tar.gz: 5b1910e5db2280d5e74a93ec7709c5ee7972ad1328b5de01c2c542f4c4c02b2e03bdfeeefd5ffd253078f8c65e4acc756d1ae606c116a1ba13d4f4f46ac67752
6
+ metadata.gz: 862175b6cbc5f886a820d3613f9a419ada1e9101d1dc6ea5f9ca7e33f13fb6407d04a4d4b7c6d7bbef3fdb32e8cb48883c0e04adf042b07002e56bb0732e1411
7
+ data.tar.gz: ea726dfb8a05c2fa5fea716885d73d52328b96a9ddc36739194e92e6001524eceade0d5985940eafd3c24f1f04acb4f6417f3f032c13ba7244063947f4d39d38
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  Nothing so far
4
4
 
5
+ ## 1.4.3
6
+
7
+ ### Additions
8
+ * `AIXM::EMERGENCY` shortcut for 121.5 MHz and `AIXM::F#voice_emergency?`
9
+ * Support Ruby 3.3
10
+
5
11
  ## 1.4.2
6
12
 
7
13
  #### Changes
@@ -69,6 +69,7 @@ module AIXM
69
69
  end
70
70
  end
71
71
  end
72
+ method
72
73
  end
73
74
  end
74
75
 
data/lib/aixm/f.rb CHANGED
@@ -84,6 +84,13 @@ module AIXM
84
84
  end
85
85
  end
86
86
 
87
+ # Whether this frequency is for emergencies only.
88
+ #
89
+ # @return [Boolean]
90
+ def voice_emergency?
91
+ self == AIXM::EMERGENCY
92
+ end
93
+
87
94
  private
88
95
 
89
96
  # Whether this frequency is part of the voice airband for civil aviation
@@ -27,4 +27,7 @@ module AIXM
27
27
  # Time which marks midnight at end of the day
28
28
  END_OF_DAY = AIXM.time('24:00').freeze
29
29
 
30
+ # Emergency frequency
31
+ EMERGENCY = AIXM.f(121.5, :mhz).freeze
32
+
30
33
  end
data/lib/aixm/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module AIXM
2
- VERSION = "1.4.2".freeze
2
+ VERSION = "1.4.3".freeze
3
3
  end
data/lib/aixm/xy.rb CHANGED
@@ -107,6 +107,7 @@ module AIXM
107
107
 
108
108
  # Distance to another point as calculated by the Haversine formula
109
109
  #
110
+ # @param other [AIXM::XY] other point
110
111
  # @return [AIXM::D]
111
112
  def distance(other)
112
113
  if self == other
@@ -125,6 +126,7 @@ module AIXM
125
126
 
126
127
  # Bearing to another point
127
128
  #
129
+ # @param other [AIXM::XY] other point
128
130
  # @return [AIXM::A]
129
131
  def bearing(other)
130
132
  fail "cannot calculate bearing to identical point" if self == other
@@ -141,6 +143,8 @@ module AIXM
141
143
 
142
144
  # Calculate a new point by adding the distance in the given bearing
143
145
  #
146
+ # @param distance [AIXM::D]
147
+ # @param bearing [AIXM::A]
144
148
  # @return [AIXM::XY]
145
149
  def add_distance(distance, bearing)
146
150
  angular_dist = distance.to_m.dim / EARTH_RADIUS
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aixm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
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 CERTI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WCJjX5xvFKNKHMCeQYPeZvLICCwyw2paE7Otwk6p
26
- uvbg2Ks5ykXsbk5i6vxDoeeOLvmxCqI6m+tHb8v7VZtmwRJm8so0eSX0WvTaKnIf
27
- CAn1bVUggczVdNoBXw9WAILKyw9bvh3Ft740XZrR74sd+m2pGwjCaM8hzLvrVbGP
28
- DyYhlBeRWyQKQ0WDIsiTSRhzK8HwSTUWjvPwx7SEdIU/HZgyrk0ETObKPakVu6bH
29
- kAyiRqgxF4dJviwtqI7mZIomWL63+kXLgjOjMe1SHxfIPo/0ji6+r1p4KYa7o41v
30
- fwIwU1MKlFBdsjkd
22
+ OTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBSfK8MtR62mQ6oN
23
+ yoX/VKJzFjLSVDANBgkqhkiG9w0BAQsFAAOCAQEAXhT/LpMArF3JRcZSRkJDY+dU
24
+ GKCRqOefi2iydqh1yIqXyTA9PGR1w5O6O+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-03-06 00:00:00.000000000 Z
30
+ date: 2024-01-13 00:00:00.000000000 Z
33
31
  dependencies:
34
32
  - !ruby/object:Gem::Dependency
35
33
  name: nokogiri
@@ -116,7 +114,7 @@ dependencies:
116
114
  - !ruby/object:Gem::Version
117
115
  version: '0'
118
116
  - !ruby/object:Gem::Dependency
119
- name: minitest-sound
117
+ name: minitest-flash
120
118
  requirement: !ruby/object:Gem::Requirement
121
119
  requirements:
122
120
  - - ">="
@@ -313,7 +311,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
313
311
  - !ruby/object:Gem::Version
314
312
  version: '0'
315
313
  requirements: []
316
- rubygems_version: 3.4.7
314
+ rubygems_version: 3.5.4
317
315
  signing_key:
318
316
  specification_version: 4
319
317
  summary: Builder for AIXM/OFMX aeronautical information
metadata.gz.sig CHANGED
Binary file