clonk 2.2.3 → 2.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/clonk/connection.rb +1 -0
- data/lib/clonk/realm.rb +4 -4
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83166e5585bafb0672ed312829a8c9db311630e2bc0f6804ac7674cc2e3d2a3b
|
4
|
+
data.tar.gz: 0e6f59b3ed9b0058b25bf0d2fdc49f11b62f2092e3dbe5753d108fbd6958149c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2f4a73b8009a9e3cea470ae4144928cd7e52af106ca791d3eae34f824a2c886a5bf49dbf1e3a00d21de550a96d0b10727526114b18bb34d5be556cfe27efe3d
|
7
|
+
data.tar.gz: b223bf0b285b60feec0a664c05dcf452edb41770701f1da95e707522bb3fec0782cb33598b2e20e406b2438b4738d5940b5bbe204c65a1f8600a2702f47f020f
|
data/lib/clonk/connection.rb
CHANGED
@@ -65,6 +65,7 @@ module Clonk
|
|
65
65
|
class_name = object.class.name.split('::').last.downcase + 's'
|
66
66
|
class_name = 'roles-by-id' if class_name == 'roles'
|
67
67
|
route = realm_admin_root + "/#{class_name}/#{object.id}"
|
68
|
+
return parsed_response(path: url_fo(object)) if class_name == 'realm'
|
68
69
|
parsed_response(path: route)
|
69
70
|
end
|
70
71
|
|
data/lib/clonk/realm.rb
CHANGED
@@ -5,13 +5,13 @@ module Clonk
|
|
5
5
|
class Realm
|
6
6
|
attr_reader :name
|
7
7
|
|
8
|
-
def id
|
9
|
-
name
|
10
|
-
end
|
11
|
-
|
12
8
|
def initialize(realm_response)
|
13
9
|
@name = realm_response['realm'] || realm_response['id']
|
14
10
|
end
|
11
|
+
|
12
|
+
def id
|
13
|
+
name
|
14
|
+
end
|
15
15
|
end
|
16
16
|
|
17
17
|
# Defines a connection to SSO.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clonk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Fish
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -86,8 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: '0'
|
88
88
|
requirements: []
|
89
|
-
|
90
|
-
rubygems_version: 2.7.7
|
89
|
+
rubygems_version: 3.0.2
|
91
90
|
signing_key:
|
92
91
|
specification_version: 4
|
93
92
|
summary: Keycloak/RHSSO admin API client
|