dina 0.8.4.0 → 0.8.6.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: 166c0e0b7b0bd115b3cad40c673729b54e6dae9a063ad2ccd550889bb3c9ff8d
|
4
|
+
data.tar.gz: 0d22db1107cd7c73a4bebb2798ac032c04b4180026ab11fcbac7465ce4246389
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83bf73620e98906e59a65a3356fb929dc7feae54c92d830f7f6889345af4e564d0092eff1f9da9149a5d4568769823fc733289cc12c667e47681056f45a6829c
|
7
|
+
data.tar.gz: 6d4047abbe73d54ffb05d37ee29e641d95e0dfd0c3c34ea0449c3ab9a0993356cec37b52fb5a145856de19e596b380ce5d188429d43168af4e62e4a3ba76e2e6
|
@@ -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
|
@@ -3,6 +3,7 @@ require_rel '../base_model'
|
|
3
3
|
module Dina
|
4
4
|
class MaterialSample < BaseModel
|
5
5
|
property :id, type: :string, default: SecureRandom.uuid
|
6
|
+
property :version, type: :integer
|
6
7
|
property :dwcCatalogNumber, type: :string
|
7
8
|
property :materialSampleName, type: :string
|
8
9
|
property :materialSampleType, type: :string
|
@@ -23,7 +24,8 @@ module Dina
|
|
23
24
|
property :stateChangedOn, type: :time
|
24
25
|
property :stateChangeRemarks, type: :string
|
25
26
|
property :materialSampleRemarks, type: :string
|
26
|
-
property :
|
27
|
+
property :extensionValues, type: :object
|
28
|
+
property :restrictionFieldsExtension, type: :object
|
27
29
|
property :restrictionRemarks, type: :string
|
28
30
|
property :isRestricted, type: :boolean
|
29
31
|
property :materialSampleChildren, type: :array
|
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.6.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-30 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
|