the_role 1.6.6 → 1.6.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -1
- data/config/locales/es.yml +37 -36
- data/lib/the_role/hash.rb +2 -2
- data/lib/the_role/version.rb +1 -1
- metadata +13 -13
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# gem 'the_role' (beta v0.
|
1
|
+
# gem 'the_role' (beta v0.2)
|
2
2
|
|
3
3
|
| Bye bye CanCan, I got The Role! | Description |
|
4
4
|
|:------------- |:-------------|
|
@@ -374,6 +374,7 @@ new_role_hash = {
|
|
374
374
|
|
375
375
|
### Changelog
|
376
376
|
|
377
|
+
* 1.6.7 - Es locale (beta 0.2)
|
377
378
|
* 1.6.6 - Ru locale, localization (beta 0.1)
|
378
379
|
* 1.6.5 - has_section?, fixes, tests (alpha 0.3)
|
379
380
|
* 1.6.4 - En locale (alpha 0.2)
|
data/config/locales/es.yml
CHANGED
@@ -1,41 +1,42 @@
|
|
1
1
|
es:
|
2
2
|
the_role:
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
3
|
+
role_created: El papel de la establecida
|
4
|
+
role_updated: El papel de la actualización
|
5
|
+
role_deleted: El papel de la eliminada
|
6
|
+
section_created: Sección establecida
|
7
|
+
section_not_created: Sección no se crea
|
8
|
+
section_rule_created: La regla fue creada
|
9
|
+
section_rule_not_created: La regla no se crea
|
10
|
+
section_rule_on: Regla de acceso incluye
|
11
|
+
section_rule_off: Acceso para discapacitados Regla
|
12
|
+
state_not_changed: Las reglas del estado no se modifican
|
13
|
+
section_deleted: una sección eliminada
|
14
|
+
section_not_deleted: Esta sección no se quita
|
15
|
+
section_rule_deleted: La regla se retira
|
16
|
+
section_rule_not_deleted: La regla se retira
|
17
|
+
|
16
18
|
admin:
|
17
19
|
roles:
|
18
|
-
index:
|
19
|
-
list: lista de roles
|
20
|
-
delete: 'Borrar Rol'
|
21
|
-
new: Crear un nuevo rol
|
22
|
-
edit:
|
23
|
-
title: Editar rol
|
24
|
-
back: '← A la lista de roles'
|
25
|
-
name: 'Nombre del rol -'
|
26
|
-
create_section: "Crear una Sección"
|
27
|
-
create_access_rule: Crear una regla de acceso
|
28
|
-
create_rule: Nueva Regla
|
29
|
-
section_needs: "Crear al menos una sección"
|
30
|
-
update: Actualizar
|
31
|
-
form:
|
32
|
-
destroy_section_confirm: "¿Eliminar una sección de roles?"
|
33
|
-
empty: "No hay una sección de roles"
|
34
|
-
delete_rule_confirm: ¿Eliminar la regla de acceso?
|
35
|
-
delete: Eliminar
|
36
20
|
new:
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
21
|
+
create: Crear un nuevo papel
|
22
|
+
name: El nombre de la función (una cadena de caracteres latinos + subrayado)
|
23
|
+
title: el papel del título
|
24
|
+
description: El papel de la
|
25
|
+
role:
|
26
|
+
role_name: 'Nombre del rol'
|
27
|
+
title: 'Título'
|
28
|
+
role_description: 'Descripción'
|
29
|
+
delete_section: Suprimir sección
|
30
|
+
section_delete_confirm: "¿Quiere borrar la partición?"
|
31
|
+
rule_delete_confirm: "¿Quieres eliminar una regla?"
|
32
|
+
enable: Habilitar
|
33
|
+
disable: Desactiva
|
34
|
+
delete_rule: Eliminar una regla
|
35
|
+
new_section_placeholder: Nombre de un nuevo tema
|
36
|
+
create_section: Crear una partición
|
37
|
+
new_rule_placeholder: El nombre de la nueva norma
|
38
|
+
create_rule: Nueva regla
|
39
|
+
sidebar:
|
40
|
+
roles_list: Lista de funciones
|
41
|
+
new_role: Crear una nueva praivlo
|
42
|
+
delete_role_confirm: "Retire el papel? Puede ser peligroso! ¿Está seguro?"
|
data/lib/the_role/hash.rb
CHANGED
@@ -24,7 +24,7 @@ class Hash
|
|
24
24
|
end
|
25
25
|
self
|
26
26
|
end
|
27
|
-
puts "TheRole
|
27
|
+
puts "[TheRole] RAILS 4 like method **deep_transform_keys** mixed to HASH class"
|
28
28
|
end
|
29
29
|
|
30
30
|
# RAILS 4 like methods for RAILS 3
|
@@ -37,7 +37,7 @@ class Hash
|
|
37
37
|
def deep_stringify_keys!
|
38
38
|
deep_transform_keys!{ |key| key.to_s }
|
39
39
|
end
|
40
|
-
puts "TheRole
|
40
|
+
puts "[TheRole] RAILS 4 like method **deep_stringify_keys** mixed to HASH class"
|
41
41
|
end
|
42
42
|
|
43
43
|
# Potential compatibility problem with RAILS_VERSION > 4.0
|
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.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ 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: &6144180 !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: *6144180
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sass
|
27
|
-
requirement: &
|
27
|
+
requirement: &6143740 !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: *6143740
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: sass-rails
|
38
|
-
requirement: &
|
38
|
+
requirement: &6143300 !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: *6143300
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: coffee-rails
|
49
|
-
requirement: &
|
49
|
+
requirement: &6142860 !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: *6142860
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: therubyracer
|
60
|
-
requirement: &
|
60
|
+
requirement: &6142420 !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: *6142420
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: less-rails
|
71
|
-
requirement: &
|
71
|
+
requirement: &6141900 !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: *6141900
|
80
80
|
description: Authorization lib for Rails 3 with Web Interface, aka CanCan killer
|
81
81
|
email:
|
82
82
|
- zykin-ilya@ya.ru
|