dina 2.2.0.0 → 2.3.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e527d31ca0bd584b9b366dda149a57e095915af248c52e7737ffb7cd6da8b0d3
4
- data.tar.gz: b28a2c9952acfa1b448fc9f818383b097d9a72f6724c614accee9c452814bdbb
3
+ metadata.gz: 9ea5252ef054c209ba20f6838bb83a9ca4bd0316e4e6a6cf3f80b6376ebb584e
4
+ data.tar.gz: 1ee32a455976e479d30cc56fbdf87f570769cff606556ed18ade6d6bc896e277
5
5
  SHA512:
6
- metadata.gz: 1a9594317a290ac7d0837f5f49e3514ddc96095de9bd7755abcb6bc431ab0f1b7c94a0cc91204793b25b86276b789985af4652c6c8097c77ba29ee5694761906
7
- data.tar.gz: 8164ce758b35eda205e76171ce12c726850f5be22c41727c18737109eb00d89d0bed5571c9950ff98d61263b738bac1195cddb035c62bea9dbd66217b210aad7
6
+ metadata.gz: 98623d3b0ef78e402bca5a56848ca5b4174e441e164ab68ba2148c76b2b09d8e1358b705f87d7bc9b9a7a6c1c97bc9353aef9f70027dc80fa9269e0b7fa68837
7
+ data.tar.gz: f21cd32cbcaad5ffca5ec8ae82cb63be9f6deba75eceddf2be5081b4c7132b0d7e5cb85ed74f4cc218121f86bc4d5137f9c98a1cdd30042831ec2d5da29faa1b
@@ -10,7 +10,6 @@ module Dina
10
10
 
11
11
  @faraday = Faraday.new(site, connection_options) do |builder|
12
12
  builder.request :multipart
13
- builder.use ::JsonApiClient::Middleware::ParseJson
14
13
  builder.adapter(*adapter_options)
15
14
  end
16
15
  yield(self) if block_given?
@@ -34,7 +33,7 @@ module Dina
34
33
  response = @faraday.run_request(request_method, path, body, headers) do |request|
35
34
  request.params.update(params) if params
36
35
  end
37
- attributes = response.body.dup
36
+ attributes = JSON.parse(response.body.dup)
38
37
  response.body["meta"] = {}
39
38
  response.body["errors"] = []
40
39
  response.body["data"] = {
@@ -13,7 +13,6 @@ module Dina
13
13
 
14
14
  @faraday = Faraday.new(site, connection_options) do |builder|
15
15
  builder.request :json
16
- builder.use ::JsonApiClient::Middleware::ParseJson
17
16
  builder.adapter(*adapter_options)
18
17
  end
19
18
  yield(self) if block_given?
@@ -48,7 +47,7 @@ module Dina
48
47
  request.body = payload
49
48
  end
50
49
 
51
- attributes = response.body.dup
50
+ attributes = JSON.parse(response.body.dup)
52
51
  meta = {}
53
52
  if attributes.has_key?("hits")
54
53
  #TODO: does not work with SearchAutoComplete because response is different from Search
data/lib/dina/version.rb CHANGED
@@ -2,7 +2,7 @@ module Dina
2
2
  class Version
3
3
 
4
4
  MAJOR = 2
5
- MINOR = 2
5
+ MINOR = 3
6
6
  PATCH = 0
7
7
  BUILD = 0
8
8
 
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: 2.2.0.0
4
+ version: 2.3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David P. Shorthouse
@@ -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
@@ -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.3'
229
+ version: '3.2'
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.5.10
236
+ rubygems_version: 3.4.19
237
237
  signing_key:
238
238
  specification_version: 4
239
239
  summary: DINA ruby gem