keycloak-ruby-client 0.0.12 → 0.0.13

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: 9878d43fb302d62853eb782fc3383754f91868b0
4
- data.tar.gz: 35a0684508c797d32cdce9cab24a74d11f8a3520
3
+ metadata.gz: cad9329591793b920ce448c860cd14d8f08dde82
4
+ data.tar.gz: b0fab2a0faa37555449701e1917ff58e6e8b6c2a
5
5
  SHA512:
6
- metadata.gz: daea33df421c05d31d11e4d6fe8ee778de4a3ee1b4d6390ddd76d50e7cc93b5cb75eae70b12e2e576edc1a7def3c0ab7391169f4f41e895b11ff1c9e1dd833f8
7
- data.tar.gz: 49940f216bba9ec05d1ddfd42664f023c5bc03bf4c3802276b0ca40dc536c8fedc2ce259cd0786c2f83752b9e5f73a345c42ca861372cb51bc4bf8a74174ba67
6
+ metadata.gz: 8222c591f83d24f86e3e72d9d65601909325d08df60977483fe619d97711f096d096bf296a8a0c4a10a4057f9c07a26a482d7a60ca59eee50c8f71c6b93638fe
7
+ data.tar.gz: '07964b5edd92032897c98558093c923a864bf35f129755cc91868c1fb3a038e3a78f7aea524fa5767f8279aa4fdb59b35ff7665a5225ea805345fb9188cea7e6'
@@ -41,7 +41,7 @@ module Keycloak
41
41
  def method_missing(name, *args, &block)
42
42
  regex = /^has_(.*?)_role\?$/
43
43
  if name.match?(regex)
44
- return name.match(regex)[1]
44
+ return has_role?(name.match(regex)[1])
45
45
  end
46
46
 
47
47
  super
@@ -1,6 +1,5 @@
1
1
  module Keycloak
2
2
  module API
3
- # see https://www.keycloak.org/docs-api/6.0/rest-api/index.html#_users_resource for params details
4
3
  module UserResources
5
4
  extend ActiveSupport::Concern
6
5
  include Concerns::APIUtil
@@ -1,3 +1,3 @@
1
1
  module Keycloak
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
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.12
4
+ version: 0.0.13
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-09-05 00:00:00.000000000 Z
11
+ date: 2019-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails