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: 94d3fd7c8bf8ceaab2f6cc0bc989e8e2b8a6f016b32e382aa59e4e92bb0971b5
4
- data.tar.gz: 3aa7ffd41cac70a0632de24577e2cc0a666d299e693df98f8a21f4217f0abf4a
3
+ metadata.gz: 166c0e0b7b0bd115b3cad40c673729b54e6dae9a063ad2ccd550889bb3c9ff8d
4
+ data.tar.gz: 0d22db1107cd7c73a4bebb2798ac032c04b4180026ab11fcbac7465ce4246389
5
5
  SHA512:
6
- metadata.gz: 7ff4924724b2982a1f000683993c08d5281430369b9e5a79ed747382dbde04c3f5aa03dd56251a1b03d3be3340f55c57a73e5a07b36015c97648be38d458ce52
7
- data.tar.gz: e52aa58b3e6d723623ee9193930bff43f715536036b3ec803caad601704b3d617602ae9384ca2e051494859fa131df7e4fc1b5da4f79622d6fada95b808f261f
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 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
@@ -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 :restrictionFieldsExtension, type: :array
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
@@ -3,7 +3,7 @@ module Dina
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 8
6
- PATCH = 4
6
+ PATCH = 6
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.4.0
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-19 00:00:00.000000000 Z
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