mumukit-auth 7.2.0 → 7.3.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: 58505a2138bb6e192ab493e268f4e6d2553bace07c0e32910d6f0f0dc64ad3d5
4
- data.tar.gz: 714d15dcc9b2d37efc17479459c45308c3d01d7e36d941784a15f0859cea42e4
3
+ metadata.gz: fc33ea36ba661f8af56c6e9d561f159a458a5713fda79d3385fa06ab0c5ec447
4
+ data.tar.gz: 9f2b047960c4693402380ab3b47bcd7a75681b70f4c093dc7fe41b362850e041
5
5
  SHA512:
6
- metadata.gz: 1b95000d71d18d3222103bef492dfe0c933f92f4116c6ffdc6d7cd2947863616e9bff8437f97d58ddb9bc106c7f436516977884c5c2ed49265bd03502081925f
7
- data.tar.gz: 863d6d8233f62803b71dba8f943fc7c21e89a8200b01552177dcc0d09e868d2ecc05695ad345eb402029d7980cc515969b98638957e4542c52a8c09633e05a1e
6
+ metadata.gz: 8d0c7fffba49883a57c4434317f35ce285aefabd238c0bbf51b438e75f65650261194bed363223ab1ac0341c28567f57c088586208a1b0be106a97e680c767a7
7
+ data.tar.gz: b5632ff874c87f3b61d800ef06a87f9e72cb92a0ea417865440149899191444a44a613a358016c7b984fbd298d9086331c050567f76dce4c69d8fba6494378a5
@@ -46,6 +46,9 @@ module Mumukit::Auth
46
46
  class Janitor < Role
47
47
  parent :owner
48
48
  end
49
+ class Moderator < Role
50
+ parent :owner
51
+ end
49
52
  class Owner < Role
50
53
  parent nil
51
54
 
@@ -1,6 +1,6 @@
1
1
  module Mumukit::Auth
2
2
  module Roles
3
- ROLES = [:student, :teacher, :headmaster, :writer, :editor, :janitor, :owner]
3
+ ROLES = [:student, :teacher, :headmaster, :writer, :editor, :janitor, :moderator, :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.2.0'
3
+ VERSION = '7.3.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.2.0
4
+ version: 7.3.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: 2018-01-15 00:00:00.000000000 Z
11
+ date: 2018-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  requirements: []
122
122
  rubyforge_project:
123
- rubygems_version: 2.7.4
123
+ rubygems_version: 2.7.7
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: Library for authorizing mumuki requests