aixm 1.5.2 → 1.5.3
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/lib/aixm/document.rb +16 -2
- data/lib/aixm/version.rb +1 -1
- data/schemas/ofmx/0.2/OFMX-Snapshot.xsd +5 -0
- data.tar.gz.sig +2 -1
- 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: 671355726ab63cc24fc7796c42f3001ca40798fb198945bc786e5d138ae13f1b
|
4
|
+
data.tar.gz: 146b0bac038dccf60dac009579b6d9d15730343f26b15208779f26ef71f689a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff1e357cf8ff8eb4f34e0bc26aea1ac88711c0369ef10be08dfe78674db5234310e3b45978df7f379041bd073ce268eecbfbd413b74d9508894394a00460714b
|
7
|
+
data.tar.gz: 6518686433b57562855fb04c43280bdab036a867451baa65669e55ab783b7cd924549198813efefd22447f9968af75fe9002a94806b98d6459766da1f1916018
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
data/lib/aixm/document.rb
CHANGED
@@ -8,6 +8,7 @@ module AIXM
|
|
8
8
|
# ===Cheat Sheet in Pseudo Code:
|
9
9
|
# document = AIXM.document(
|
10
10
|
# namespace: String (UUID)
|
11
|
+
# sourced_at: Time or Date or String or nil
|
11
12
|
# created_at: Time or Date or String
|
12
13
|
# effective_at: Time or Date or String
|
13
14
|
# expiration_at: Time or Date or String or nil
|
@@ -37,6 +38,14 @@ module AIXM
|
|
37
38
|
# @param value [String]
|
38
39
|
attr_reader :namespace
|
39
40
|
|
41
|
+
# Last upstream source data update date and UTC time
|
42
|
+
#
|
43
|
+
# @overload sourced_at
|
44
|
+
# @return [Time]
|
45
|
+
# @overload sourced_at=(value)
|
46
|
+
# @param value [Time, nil]
|
47
|
+
attr_reader :sourced_at
|
48
|
+
|
40
49
|
# Creation date and UTC time
|
41
50
|
#
|
42
51
|
# @overload created_at
|
@@ -63,9 +72,9 @@ module AIXM
|
|
63
72
|
|
64
73
|
# See the {cheat sheet}[AIXM::Document] for examples on how to create
|
65
74
|
# instances of this class.
|
66
|
-
def initialize(namespace: nil, created_at: nil, effective_at: nil, expiration_at: nil)
|
75
|
+
def initialize(namespace: nil, sourced_at: nil, created_at: nil, effective_at: nil, expiration_at: nil)
|
67
76
|
self.namespace = namespace
|
68
|
-
self.created_at, self.effective_at, self.expiration_at = created_at, effective_at, expiration_at
|
77
|
+
self.sourced_at, self.created_at, self.effective_at, self.expiration_at = sourced_at, created_at, effective_at, expiration_at
|
69
78
|
end
|
70
79
|
|
71
80
|
# @return [String]
|
@@ -78,6 +87,10 @@ module AIXM
|
|
78
87
|
@namespace = value || SecureRandom.uuid
|
79
88
|
end
|
80
89
|
|
90
|
+
def sourced_at=(value)
|
91
|
+
@sourced_at = value&.to_time&.round
|
92
|
+
end
|
93
|
+
|
81
94
|
def created_at=(value)
|
82
95
|
@created_at = if time = value&.to_time
|
83
96
|
time.round
|
@@ -161,6 +174,7 @@ module AIXM
|
|
161
174
|
origin: "rubygem aixm-#{AIXM::VERSION}",
|
162
175
|
namespace: (namespace if AIXM.ofmx?),
|
163
176
|
regions: (regions.join(' '.freeze) if AIXM.ofmx?),
|
177
|
+
sourced: (@sourced_at&.utc&.xmlschema if AIXM.ofmx?),
|
164
178
|
created: @created_at.utc.xmlschema,
|
165
179
|
effective: @effective_at.utc.xmlschema,
|
166
180
|
expiration: (@expiration_at&.utc&.xmlschema if AIXM.ofmx?)
|
data/lib/aixm/version.rb
CHANGED
@@ -172,6 +172,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
172
172
|
<xsd:documentation>Regions used throughout this document</xsd:documentation>
|
173
173
|
</xsd:annotation>
|
174
174
|
</xsd:attribute>
|
175
|
+
<xsd:attribute name="sourced" type="dateTimeZulu">
|
176
|
+
<xsd:annotation>
|
177
|
+
<xsd:documentation>The date and time when the upstream data used for this message was last updated</xsd:documentation>
|
178
|
+
</xsd:annotation>
|
179
|
+
</xsd:attribute>
|
175
180
|
<xsd:attribute name="created" type="dateTimeZulu" use="required">
|
176
181
|
<xsd:annotation>
|
177
182
|
<xsd:documentation>The date and time when the message was created</xsd:documentation>
|
data.tar.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
RN��^�<��&t�z����4����<�x5�u��g8%.�K���p�̲/�B.۹<6��t���9F���g��O�0N�}���$(_^1�h}3�&��������{�����p�V �a���Ƚ)*/a[&��2p�1wD�яwArd�$��.��s'4j�Kezm���!!���4��a��p��퉊�/uؚ�{��-
|
2
|
+
g�N�#PG��^dadg��fX ����KQI!S^��B����Hu��X
|
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.5.
|
4
|
+
version: 1.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sven Schwyn
|
@@ -27,7 +27,7 @@ cert_chain:
|
|
27
27
|
k/QvZU05f6HMYBrPogJgIzHC/C5N/yeE4BVEuBDn+10Zb1iu3aDk8sd0uMgukCY8
|
28
28
|
TUmlP5A6NeGdeDJIoLgromAKs+nvI7TWzhQq9ODs51XhxgUFRCvBqUTpjTQigw==
|
29
29
|
-----END CERTIFICATE-----
|
30
|
-
date: 2024-
|
30
|
+
date: 2024-09-09 00:00:00.000000000 Z
|
31
31
|
dependencies:
|
32
32
|
- !ruby/object:Gem::Dependency
|
33
33
|
name: bigdecimal
|
@@ -330,7 +330,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
330
330
|
- !ruby/object:Gem::Version
|
331
331
|
version: '0'
|
332
332
|
requirements: []
|
333
|
-
rubygems_version: 3.5.
|
333
|
+
rubygems_version: 3.5.18
|
334
334
|
signing_key:
|
335
335
|
specification_version: 4
|
336
336
|
summary: Builder for AIXM/OFMX aeronautical information
|
metadata.gz.sig
CHANGED
Binary file
|