dina 0.8.0.0 → 0.8.1.0

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: 25a15f64f21867881cc89efca164d7753aff7916b1399bc3525f5375bb13c38f
4
- data.tar.gz: 27e916b183b9413093544901367e3103553f9a91b4c9c5de476fe15d0bfc12e2
3
+ metadata.gz: 0c6ae5abbf48a7b17f398ef9b7847f4e2a971f1819669c0202147a085cd20268
4
+ data.tar.gz: e59a3c1ab3548dba76c6294dcc7536b9c8644be776123b367c1484b7a5981122
5
5
  SHA512:
6
- metadata.gz: a6e8b0c69ea6169539823a31d3ea10dab1b4a3f62f5358eaf2bf10d484472356610c317c1dbfb0a187957aca071daf68a142d207872fdaca71d8655fab8ed639
7
- data.tar.gz: 15894af41ce11caa23c126e86fc31be365bae97cee056b8c7f90dee4585fde800ab05537c87a8749c2ffdd3625a693eb6533a4af4fd1c4c8371d9494693bc73c
6
+ metadata.gz: c4693d5abe72117aa16129a3f436ea7548537371446e6bc2ed335ddf03f4e2890816ffcf7093c02a481ec436b50c1d13203a1794d7ea119d59014488b33871c2
7
+ data.tar.gz: bfea8c578a6afdf3f30ea7857f1ebaafff6168a0952a47c0d6a8ab8c4c316eb1e05ce821a1cc66d6728016e85c99811b91c420817a34ec43996e9214506ff290
@@ -0,0 +1,21 @@
1
+ module Dina
2
+ class GeographicSource
3
+ attr_accessor :sourceUrl
4
+ attr_accessor :customGeographicPlace
5
+ attr_accessor :selectedGeographicPlace
6
+ attr_accessor :higherGeographicPlaces
7
+ attr_accessor :stateProvince
8
+ attr_accessor :country
9
+ attr_accessor :recordedOn
10
+
11
+ def initialize
12
+ end
13
+
14
+ def to_hash
15
+ hash = {}
16
+ instance_variables.each { |var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
17
+ hash.deep_symbolize_keys
18
+ end
19
+
20
+ end
21
+ end
@@ -35,7 +35,7 @@ module Dina
35
35
  property :notPubliclyReleasableReason, type: :string, default: nil
36
36
  property :tags, type: :array, default: []
37
37
  property :geographicPlaceNameSource, type: :string
38
- property :geographicPlaceNameSourceDetail, type: :array, default: [{ sourceID: nil, sourceIdType: nil, sourceURL: nil }]
38
+ property :geographicPlaceNameSourceDetail, type: :object, default: {}
39
39
  property :managedAttributes, type: :array, default: []
40
40
  property :geoReferenceAssertions, type: :array, default: []
41
41
  property :eventGeom, type: :string
data/lib/dina/version.rb CHANGED
@@ -3,7 +3,7 @@ module Dina
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 8
6
- PATCH = 0
6
+ PATCH = 1
7
7
  BUILD = 0
8
8
 
9
9
  def self.version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dina
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0.0
4
+ version: 0.8.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David P. Shorthouse
@@ -153,6 +153,7 @@ files:
153
153
  - lib/dina/components/address.rb
154
154
  - lib/dina/components/agent_role.rb
155
155
  - lib/dina/components/determination.rb
156
+ - lib/dina/components/geographic_source.rb
156
157
  - lib/dina/components/georeference_assertion.rb
157
158
  - lib/dina/components/shipment.rb
158
159
  - lib/dina/exceptions.rb