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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f15f731570d6e2185715ca2fda17ebcdb7ddb9fe00a333b7ed205972b965214
4
- data.tar.gz: 76d1b21058af9f934f3c6573cec026a50744e9876182323c234a493a9b538423
3
+ metadata.gz: 671355726ab63cc24fc7796c42f3001ca40798fb198945bc786e5d138ae13f1b
4
+ data.tar.gz: 146b0bac038dccf60dac009579b6d9d15730343f26b15208779f26ef71f689a8
5
5
  SHA512:
6
- metadata.gz: f8b2dd2ec57514a2049ee4ecc5f6333f886591e9e7e33163b0098c3a6437972f7b922e2427fa2f295d52ff1843e494e1d7b9cdcdaa78af97a80cf031f7ba3c8a
7
- data.tar.gz: 6b179a684539e5667c56f63844a792cdb577883bb4415b0e66aa616f885a67a0998341635cb33425954a579c875c7ac936b94c5605c2f585ce7f59a2abf54f37
6
+ metadata.gz: ff1e357cf8ff8eb4f34e0bc26aea1ac88711c0369ef10be08dfe78674db5234310e3b45978df7f379041bd073ce268eecbfbd413b74d9508894394a00460714b
7
+ data.tar.gz: 6518686433b57562855fb04c43280bdab036a867451baa65669e55ab783b7cd924549198813efefd22447f9968af75fe9002a94806b98d6459766da1f1916018
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  Nothing so far
4
4
 
5
+ ## 1.5.3
6
+
7
+ ### Additions
8
+ * `Document#sourced_at` to track last update of upstream source data
9
+
5
10
  ## 1.5.2
6
11
 
7
12
  ### Changes
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
@@ -1,3 +1,3 @@
1
1
  module AIXM
2
- VERSION = "1.5.2".freeze
2
+ VERSION = "1.5.3".freeze
3
3
  end
@@ -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
- ay��m���v�|�@c�*J� �$.���r0��J�9-Ԃ��B �=A������"��xj^�Mm=���sӫJoW�K&'�||���-hC% D9n�� �`D1Frǜ��% �`�}��cFL�������EcSu\�S���.Z��gM�lSk�D.,X�Z1N����E%��,�,. ��Jx�b�Ԧ7�'�"����S� ���'�&� �cd#����|%õ�
1
+ RN��^�<��&t�z����4����<�x5�u��g8%.�K���p�̲/�B.۹<6��t���9F���g��O0N}���$(_^1h}3�&�� ������{�����pV �a���Ƚ)*/a[&�� 2p�1wD�яwArd�$��.��s'4jKezm���!!��� 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.2
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-05-29 00:00:00.000000000 Z
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.11
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