keycloak-ruby-client 0.0.10 → 0.0.11

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
  SHA1:
3
- metadata.gz: a8d34f9a8a043e0dab94b853945713d98b5e84e1
4
- data.tar.gz: b2db73176d2c8db05167a90efc59a9d78aff2d4d
3
+ metadata.gz: 13f981a3377badd726b4a4869b71450891a14948
4
+ data.tar.gz: 5d53ca4983508dc7f18961fd2fc453d8cf9ed32d
5
5
  SHA512:
6
- metadata.gz: 546abf23314d14cb70e6e07c0ab8ec98843e3da35f691fbc936e2b0090ca1c4b06b1ec8bf97f1eab958991400b6b1eeee601896f812f1c00c804ccb39e9b7402
7
- data.tar.gz: 54c2a8ffe5eb1cec83378cd36f3cdf4c0fd9bda51ce6c22f417f897df32684d2bab9e67855fc46295d0d35d8ef0994346aae107ccb4540f68a6f3b831da590c3
6
+ metadata.gz: 9056dde4936b9e36cd54b0a0c4c9ebe268020b6448f5fa5936740164cb3c278ec4717c64935c5324b80dcc77858970676357ecf17ce3b31a1a1ab7a66bbc8c2a
7
+ data.tar.gz: 5ff7a88bed82b600f215b323d06f7db2bf91e6bd61e7585192e7f4d38a3a83ae65f0a1b3a14843be56c8f5a09148fe302f2e55b6eaca9aad7ed78df899d6dc53
data/bin/console CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "keycloak/ruby/client"
4
+ require "keycloak"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -62,7 +62,9 @@ module Keycloak
62
62
 
63
63
  def initialize(payload = {})
64
64
  payload.each do |key, value|
65
- send("#{key}=", value) if self.class.attributes.include?(key.to_sym)
65
+ if self.class.attributes.include?(key.to_sym) || self.class.attributes.include?(key.to_s.camelize(:lower).to_sym)
66
+ send("#{key}=", value)
67
+ end
66
68
  end
67
69
  end
68
70
 
@@ -1,3 +1,3 @@
1
1
  module Keycloak
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keycloak-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fuxin Hao
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-08-29 00:00:00.000000000 Z
11
+ date: 2019-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails