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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07d860bb78b96c5ac6b2f34c26192c717aba1efcca65e7d5889a9b06d65be341
|
4
|
+
data.tar.gz: b5d90047aa0d24031146c495c42e135f938cc4329db475e597fdeae3a1cf9658
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
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.
|
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-
|
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
|