dina 1.3.6.0 → 2.0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dina/models/agent/identifier.rb +1 -1
  3. data/lib/dina/models/agent/organization.rb +1 -1
  4. data/lib/dina/models/agent/person.rb +1 -1
  5. data/lib/dina/models/assemblage.rb +1 -1
  6. data/lib/dina/models/attachment.rb +1 -1
  7. data/lib/dina/models/base_model.rb +1 -1
  8. data/lib/dina/models/institution.rb +1 -1
  9. data/lib/dina/models/managed_attribute.rb +1 -1
  10. data/lib/dina/models/material_sample/collecting_event.rb +1 -1
  11. data/lib/dina/models/material_sample/collection.rb +1 -1
  12. data/lib/dina/models/material_sample/collection_method.rb +1 -1
  13. data/lib/dina/models/material_sample/collection_sequence_generator.rb +1 -1
  14. data/lib/dina/models/material_sample/material_sample.rb +1 -1
  15. data/lib/dina/models/material_sample/organism.rb +1 -1
  16. data/lib/dina/models/material_sample/preparation_method.rb +1 -1
  17. data/lib/dina/models/material_sample/preparation_type.rb +1 -1
  18. data/lib/dina/models/material_sample/project.rb +1 -1
  19. data/lib/dina/models/material_sample/protocol.rb +1 -1
  20. data/lib/dina/models/object_store/derivative.rb +1 -1
  21. data/lib/dina/models/object_store/file.rb +1 -1
  22. data/lib/dina/models/object_store/object_store.rb +1 -1
  23. data/lib/dina/models/object_store/object_store_managed_attribute.rb +1 -1
  24. data/lib/dina/models/object_store/object_subtype.rb +1 -1
  25. data/lib/dina/models/sequence/index_set.rb +1 -1
  26. data/lib/dina/models/sequence/molecular_sample.rb +1 -1
  27. data/lib/dina/models/sequence/ngs_workflow.rb +1 -1
  28. data/lib/dina/models/sequence/pcr_batch.rb +1 -1
  29. data/lib/dina/models/sequence/pcr_primer.rb +1 -1
  30. data/lib/dina/models/sequence/product.rb +1 -1
  31. data/lib/dina/models/sequence/region.rb +1 -1
  32. data/lib/dina/models/sequence/thermocycler_profile.rb +1 -1
  33. data/lib/dina/models/storage/storage_unit.rb +1 -1
  34. data/lib/dina/models/storage/storage_unit_type.rb +1 -1
  35. data/lib/dina/models/transaction/transaction.rb +1 -1
  36. data/lib/dina/models/user.rb +1 -1
  37. data/lib/dina/version.rb +3 -3
  38. metadata +8 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6728c019ebcabfe2b5cc44ed86e21b554abb35610a827244327c36b44da848c3
4
- data.tar.gz: 296327cca607a8933f2019a7909e150e7a1fdcfa61974eb9b0e7780a94cbb1e0
3
+ metadata.gz: 1352cad3aa67d164e8fb896dc19f78188000f0920b2ebc11e6ae6644e17e5865
4
+ data.tar.gz: f42dead269644b54f0d37cad6b92831fbaa0be455f22f45537f9b9b0e60bb67f
5
5
  SHA512:
6
- metadata.gz: 53df12106db16f66b010495187fe52260fb77657177837bf43d0b355908d1691cfd4a62fa7cd29e5770312e228007bbb03e7d5c3ed1b2dfffb83f23d5431c734
7
- data.tar.gz: 1ac375737f4c259807519964f81a27dab6989850d239761136df018c14ab866056a692e7dda74d4c55085e84184886384afb510e8742c3003938656adf847d10
6
+ metadata.gz: 15e3f18969c6719132d8ece300c0ee2a3483c1ba34d59289a65624480404d1d9b5a0685de68ebc2bfdeaf96812467e59a080a97d9bb24e82bcbd6b5dfbd837d6
7
+ data.tar.gz: 63d0e62162218d0e6777235877496c85a8da9e54d76628dcb861999829c22ec8d253913ac13afd6bbb891609322fdb8f3fec3a6dfa7ad438000d5d36b8581759
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class Identifier < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :namespace, type: :string
7
7
  property :value, type: :string
