mumukit-auth 7.10.0 → 7.11.0

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: 517de6c84d1b25e0b31a83da4dbf8f0d5c234eb05c9c23476d2e721fa19b6049
4
- data.tar.gz: 3e2ae789e5dff9857e63f298c126fffe69a815b63649fdf1b7346c18f583e29a
3
+ metadata.gz: 77c87545b48934c4545514e7596756d0e9bdd91837c8dc671f9e8a8fd6262752
4
+ data.tar.gz: dbb8db587aa6eb02dd0baa708cfd65096315faa191ff47b057c65ec35cc50cd3
5
5
  SHA512:
6
- metadata.gz: c28eac074b926567be11f09700623e3fdbd9eb1379ba22c794f87f3b06fd901fb5bb9cb436e56fbbb0985a55bb708651a9632003e4ea3849cb43408d61038717
7
- data.tar.gz: 253cc4b87c062b9e97e4ba350fbcef2922c198c396cea345675b490532d7b1528ade0d257cc872cc663cf47cd374b9338a5c3a656b62daaea298bce5c7927892
6
+ metadata.gz: 870916a0477ad23ebd5ae68ed5649f91de95e710309cc846509a74541bdebce734ec715c87c1d016944d5b0772e826031a41d4673465ef6752d38a8358b688ad
7
+ data.tar.gz: '019eacadcfe2f1c978e4d208048fa74b48a7663dd05e85ea6046b2f25f0a6b11a53562f4af0b24f0098d0398b5700be6e18d7931cc0729cca27b0292c732145c'
@@ -28,6 +28,9 @@ module Mumukit::Auth
28
28
  @roles[role] ||= "Mumukit::Auth::Role::#{role.to_s.camelize}".constantize.new(role.to_sym)
29
29
  end
30
30
 
31
+ class ExStudent < Role
32
+ parent :student
33
+ end
31
34
  class Student < Role
32
35
  parent :teacher
33
36
  end
@@ -1,6 +1,6 @@
1
1
  module Mumukit::Auth
2
2
  module Roles
3
- ROLES = [:student, :teacher, :headmaster, :writer, :editor, :janitor, :moderator, :forum_supervisor, :admin, :owner]
3
+ ROLES = [:ex_student, :student, :teacher, :headmaster, :writer, :editor, :janitor, :moderator, :forum_supervisor, :admin, :owner]
4
4
 
5
5
  ROLES.each do |role|
6
6
  define_method "#{role}?" do |scope = Mumukit::Auth::Slug.any|
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Auth
3
- VERSION = '7.10.0'
3
+ VERSION = '7.11.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumukit-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.10.0
4
+ version: 7.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-20 00:00:00.000000000 Z
11
+ date: 2021-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler