dina 1.3.4.0 → 1.3.6.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: 160bb1cad90fec5edd805e774e344e0cf316fc2b3c64865a127a067521bd3a04
4
- data.tar.gz: 413d7a21ce4f362a5a7abdfa8d9442e5b349b9766cd0cdef150458adb28f4da5
3
+ metadata.gz: 6728c019ebcabfe2b5cc44ed86e21b554abb35610a827244327c36b44da848c3
4
+ data.tar.gz: 296327cca607a8933f2019a7909e150e7a1fdcfa61974eb9b0e7780a94cbb1e0
5
5
  SHA512:
6
- metadata.gz: c681eedec4374f64c3c3e834f807168416f00483b0ed7668c03808f5f69b7f2e81b60057b4aeb51c7dedd2896bdb04e2cc4a1360195c5e7b122eb33a8b3f9d8a
7
- data.tar.gz: 1efa72bb5e4c5e99a6dc4d07e46b6dce4410fc6d6b55d1e158dbd05f1daaacfedac4e1b3dcec8b1536ba8a9cbf50b15e2d4b2213a32b76f01fe8ec1c5ae89769
6
+ metadata.gz: 53df12106db16f66b010495187fe52260fb77657177837bf43d0b355908d1691cfd4a62fa7cd29e5770312e228007bbb03e7d5c3ed1b2dfffb83f23d5431c734
7
+ data.tar.gz: 1ac375737f4c259807519964f81a27dab6989850d239761136df018c14ab866056a692e7dda74d4c55085e84184886384afb510e8742c3003938656adf847d10
@@ -52,7 +52,7 @@ module Dina
52
52
  Keycloak.auth_server_url = config.authorization_url
53
53
  Keycloak.realm = config.realm
54
54
 
55
- if opts[:verify_ssl] && opts[:verify_ssl] == false
55
+ if opts.key?(:verify_ssl) && opts[:verify_ssl] == false
56
56
  Dina::BaseModel.connection_options[:ssl] = { verify: false }
57
57
  end
58
58
 
@@ -1,13 +1,12 @@
1
- # Keycloak Client depends on RestClient & so verifying SSL must be accommodate here
1
+ # Keycloak Client depends on RestClient & so verifying SSL must be accommodated here
2
+ # Not a great solution, ideally should be initialized prior to calling Keycloak::Client.get_token
2
3
 
3
4
  module RestClient
4
5
  class Request
5
6
  orig_initialize = instance_method(:initialize)
6
7
 
7
8
  define_method(:initialize) do |args|
8
- if Dina.config.verify_ssl == false
9
- args[:verify_ssl] = false
10
- end
9
+ args[:verify_ssl] = false
11
10
  orig_initialize.bind(self).(args)
12
11
  end
13
12
  end
data/lib/dina/version.rb CHANGED
@@ -3,7 +3,7 @@ module Dina
3
3
 
4
4
  MAJOR = 1
5
5
  MINOR = 3
6
- PATCH = 4
6
+ PATCH = 6
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: 1.3.4.0
4
+ version: 1.3.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David P. Shorthouse