dina 0.8.3.0 → 0.8.5.0

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: 194f73d318f76f43a6e65426a47fb0ad5192de5c007660633bdd9f8fb9f86ecd
4
- data.tar.gz: 2aba2864327b88821e62865d469844bbbff6b9e9f5b440c77b0698e67605c82f
3
+ metadata.gz: 07d860bb78b96c5ac6b2f34c26192c717aba1efcca65e7d5889a9b06d65be341
4
+ data.tar.gz: b5d90047aa0d24031146c495c42e135f938cc4329db475e597fdeae3a1cf9658
5
5
  SHA512:
6
- metadata.gz: 2a906a03f0288fba3f9194ad1274eacd9abedf1abd0bd4fc1f1c39b46268f52cff94fbd2f2ca1a0d936f677088d3b9f3e78466a725ad2e1976035334fcc605a8
7
- data.tar.gz: 4d869369dd2ec0a2a3607d1a1159b94b54ea802fc8336bfc9689ead30f705bf54ab54ce1a5b2c476985ca9f363c5791383769e251a03afacfb817839744f8ee0
6
+ metadata.gz: 75a4d714d51057a92018a9553ddf3b23cbda96500100ef8dc22bdaa0f610883d56b27d3325ce76ac341e616c9c92f9de2bd76d40f478b5214aef2eaed5e16328
7
+ data.tar.gz: ca9f8af8513e14fe0ebd6db820ffbc0319ca124602033074781e2b599ee5cb8bc39062f940381312f654bbc93c9a34f15b49df017237e8570a30272a9d3dfcfa
@@ -19,8 +19,8 @@ module Dina
19
19
  property :dwcVerbatimElevation, type: :string
20
20
  property :dwcVerbatimDepth, type: :string
21
21
  property :dwcFieldNumber, type: :string
22
- property :dwcOtherRecordNumbers, type: :array, default: []
23
22
  property :dwcRecordNumber, type: :string
23
+ property :otherRecordNumbers, type: :array, default: []
24
24
  property :dwcCountry, type: :string
25
25
  property :dwcCountryCode, type: :string
26
26
  property :dwcStateProvince, type: :string
@@ -46,6 +46,8 @@ module Dina
46
46
  has_many :collectors, class_name: "Person"
47
47
  has_many :attachment, class_name: "Attachment"
48
48
 
49
+ has_one :collection_method, class_name: "CollectionMethod"
50
+
49
51
  validates_presence_of :group, message: "group is required"
50
52
 
51
53
  before_save :on_before_save
@@ -1,7 +1,7 @@
1
1
  require_rel '../base_model'
2
2
 
3
3
  module Dina
4
- class CollectingMethod < BaseModel
4
+ class CollectionMethod < BaseModel
5
5
  property :id, type: :string, default: SecureRandom.uuid
6
6
  property :group, type: :string
7
7
  property :name, type: :string
@@ -9,6 +9,8 @@ module Dina
9
9
  property :createdBy, type: :string
10
10
  property :createdOn, type: :time
11
11
 
12
+ belongs_to :collecting_event, class: "CollectingEvent", shallow_path: true
13
+
12
14
  validates_presence_of :group, message: "group is required"
13
15
 
14
16
  def self.endpoint_path
data/lib/dina/version.rb CHANGED
@@ -3,7 +3,7 @@ module Dina
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 8
6
- PATCH = 3
6
+ PATCH = 5
7
7
  BUILD = 0
8
8
 
9
9
  def self.version
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dina
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3.0
4
+ version: 0.8.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David P. Shorthouse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-18 00:00:00.000000000 Z
11
+ date: 2023-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_api_client
@@ -168,8 +168,8 @@ files:
168
168
  - lib/dina/models/institution.rb
169
169
  - lib/dina/models/managed_attribute.rb
170
170
  - lib/dina/models/material_sample/collecting_event.rb
171
- - lib/dina/models/material_sample/collecting_method.rb
172
171
  - lib/dina/models/material_sample/collection.rb
172
+ - lib/dina/models/material_sample/collection_method.rb
173
173
  - lib/dina/models/material_sample/collection_sequence_generator.rb
174
174
  - lib/dina/models/material_sample/material_sample.rb
175
175
  - lib/dina/models/material_sample/organism.rb