dina 2.2.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ea5252ef054c209ba20f6838bb83a9ca4bd0316e4e6a6cf3f80b6376ebb584e
|
4
|
+
data.tar.gz: 1ee32a455976e479d30cc56fbdf87f570769cff606556ed18ade6d6bc896e277
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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.
|
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
|
+
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
|