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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78b1886b0dd69701b0228426cb6839cfaa7e35cc81f650f6b835c0f8f35b4885
4
- data.tar.gz: 644eb9f10bc9c7656f69ecb7d5428637f0a143682eb9240c84948abb4b31cb39
3
+ metadata.gz: 83166e5585bafb0672ed312829a8c9db311630e2bc0f6804ac7674cc2e3d2a3b
4
+ data.tar.gz: 0e6f59b3ed9b0058b25bf0d2fdc49f11b62f2092e3dbe5753d108fbd6958149c
5
5
  SHA512:
6
- metadata.gz: 28000df549e4d2e3d29d79693e33b05027dbd0c98a8806d493c03e0386feeb70a60f509afa757dd6fc94ccbb10feff8131bf7ff28e0fb261164f248f8f2ac9d3
7
- data.tar.gz: a4644a982ec980a245940c70b2b906c8844693d2b132944ed3df50e6f9f95d11d62e4076ac74ecc754db173e25d59b3147454dd2d1cff3a50b1a2015ba3e5c04
6
+ metadata.gz: b2f4a73b8009a9e3cea470ae4144928cd7e52af106ca791d3eae34f824a2c886a5bf49dbf1e3a00d21de550a96d0b10727526114b18bb34d5be556cfe27efe3d
7
+ data.tar.gz: b223bf0b285b60feec0a664c05dcf452edb41770701f1da95e707522bb3fec0782cb33598b2e20e406b2438b4738d5940b5bbe204c65a1f8600a2702f47f020f
@@ -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
 
@@ -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.3
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-09 00:00:00.000000000 Z
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
- rubyforge_project:
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