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: 5beeb74a613c5715f742969284aa5d1cf6a7c5777151d2af4fcffd3d1c37e3c2
4
- data.tar.gz: f81456dd861d5728a578bf711452ab1192cf528ad8e470eaed040727a30991b3
3
+ metadata.gz: 9ea5252ef054c209ba20f6838bb83a9ca4bd0316e4e6a6cf3f80b6376ebb584e
4
+ data.tar.gz: 1ee32a455976e479d30cc56fbdf87f570769cff606556ed18ade6d6bc896e277
5
5
  SHA512:
6
- metadata.gz: 519009b941db36731617d6b096ce8c39db5f44382fbf12678ae841740e65e3e92b9c4689231a9aca2308e17366f41c6adf633a7e49dafd826ef9dc787f6de29c
7
- data.tar.gz: 867ecf699f70adf80a1a0408aa5437bdda291a08c89013896fbd7b928e9d1ecef6ba57527daf2c43a10d27a0898f36161f36f6e71241ce9ba47a120fadfcd391
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,8 +2,8 @@ module Dina
2
2
  class Version
3
3
 
4
4
  MAJOR = 2
5
- MINOR = 2
6
- PATCH = 1
5
+ MINOR = 3
6
+ PATCH = 0
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: 2.2.1.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