dina 0.8.4.0 → 0.8.5.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: 94d3fd7c8bf8ceaab2f6cc0bc989e8e2b8a6f016b32e382aa59e4e92bb0971b5
4
- data.tar.gz: 3aa7ffd41cac70a0632de24577e2cc0a666d299e693df98f8a21f4217f0abf4a
3
+ metadata.gz: 07d860bb78b96c5ac6b2f34c26192c717aba1efcca65e7d5889a9b06d65be341
4
+ data.tar.gz: b5d90047aa0d24031146c495c42e135f938cc4329db475e597fdeae3a1cf9658
5
5
  SHA512:
6
- metadata.gz: 7ff4924724b2982a1f000683993c08d5281430369b9e5a79ed747382dbde04c3f5aa03dd56251a1b03d3be3340f55c57a73e5a07b36015c97648be38d458ce52
7
- data.tar.gz: e52aa58b3e6d723623ee9193930bff43f715536036b3ec803caad601704b3d617602ae9384ca2e051494859fa131df7e4fc1b5da4f79622d6fada95b808f261f
6
+ metadata.gz: 75a4d714d51057a92018a9553ddf3b23cbda96500100ef8dc22bdaa0f610883d56b27d3325ce76ac341e616c9c92f9de2bd76d40f478b5214aef2eaed5e16328
7
+ data.tar.gz: ca9f8af8513e14fe0ebd6db820ffbc0319ca124602033074781e2b599ee5cb8bc39062f940381312f654bbc93c9a34f15b49df017237e8570a30272a9d3dfcfa
@@ -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 = 4
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.4.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-19 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