8
8
  property :createdBy, type: :string
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class Organization < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :names, type: :array, default: [{languageCode: "EN", name: nil}, {languageCode: "FR", name: nil}]
7
7
  property :aliases, type: :array, default: []
8
8
  property :createdBy, type: :string
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class Person < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :displayName, type: :string, default: nil
7
7
  property :givenNames, type: :string
8
8
  property :familyNames, type: :string
@@ -2,7 +2,7 @@ require_rel 'base_model'
2
2
 
3
3
  module Dina
4
4
  class Assemblage < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :group, type: :string
7
7
  property :name, type: :string
8
8
  property :multilingualTitle, type: :multilingual_title
@@ -2,7 +2,7 @@ require_rel 'base_model'
2
2
 
3
3
  module Dina
4
4
  class Attachment < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
 
7
7
  belongs_to :material_sample, shallow_path: true, class_name: "MaterialSample"
8
8
  belongs_to :collecting_event, shallow_path: true, class_name: "CollectingEvent"
@@ -39,7 +39,7 @@ module Dina
39
39
 
40
40
  def initialize(params = {})
41
41
  symbolized_params = params.transform_keys(&:to_sym)
42
- params["id"] = SecureRandom.uuid if !symbolized_params[:id]
42
+ params["id"] = SecureRandom.uuid_v7 if !symbolized_params[:id]
43
43
  super
44
44
  extend_model_methods
45
45
  end
@@ -2,7 +2,7 @@ require_rel 'base_model'
2
2
 
3
3
  module Dina
4
4
  class Institution < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :name, type: :string
7
7
  property :multilingualDescription, type: :multilingual_description
8
8
  property :webpage, type: :string
@@ -2,7 +2,7 @@ require_rel 'base_model'
2
2
 
3
3
  module Dina
4
4
  class ManagedAttribute < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :group, type: :string
7
7
  property :name, type: :string
8
8
  property :key, type: :string
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class CollectingEvent < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :group, type: :string
7
7
  property :version, type: :integer
8
8
  property :dwcVerbatimCoordinates, type: :string
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class Collection < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :group, type: :string
7
7
  property :name, type: :string
8
8
  property :code, type: :string
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class CollectionMethod < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :group, type: :string
7
7
  property :name, type: :string
8
8
  property :multilingualDescription, type: :multilingual_description
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class CollectionSequenceGenerator < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :amount, type: :string
7
7
 
8
8
  def self.endpoint_path
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class MaterialSample < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :version, type: :integer
7
7
  property :dwcCatalogNumber, type: :string
8
8
  property :materialSampleName, type: :string
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class Organism < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :group, type: :string
7
7
  property :lifeStage, type: :string
8
8
  property :sex, type: :string
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class PreparationMethod < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :group, type: :string
7
7
  property :name, type: :string
8
8
  property :multilingualDescription, type: :multilingual_description
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class PreparationType < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :group, type: :string
7
7
  property :name, type: :string
8
8
  property :multilingualDescription, type: :multilingual_description
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class Project < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :group, type: :string
7
7
  property :name, type: :string
8
8
  property :multilingualDescription, type: :multilingual_description
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class Protocol < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :group, type: :string
7
7
  property :name, type: :string
8
8
  property :protocolType, type: :string
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class Derivative < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :bucket, type: :string
7
7
  property :fileIdentifier, type: :string
8
8
  property :fileExtension, type: :string
@@ -4,7 +4,7 @@ require_rel 'file_connection'
4
4
  module Dina
5
5
 
6
6
  class File < BaseModel
