clonk 2.2.2 → 2.2.3

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: 005d9822d215269930a55e7a67c9ce80c7d1473508063731a066ab4cc25cf0ec
4
- data.tar.gz: 8bd998c79e5d931da33a3fda99c57c7265c6ae7de1f35df0cb6febb66fe18e82
3
+ metadata.gz: 78b1886b0dd69701b0228426cb6839cfaa7e35cc81f650f6b835c0f8f35b4885
4
+ data.tar.gz: 644eb9f10bc9c7656f69ecb7d5428637f0a143682eb9240c84948abb4b31cb39
5
5
  SHA512:
6
- metadata.gz: f690a8ae9e7b121e64c5a56bcefeafbedf351639a8b8a1dedc0d97a025776147d621b4e583eef361c7f3818f28062cc63acf1f8907f56a1e5800adbb1990e946
7
- data.tar.gz: 535401043cdfb19734b1417d35dfec26b9641b4241eba3f12fc40f9a068a5742012b3f366b92f1e3425bf48093203f1021e937a71ca097a710e790863d42107d
6
+ metadata.gz: 28000df549e4d2e3d29d79693e33b05027dbd0c98a8806d493c03e0386feeb70a60f509afa757dd6fc94ccbb10feff8131bf7ff28e0fb261164f248f8f2ac9d3
7
+ data.tar.gz: a4644a982ec980a245940c70b2b906c8844693d2b132944ed3df50e6f9f95d11d62e4076ac74ecc754db173e25d59b3147454dd2d1cff3a50b1a2015ba3e5c04
@@ -155,6 +155,7 @@ module Clonk
155
155
  def url_for(target, prefix: 'permision/scope')
156
156
  class_name = target.class.name.split('::').last.downcase
157
157
  url_for_permission(target, prefix: prefix) if class_name == 'permission'
158
+ return "#{realm_admin_root(target)}" if class_name == 'realm'
158
159
  "#{realm_admin_root}/#{class_name}s/#{target.id}"
159
160
  end
160
161
 
data/lib/clonk/realm.rb CHANGED
@@ -5,6 +5,10 @@ module Clonk
5
5
  class Realm
6
6
  attr_reader :name
7
7
 
8
+ def id
9
+ name
10
+ end
11
+
8
12
  def initialize(realm_response)
9
13
  @name = realm_response['realm'] || realm_response['id']
10
14
  end
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.2
4
+ version: 2.2.3
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-04 00:00:00.000000000 Z
11
+ date: 2019-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday