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: 412701254b038e7f9f26f8ff0f71f4caf0abf11b9ade73e309b6df54748ea856
4
- data.tar.gz: 595f763ace7f47c02e8fe22021f5088bbf46f3dffca02b2f7e525013e7a7e4a3
3
+ metadata.gz: 5ca23a43b7089a74f651db010b1bd07feb7e2bbc18ab0036f0178bcf69b07180
4
+ data.tar.gz: f27bd7e3623730a0ae34c624aeccc59dced5733775e80a35e2db5099e5c2f46b
5
5
  SHA512:
6
- metadata.gz: 223b20a9b789c7554cfd47397647a98cb59bdebd0cde82d5075e68288fdaff4f6e1f279a9e06b46aed477607fd432618f054474eb2ff54850580381734b62a63
7
- data.tar.gz: b7ab7e3e407667ab91d3307ce062862f3e26e5b6fc8bfa42f4c21ae1a3588f145ef4d75c42090bd3502ee403fd556343d68348c29b5eb09cf039270050c12f83
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
- unknown_attributes = self.attributes.symbolize_keys.keys - self.class.properties.keys - [:type]
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
@@ -31,7 +31,7 @@ module Dina
31
31
  attr_accessor :accepted_directions
32
32
 
33
33
  def self.endpoint_path
34
- "loan-transaction/"
34
+ "collection-api/"
35
35
  end
36
36
 
37
37
  def self.table_name
@@ -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
@@ -3,7 +3,7 @@ module Dina
3
3
 
4
4
  MAJOR = 3
5
5
  MINOR = 4
6
- PATCH = 3
6
+ PATCH = 5
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: 3.4.3.0
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-05-07 00:00:00.000000000 Z
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