├── .github ├── workflows │ └── matrix.yml └── CONTRIBUTORS.md ├── Rakefile ├── lib └── the_role.rb ├── Gemfile ├── .gitignore ├── the_role.gemspec └── README.md /.github/workflows/matrix.yml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- 1 | require "bundler/gem_tasks" 2 | -------------------------------------------------------------------------------- /lib/the_role.rb: -------------------------------------------------------------------------------- 1 | require 'the_role_api' 2 | require 'the_role_management_panel' 3 | 4 | module TheRole; end 5 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source "http://rubygems.org" 2 | 3 | # Specify your gem's dependencies in the_role.gemspec 4 | gemspec 5 | 6 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.gem 2 | *.rbc 3 | 4 | .bundle 5 | .config 6 | .yardoc 7 | 8 | .rvmrc 9 | .ruby-gemset 10 | .ruby-version 11 | 12 | _yardoc 13 | coverage 14 | Gemfile.lock 15 | InstalledFiles 16 | lib/bundler/man 17 | spec/dummy_app/public/assets 18 | 19 | tmp 20 | doc 21 | pkg 22 | rdoc 23 | 24 | test/tmp 25 | spec/reports 26 | test/version_tmp 27 | 28 | .DS_Store 29 | .LSOverride 30 | .AppleDouble -------------------------------------------------------------------------------- /.github/CONTRIBUTORS.md: -------------------------------------------------------------------------------- 1 | # List of Contributors 2 | 3 | These people helped with development and testing of the project 4 | 5 | - [@o-200](https://github.com/o-200) 6 | - [@sk8higher](https://github.com/sk8higher) 7 | - [@Alex808r](https://github.com/Alex808r) 8 | - [@ekatebenkova](https://github.com/ekatebenkova) 9 | - @Pavelandr1207 10 | 11 | Also see other contributors: 12 | 13 | - https://github.com/the-teacher/the_role/graphs/contributors 14 | -------------------------------------------------------------------------------- /the_role.gemspec: -------------------------------------------------------------------------------- 1 | # -*- encoding: utf-8 -*- 2 | $:.push File.expand_path("../lib", __FILE__) 3 | 4 | module TheRole 5 | VERSION = "3.9.0" 6 | end 7 | 8 | Gem::Specification.new do |s| 9 | s.name = "the_role" 10 | s.version = TheRole::VERSION 11 | s.authors = ["Ilya N. Zykin [the-teacher]"] 12 | s.email = ["zykin-ilya@ya.ru"] 13 | s.homepage = "https://github.com/the-teacher/the_role" 14 | s.summary = %q{Authorization for Rails} 15 | s.description = %q{Authorization gem for Ruby on Rails with Management Panel} 16 | 17 | s.files = `git ls-files`.split("\n").select{ |file_name| !(file_name =~ /^spec/) } 18 | s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") 19 | s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } 20 | s.require_paths = ["lib"] 21 | 22 | s.add_runtime_dependency 'the_role_api', '3.9.0' 23 | s.add_runtime_dependency 'the_role_management_panel', '3.8.3' 24 | end 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
6 | Authorization gem for Ruby on Rails 7 | with Management Panel 8 |
9 | 10 |
11 |
12 |
15 | Semantic. Flexible. Lightweight 16 |
17 | 18 | 25 | 26 |28 | Strongly recommended to upgrade from TheRole2 to TheRole3. Please, do it ASAP. 29 |
30 |
37 |
38 |
| 54 | http://localhost:3000/admin/roles 55 | | 56 |
59 |
60 | |
61 |
69 |
83 |
84 |
89 |
90 |
95 |
96 |
101 |
102 |
107 |
108 |
113 |
114 |
125 |
|
138 |
139 |
140 |
|
153 |