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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9dcd2f2afda8b010bdadffb906a1bd681da31336
4
- data.tar.gz: a8329827a107ce1065f25f039bfb970cfb6294b5
3
+ metadata.gz: 6b6032201cdd117c17819dcb4ca6e326b07bf3a0
4
+ data.tar.gz: 8318517235a97fd66abeb95408fdf1fd77aacb53
5
5
  SHA512:
6
- metadata.gz: 34aec1c12a4e5a70ce2da290cbb95c439f41c8d09f53e16e0e798367360aa3e441b1fc985e8c948352c872fef87d27e176ffbd48b4dbcb8241022683ce9900f7
7
- data.tar.gz: 461beee77914e1e0153ddf49a546e93941454180b67f920469cf893426fc9818ffac976b61348bccdf996fb12c91d8ec1f7e9b7512e4e0706edfa72a8bdeae7b
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
- redirect_to :back, flash: { error: access_denied_msg }
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
@@ -1,3 +1,3 @@
1
- class Role < ActiveRecord::Base
1
+ class Role < ApplicationRecord
2
2
  include TheRole::Api::Role
3
3
  end
@@ -1,3 +1,3 @@
1
- en:
1
+ fr:
2
2
  the_role:
3
3
  access_denied: "Accès refusé"
@@ -0,0 +1,3 @@
1
+ hindi:
2
+ the_role:
3
+ access_denied: "पहुंच अस्वीकृत"
@@ -1,4 +1,4 @@
1
- class CreateRoles < ActiveRecord::Migration
1
+ class CreateRoles < ActiveRecord::Migration[5.2]
2
2
  def self.up
3
3
  create_table :roles do |t|
4
4
  t.string :name, null: false
@@ -2,7 +2,7 @@
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  module TheRoleApi
5
- VERSION = "3.8.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 'the_string_to_slug', '~> 1.4'
25
- s.add_runtime_dependency 'rails', ['>= 3.2', '< 6']
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.8.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: 2017-04-07 00:00:00.000000000 Z
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: the_string_to_slug
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.4'
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.4'
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: '6'
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: '6'
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.5.1
117
+ rubygems_version: 2.6.14
117
118
  signing_key:
118
119
  specification_version: 4
119
120
  summary: Authorization for Rails