the_role 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +1 -1
- data/README.md +11 -0
- data/app/controllers/the_role_controller.rb +1 -1
- data/lib/the_role/version.rb +1 -1
- data/the_role.gemspec +2 -2
- metadata +4 -4
data/.travis.yml
CHANGED
@@ -2,4 +2,4 @@ language: ruby
|
|
2
2
|
rvm:
|
3
3
|
- 1.9.3
|
4
4
|
gemfile: spec/the_role_on_devise/Gemfile
|
5
|
-
script: "cd spec/the_role_on_devise && bin/rake db:drop RAILS_ENV=test && bin/rake db:create RAILS_ENV=test && bin/rake db:migrate RAILS_ENV=test && bundle exec rspec"
|
5
|
+
script: "cd spec/the_role_on_devise && bin/rake db:drop RAILS_ENV=test && bin/rake db:create RAILS_ENV=test && bin/rake db:migrate RAILS_ENV=test && bundle exec rspec --format documentation"
|
data/README.md
CHANGED
@@ -183,6 +183,17 @@ class PagesController < ApplicationController
|
|
183
183
|
end
|
184
184
|
```
|
185
185
|
|
186
|
+
## Configuration
|
187
|
+
|
188
|
+
config/initializers/the_role.rb
|
189
|
+
|
190
|
+
```ruby
|
191
|
+
TheRole.configure do |config|
|
192
|
+
config.layout = :application
|
193
|
+
config.default_user_role = :user
|
194
|
+
end
|
195
|
+
```
|
196
|
+
|
186
197
|
## Understanding
|
187
198
|
|
188
199
|
### Using with Views
|
data/lib/the_role/version.rb
CHANGED
data/the_role.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.authors = ["Ilya N. Zykin [the-teacher]"]
|
9
9
|
s.email = ["zykin-ilya@ya.ru"]
|
10
10
|
s.homepage = "https://github.com/the-teacher/the_role"
|
11
|
-
s.summary = %q{Authorization lib for Rails
|
12
|
-
s.description = %q{Authorization lib for Rails
|
11
|
+
s.summary = %q{Authorization lib for Rails 4}
|
12
|
+
s.description = %q{Authorization lib for Rails 4 with Web Interface}
|
13
13
|
|
14
14
|
s.rubyforge_project = "the_role"
|
15
15
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: the_role
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: haml
|
@@ -27,7 +27,7 @@ dependencies:
|
|
27
27
|
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0'
|
30
|
-
description: Authorization lib for Rails
|
30
|
+
description: Authorization lib for Rails 4 with Web Interface
|
31
31
|
email:
|
32
32
|
- zykin-ilya@ya.ru
|
33
33
|
executables: []
|
@@ -96,5 +96,5 @@ rubyforge_project: the_role
|
|
96
96
|
rubygems_version: 1.8.25
|
97
97
|
signing_key:
|
98
98
|
specification_version: 3
|
99
|
-
summary: Authorization lib for Rails
|
99
|
+
summary: Authorization lib for Rails 4
|
100
100
|
test_files: []
|