dina 1.3.5.0 → 2.0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dina/authentication/authentication.rb +1 -1
- data/lib/dina/models/agent/identifier.rb +1 -1
- data/lib/dina/models/agent/organization.rb +1 -1
- data/lib/dina/models/agent/person.rb +1 -1
- data/lib/dina/models/assemblage.rb +1 -1
- data/lib/dina/models/attachment.rb +1 -1
- data/lib/dina/models/base_model.rb +1 -1
- data/lib/dina/models/institution.rb +1 -1
- data/lib/dina/models/managed_attribute.rb +1 -1
- data/lib/dina/models/material_sample/collecting_event.rb +1 -1
- data/lib/dina/models/material_sample/collection.rb +1 -1
- data/lib/dina/models/material_sample/collection_method.rb +1 -1
- data/lib/dina/models/material_sample/collection_sequence_generator.rb +1 -1
- data/lib/dina/models/material_sample/material_sample.rb +1 -1
- data/lib/dina/models/material_sample/organism.rb +1 -1
- data/lib/dina/models/material_sample/preparation_method.rb +1 -1
- data/lib/dina/models/material_sample/preparation_type.rb +1 -1
- data/lib/dina/models/material_sample/project.rb +1 -1
- data/lib/dina/models/material_sample/protocol.rb +1 -1
- data/lib/dina/models/object_store/derivative.rb +1 -1
- data/lib/dina/models/object_store/file.rb +1 -1
- data/lib/dina/models/object_store/object_store.rb +1 -1
- data/lib/dina/models/object_store/object_store_managed_attribute.rb +1 -1
- data/lib/dina/models/object_store/object_subtype.rb +1 -1
- data/lib/dina/models/sequence/index_set.rb +1 -1
- data/lib/dina/models/sequence/molecular_sample.rb +1 -1
- data/lib/dina/models/sequence/ngs_workflow.rb +1 -1
- data/lib/dina/models/sequence/pcr_batch.rb +1 -1
- data/lib/dina/models/sequence/pcr_primer.rb +1 -1
- data/lib/dina/models/sequence/product.rb +1 -1
- data/lib/dina/models/sequence/region.rb +1 -1
- data/lib/dina/models/sequence/thermocycler_profile.rb +1 -1
- data/lib/dina/models/storage/storage_unit.rb +1 -1
- data/lib/dina/models/storage/storage_unit_type.rb +1 -1
- data/lib/dina/models/transaction/transaction.rb +1 -1
- data/lib/dina/models/user.rb +1 -1
- data/lib/dina/version.rb +3 -3
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1352cad3aa67d164e8fb896dc19f78188000f0920b2ebc11e6ae6644e17e5865
|
4
|
+
data.tar.gz: f42dead269644b54f0d37cad6b92831fbaa0be455f22f45537f9b9b0e60bb67f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15e3f18969c6719132d8ece300c0ee2a3483c1ba34d59289a65624480404d1d9b5a0685de68ebc2bfdeaf96812467e59a080a97d9bb24e82bcbd6b5dfbd837d6
|
7
|
+
data.tar.gz: 63d0e62162218d0e6777235877496c85a8da9e54d76628dcb861999829c22ec8d253913ac13afd6bbb891609322fdb8f3fec3a6dfa7ad438000d5d36b8581759
|
@@ -52,7 +52,7 @@ module Dina
|
|
52
52
|
Keycloak.auth_server_url = config.authorization_url
|
53
53
|
Keycloak.realm = config.realm
|
54
54
|
|
55
|
-
if opts
|
55
|
+
if opts.key?(:verify_ssl) && opts[:verify_ssl] == false
|
56
56
|
Dina::BaseModel.connection_options[:ssl] = { verify: false }
|
57
57
|
end
|
58
58
|
|
@@ -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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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 PcrPrimer < BaseModel
|
5
|
-
property :id, type: :string, default: SecureRandom.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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
|
data/lib/dina/models/user.rb
CHANGED
@@ -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.
|
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
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:
|
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:
|
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
|
+
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.
|
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.
|
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.
|
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.
|
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.
|
236
|
+
rubygems_version: 3.5.3
|
237
237
|
signing_key:
|
238
238
|
specification_version: 4
|
239
239
|
summary: DINA ruby gem
|