the_role_api 3.8.3 → 3.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/concerns/the_role/controller.rb +1 -1
- data/app/models/_templates_/role.rb +1 -1
- data/config/locales/fr.the_role.yml +1 -1
- data/config/locales/hindi.the_role.yml +3 -0
- data/db/migrate/20111025025129_create_roles.rb +1 -1
- data/the_role_api.gemspec +3 -3
- metadata +11 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b6032201cdd117c17819dcb4ca6e326b07bf3a0
|
4
|
+
data.tar.gz: 8318517235a97fd66abeb95408fdf1fd77aacb53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 141018227b87391fca360d5b82edd57943f5ee7175fcb9fcebe2f6ac47340fc97b79cf9b45c36f8355cac6fb87f0cfc1ac54818e619ade48511e8402ce2e3149
|
7
|
+
data.tar.gz: 13ea7e93e9969b7fccd7b91034585a14a25b5c12acbf3ab39b6c29097ebfc3e2805fb96e785c1ec16adb4bd360db0a1ae25de784fa0e15e33f7e6eba0bdd468e
|
@@ -48,7 +48,7 @@ module TheRole
|
|
48
48
|
else
|
49
49
|
# When the user paste non authorized URL in browser the REFERER is blank and application crash
|
50
50
|
if request.env["HTTP_REFERER"].present? and request.env["HTTP_REFERER"] != request.env["REQUEST_URI"]
|
51
|
-
|
51
|
+
redirect_back fallback_location: root_path, flash: { error: access_denied_msg }
|
52
52
|
else
|
53
53
|
redirect_to root_path, flash: { error: access_denied_msg }
|
54
54
|
end
|
data/the_role_api.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
$:.push File.expand_path("../lib", __FILE__)
|
3
3
|
|
4
4
|
module TheRoleApi
|
5
|
-
VERSION = "3.
|
5
|
+
VERSION = "3.9.0"
|
6
6
|
end
|
7
7
|
|
8
8
|
Gem::Specification.new do |s|
|
@@ -21,6 +21,6 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.license = "MIT"
|
22
22
|
|
23
23
|
s.add_dependency 'multi_json'
|
24
|
-
s.add_dependency '
|
25
|
-
s.add_runtime_dependency 'rails', ['>= 3.2', '<
|
24
|
+
s.add_dependency 'to_slug_param', '= 1.8'
|
25
|
+
s.add_runtime_dependency 'rails', ['>= 3.2', '< 7']
|
26
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: the_role_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya N. Zykin [the-teacher]
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
@@ -25,19 +25,19 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: to_slug_param
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
33
|
+
version: '1.8'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1.
|
40
|
+
version: '1.8'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -47,7 +47,7 @@ dependencies:
|
|
47
47
|
version: '3.2'
|
48
48
|
- - "<"
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: '
|
50
|
+
version: '7'
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -57,7 +57,7 @@ dependencies:
|
|
57
57
|
version: '3.2'
|
58
58
|
- - "<"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '7'
|
61
61
|
description: Authorization for Rails with Web Interface
|
62
62
|
email:
|
63
63
|
- zykin-ilya@ya.ru
|
@@ -78,6 +78,7 @@ files:
|
|
78
78
|
- config/initializers/the_role.rb
|
79
79
|
- config/locales/es.the_role.yml
|
80
80
|
- config/locales/fr.the_role.yml
|
81
|
+
- config/locales/hindi.the_role.yml
|
81
82
|
- config/locales/nl.the_role.yml
|
82
83
|
- config/locales/pl.the_role.yml
|
83
84
|
- config/locales/pt_BR.the_role.yml
|
@@ -113,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
114
|
version: '0'
|
114
115
|
requirements: []
|
115
116
|
rubyforge_project:
|
116
|
-
rubygems_version: 2.
|
117
|
+
rubygems_version: 2.6.14
|
117
118
|
signing_key:
|
118
119
|
specification_version: 4
|
119
120
|
summary: Authorization for Rails
|