the_role 1.6.5 → 1.6.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +7 -2
- data/app/views/admin/roles/_role.html.haml +2 -2
- data/app/views/layouts/the_role.html.haml +2 -0
- data/config/locales/en.yml +1 -0
- data/config/locales/ru.yml +36 -37
- data/lib/the_role/version.rb +1 -1
- metadata +14 -14
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# gem 'the_role' (
|
1
|
+
# gem 'the_role' (beta v0.1)
|
2
2
|
|
3
3
|
| Bye bye CanCan, I got The Role! | Description |
|
4
4
|
|:------------- |:-------------|
|
@@ -6,6 +6,8 @@
|
|
6
6
|
|
7
7
|
### GUI
|
8
8
|
|
9
|
+
Twitter Bootstrap dependencies will be removed in future. It's just for quick start.
|
10
|
+
|
9
11
|
| TheRole management web interface => localhost:3000/admin/roles |
|
10
12
|
|:-------------:|
|
11
13
|
|![TheRole](https://github.com/the-teacher/the_role/raw/master/pic.png)|
|
@@ -22,8 +24,10 @@ http://rubygems.org/gems/the_role
|
|
22
24
|
|
23
25
|
[Integration with Sorcery](https://github.com/the-teacher/the_role/wiki/Integration-with-Sorcery)
|
24
26
|
|
25
|
-
|
27
|
+
## Want to help or improve this gem?
|
26
28
|
|
29
|
+
* Don't say to Ryan Bates about this project :) <3
|
30
|
+
* Say to your friends about this project
|
27
31
|
* I need for your feedback and issues
|
28
32
|
* [How to start development process](https://github.com/the-teacher/the_role/wiki/Want-to-improve-this-gem%3F)
|
29
33
|
|
@@ -370,6 +374,7 @@ new_role_hash = {
|
|
370
374
|
|
371
375
|
### Changelog
|
372
376
|
|
377
|
+
* 1.6.6 - Ru locale, localization (beta 0.1)
|
373
378
|
* 1.6.5 - has_section?, fixes, tests (alpha 0.3)
|
374
379
|
* 1.6.4 - En locale (alpha 0.2)
|
375
380
|
* 1.6.3 - notifications
|
@@ -36,13 +36,13 @@
|
|
36
36
|
%li.divider
|
37
37
|
%li.error= link_to t('.delete_rule'), destroy_rule_admin_role_section_path(role, section, :name => rule), :method => :delete, :confirm => t('.rule_delete_confirm')
|
38
38
|
|
39
|
-
%h4
|
39
|
+
%h4= t '.create_section'
|
40
40
|
|
41
41
|
= form_tag admin_role_sections_path(role), :class => 'well form-inline' do |f|
|
42
42
|
= text_field_tag :section_name, '', :class => 'input-xlarge', :placeholder => t('.new_section_placeholder')
|
43
43
|
= submit_tag t('.create_section'), :class => :btn
|
44
44
|
|
45
|
-
%h4
|
45
|
+
%h4= t '.create_rule'
|
46
46
|
|
47
47
|
= form_tag create_rule_admin_role_sections_path(role), :class => 'well form-inline' do |f|
|
48
48
|
%select.span3{ :name => :section_name }
|
data/config/locales/en.yml
CHANGED
data/config/locales/ru.yml
CHANGED
@@ -1,43 +1,42 @@
|
|
1
|
-
# Sample localization file for English. Add more files in this directory for other locales.
|
2
|
-
# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
|
3
1
|
ru:
|
4
2
|
the_role:
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
3
|
+
role_created: Роль создана
|
4
|
+
role_updated: Роль обновлена
|
5
|
+
role_deleted: Роль удалена
|
6
|
+
section_created: Раздел создан
|
7
|
+
section_not_created: Раздел не создан
|
8
|
+
section_rule_created: Правило создано
|
9
|
+
section_rule_not_created: Правило не создано
|
10
|
+
section_rule_on: Правило доступа включено
|
11
|
+
section_rule_off: Правило доступа отключено
|
12
|
+
state_not_changed: Состояние правила не изменилось
|
13
|
+
section_deleted: Раздел удален
|
14
|
+
section_not_deleted: Раздел не удален
|
15
|
+
section_rule_deleted: Правило удалено
|
16
|
+
section_rule_not_deleted: Правило не удалено
|
17
|
+
|
18
18
|
admin:
|
19
19
|
roles:
|
20
|
-
index:
|
21
|
-
list: Список ролей
|
22
|
-
delete: 'Удалить роль '
|
23
|
-
new: Создать новую роль
|
24
|
-
edit:
|
25
|
-
title: Редактирование роли
|
26
|
-
back: '← К списку ролей'
|
27
|
-
name: 'Название роли — '
|
28
|
-
create_section: Создать правовую группу
|
29
|
-
create_access_rule: Создать политику доступа
|
30
|
-
create_rule: Создать политику
|
31
|
-
section_needs: Создайте хотя бы одну правовую группу
|
32
|
-
update: Обновить
|
33
|
-
form:
|
34
|
-
destroy_section_confirm: Удалить правовую группу?
|
35
|
-
empty: Нет ни одной правовой группы
|
36
|
-
delete_rule_confirm: Удалить политику доступа?
|
37
|
-
delete: Удалить
|
38
20
|
new:
|
39
|
-
back: '← К списку ролей'
|
40
21
|
create: Создать новую роль
|
41
|
-
name: Имя роли (
|
42
|
-
title:
|
43
|
-
|
22
|
+
name: Имя роли (строка из латинских символов + нижнее подчеркивание)
|
23
|
+
title: Заголовок роли
|
24
|
+
description: Описание роли
|
25
|
+
role:
|
26
|
+
role_name: 'Имя роли:'
|
27
|
+
title: 'Заголовок:'
|
28
|
+
role_description: 'Описание:'
|
29
|
+
delete_section: Удалить раздел
|
30
|
+
section_delete_confirm: 'Вы хотите удалить раздел?'
|
31
|
+
rule_delete_confirm: 'Вы хотите удалить правило?'
|
32
|
+
enable: Включено
|
33
|
+
disable: Отключено
|
34
|
+
delete_rule: Удалить правило
|
35
|
+
new_section_placeholder: Имя нового раздела
|
36
|
+
create_section: Создать раздел
|
37
|
+
new_rule_placeholder: Имя нового правила
|
38
|
+
create_rule: Создать правило
|
39
|
+
sidebar:
|
40
|
+
roles_list: Список ролей
|
41
|
+
new_role: Создать новое праивло
|
42
|
+
delete_role_confirm: 'Удалить роль? Это может быть опасно! Уверены?'
|
data/lib/the_role/version.rb
CHANGED
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: 1.6.
|
4
|
+
version: 1.6.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: haml
|
16
|
-
requirement: &
|
16
|
+
requirement: &18094160 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *18094160
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sass
|
27
|
-
requirement: &
|
27
|
+
requirement: &18093720 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *18093720
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: sass-rails
|
38
|
-
requirement: &
|
38
|
+
requirement: &18093280 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *18093280
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: coffee-rails
|
49
|
-
requirement: &
|
49
|
+
requirement: &18092820 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *18092820
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: therubyracer
|
60
|
-
requirement: &
|
60
|
+
requirement: &18092340 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *18092340
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: less-rails
|
71
|
-
requirement: &
|
71
|
+
requirement: &18091820 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *18091820
|
80
80
|
description: Authorization lib for Rails 3 with Web Interface, aka CanCan killer
|
81
81
|
email:
|
82
82
|
- zykin-ilya@ya.ru
|