7
- property :id, type: :string, default: SecureRandom.uuid
7
+ property :id, type: :string, default: SecureRandom.uuid_v7
8
8
  property :group, type: :string
9
9
  property :filePath, type: :string
10
10
  property :fileName, type: :string
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class ObjectStore < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :createdBy, type: :string
7
7
  property :createdOn, type: :time
8
8
  property :group, type: :string
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class ObjectStoreManagedAttribute < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :name, type: :string
7
7
  property :key, type: :string
8
8
  property :vocabularyElementType, type: :string
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class ObjectSubtype < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :createdBy, type: :string
7
7
  property :createdOn, type: :time
8
8
  property :dcType, type: :string
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class IndexSet < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :group, type: :string
7
7
  property :name, type: :string
8
8
  property :forwardAdapter, type: :string
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class MolecularSample < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :group, type: :string
7
7
  property :name, type: :string
8
8
  property :createdBy, type: :string
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class NgsWorkflow < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :group, type: :string
7
7
 
8
8
  validates_presence_of :group, message: "group is required"
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class PcrBatch < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :group, type: :string
7
7
  property :name, type: :string
8
8
 
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class PcrPrimer < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :group, type: :string
7
7
  property :type, type: :string
8
8
  property :name, type: :string
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class Product < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :group, type: :string
7
7
  property :name, type: :string
8
8
  property :upc, type: :string
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class Region < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :group, type: :string
7
7
  property :name, type: :string
8
8
  property :symbol, type: :string
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class ThermocyclerProfile < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :group, type: :string
7
7
  property :name, type: :string
8
8
  property :application, type: :string
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class StorageUnit < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :group, type: :string
7
7
  property :name, type: :string
8
8
  property :barcode, type: :string
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class StorageUnitType < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :group, type: :string
7
7
  property :name, type: :string
8
8
  property :isInseperable, type: :boolean
@@ -2,7 +2,7 @@ require_rel '../base_model'
2
2
 
3
3
  module Dina
4
4
  class Transaction < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :transactionNumber, type: :string
7
7
  property :materialDirection, type: :string
8
8
  property :materialToBeReturned, type: :boolean
@@ -2,7 +2,7 @@ require_rel 'base_model'
2
2
 
3
3
  module Dina
4
4
  class User < BaseModel
5
- property :id, type: :string, default: SecureRandom.uuid
5
+ property :id, type: :string, default: SecureRandom.uuid_v7
6
6
  property :username, type: :string
7
7
  property :firstName, type: :string
8
8
  property :lastName, type: :string
data/lib/dina/version.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  module Dina
2
2
  class Version
3
3
 
4
- MAJOR = 1
5
- MINOR = 3
6
- PATCH = 6
4
+ MAJOR = 2
5
+ MINOR = 0
6
+ PATCH = 0
7
7
  BUILD = 0
8
8
 
9
9
  def self.version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dina
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.6.0
4
+ version: 2.0.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David P. Shorthouse
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-12-15 00:00:00.000000000 Z
12
+ date: 2024-03-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_api_client
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '1.20'
20
+ version: '1.22'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '1.20'
27
+ version: '1.22'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: keycloak
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -45,14 +45,14 @@ dependencies:
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: 0.2.0
48
+ version: 0.3.0
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: 0.2.0
55
+ version: 0.3.0
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: require_all
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -226,14 +226,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
226
226
  requirements:
227
227
  - - ">="
228
228
  - !ruby/object:Gem::Version
229
- version: '3.1'
229
+ version: '3.3'
230
230
  required_rubygems_version: !ruby/object:Gem::Requirement
231
231
  requirements:
232
232
  - - ">="
233
233
  - !ruby/object:Gem::Version
234
234
  version: '0'
235
235
  requirements: []
236
- rubygems_version: 3.4.10
236
+ rubygems_version: 3.5.3
237
237
  signing_key:
238
238
  specification_version: 4
239
239
  summary: DINA ruby gem