dina 3.4.3.0 → 3.4.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5ca23a43b7089a74f651db010b1bd07feb7e2bbc18ab0036f0178bcf69b07180
|
|
4
|
+
data.tar.gz: f27bd7e3623730a0ae34c624aeccc59dced5733775e80a35e2db5099e5c2f46b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a77b83e17c76dad4dc073c14e69ec5933660903fc1edc69055c9520225ae6587602c45472837d9e054a4cfe78e90b5dced7626e41f1be4d51138b60f7abcdca
|
|
7
|
+
data.tar.gz: 1db1d287456d0ff2552734f91ff3cc30a43d7d70e52afcf31e69def2e267be7f4484ccfe328de2cf8ce47f9bcf29d86cf0b1e9cf5796aa9f8c6d585084a94b4f
|
|
@@ -67,7 +67,12 @@ module Dina
|
|
|
67
67
|
end
|
|
68
68
|
|
|
69
69
|
def on_before_save
|
|
70
|
-
|
|
70
|
+
#Symbolize managedAttributes because strings fail on save
|
|
71
|
+
symbolized_attributes = self.attributes.symbolize_keys
|
|
72
|
+
if symbolized_attributes.has_key?(:managedAttributes)
|
|
73
|
+
self.managedAttributes = self.managedAttributes.to_hash.symbolize_keys
|
|
74
|
+
end
|
|
75
|
+
unknown_attributes = symbolized_attributes.keys - self.class.properties.keys - [:type]
|
|
71
76
|
if unknown_attributes.size > 0
|
|
72
77
|
raise ObjectInvalid, "#{self.class} is invalid. #{unknown_attributes.join(", ")} are not accepted properties."
|
|
73
78
|
end
|
|
@@ -3,8 +3,6 @@ require_rel '../models/base_model'
|
|
|
3
3
|
module Dina
|
|
4
4
|
class SearchConnection
|
|
5
5
|
|
|
6
|
-
attr_reader :faraday
|
|
7
|
-
|
|
8
6
|
def initialize(options = {})
|
|
9
7
|
site = options.fetch(:site)
|
|
10
8
|
connection_options = options.slice(:proxy, :ssl, :request, :headers, :params)
|
|
@@ -41,7 +39,7 @@ module Dina
|
|
|
41
39
|
end
|
|
42
40
|
payload = JSON.generate(body[:payload]) rescue ""
|
|
43
41
|
|
|
44
|
-
response = faraday.run_request(request_method, path, body, headers) do |request|
|
|
42
|
+
response = @faraday.run_request(request_method, path, body, headers) do |request|
|
|
45
43
|
request.params.update(params) if params
|
|
46
44
|
request.headers = custom_headers
|
|
47
45
|
request.body = payload
|
|
@@ -64,7 +62,7 @@ module Dina
|
|
|
64
62
|
end
|
|
65
63
|
|
|
66
64
|
def use(middleware, *args, &block)
|
|
67
|
-
return if faraday.builder.locked?
|
|
65
|
+
return if @faraday.builder.locked?
|
|
68
66
|
end
|
|
69
67
|
|
|
70
68
|
end
|
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: 3.4.
|
|
4
|
+
version: 3.4.5.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: 2026-
|
|
12
|
+
date: 2026-10-26 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: json_api_client
|
|
@@ -190,6 +190,7 @@ files:
|
|
|
190
190
|
- lib/dina/models/material_sample/project.rb
|
|
191
191
|
- lib/dina/models/material_sample/protocol.rb
|
|
192
192
|
- lib/dina/models/material_sample/site.rb
|
|
193
|
+
- lib/dina/models/material_sample/transaction.rb
|
|
193
194
|
- lib/dina/models/object_store/derivative.rb
|
|
194
195
|
- lib/dina/models/object_store/file.rb
|
|
195
196
|
- lib/dina/models/object_store/file_connection.rb
|
|
@@ -208,7 +209,6 @@ files:
|
|
|
208
209
|
- lib/dina/models/storage/storage_unit.rb
|
|
209
210
|
- lib/dina/models/storage/storage_unit_type.rb
|
|
210
211
|
- lib/dina/models/storage/storage_unit_usage.rb
|
|
211
|
-
- lib/dina/models/transaction/transaction.rb
|
|
212
212
|
- lib/dina/models/user.rb
|
|
213
213
|
- lib/dina/rest_client_request_patch.rb
|
|
214
214
|
- lib/dina/search/search.rb
|