strong_actions 0.2.0 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -3
- data/.travis.yml +2 -3
- data/HISTORY.md +3 -0
- data/lib/strong_actions/controller.rb +2 -7
- data/lib/strong_actions/decision.rb +2 -0
- data/lib/strong_actions/version.rb +1 -1
- data/strong_actions.gemspec +4 -4
- metadata +11 -12
- data/Gemfile.lock +0 -74
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ec80274a548a13c7dcf92f9e02cce6c53171d6da19b72069991c3150593d595
|
4
|
+
data.tar.gz: 71677591fa9bc6a043955003cfa50dc1be496c14a3e1fb4a7101ebb915d32ca4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d27a6b8606324d3e2c412bca7e2b24653de0a0ea70697d733f77bfa904dacd12e7fe260f6efb878f62a789f2a33f574aeaaf9552501c197e19f7ae970d8814d5
|
7
|
+
data.tar.gz: 85d817023355cb98c24157a528aae3d9996e38b3ebf630235dafcd7a3deeafa8c6aefe350a0734333866b89029f3f905f12b9e7636371c86ffde42ce0d9e0504
|
data/.gitignore
CHANGED
@@ -26,9 +26,9 @@ build/
|
|
26
26
|
|
27
27
|
# for a library or gem, you might want to ignore these files since the code is
|
28
28
|
# intended to run in multiple environments; otherwise, check them in:
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
Gemfile.lock
|
30
|
+
.ruby-version
|
31
|
+
.ruby-gemset
|
32
32
|
|
33
33
|
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
34
34
|
.rvmrc
|
data/.travis.yml
CHANGED
data/HISTORY.md
CHANGED
@@ -1,16 +1,11 @@
|
|
1
|
-
|
1
|
+
require_relative 'decision'
|
2
2
|
|
3
3
|
module StrongActions
|
4
4
|
module Controller
|
5
5
|
extend ActiveSupport::Concern
|
6
6
|
|
7
7
|
included do
|
8
|
-
|
9
|
-
before_filter :authorize_roles!
|
10
|
-
else
|
11
|
-
before_action :authorize_roles!
|
12
|
-
end
|
13
|
-
|
8
|
+
before_action :authorize_roles!
|
14
9
|
helper_method :available?
|
15
10
|
end
|
16
11
|
|
data/strong_actions.gemspec
CHANGED
@@ -19,11 +19,11 @@ Gem::Specification.new do |spec|
|
|
19
19
|
|
20
20
|
spec.required_ruby_version = '~> 2.5'
|
21
21
|
|
22
|
-
spec.add_dependency "activesupport", '>= 4.
|
23
|
-
spec.add_dependency "actionpack", '>= 4.
|
24
|
-
spec.add_dependency "railties", '>= 4.
|
22
|
+
spec.add_dependency "activesupport", '>= 5.2.4.3', '< 6'
|
23
|
+
spec.add_dependency "actionpack", '>= 5.2.4.3', '< 6'
|
24
|
+
spec.add_dependency "railties", '>= 5.2.4.3', '< 6'
|
25
25
|
|
26
|
-
spec.add_development_dependency 'bundler', '~>
|
26
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
27
27
|
spec.add_development_dependency 'minitest'
|
28
28
|
spec.add_development_dependency 'rake', '~> 12.0'
|
29
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strong_actions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ichy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 5.2.4.3
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '6'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 5.2.4.3
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '6'
|
@@ -36,7 +36,7 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
39
|
+
version: 5.2.4.3
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '6'
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
requirements:
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version:
|
49
|
+
version: 5.2.4.3
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: '6'
|
@@ -56,7 +56,7 @@ dependencies:
|
|
56
56
|
requirements:
|
57
57
|
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version:
|
59
|
+
version: 5.2.4.3
|
60
60
|
- - "<"
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '6'
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: 5.2.4.3
|
70
70
|
- - "<"
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '6'
|
@@ -76,14 +76,14 @@ dependencies:
|
|
76
76
|
requirements:
|
77
77
|
- - "~>"
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
version: '
|
79
|
+
version: '2.0'
|
80
80
|
type: :development
|
81
81
|
prerelease: false
|
82
82
|
version_requirements: !ruby/object:Gem::Requirement
|
83
83
|
requirements:
|
84
84
|
- - "~>"
|
85
85
|
- !ruby/object:Gem::Version
|
86
|
-
version: '
|
86
|
+
version: '2.0'
|
87
87
|
- !ruby/object:Gem::Dependency
|
88
88
|
name: minitest
|
89
89
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,7 +122,6 @@ files:
|
|
122
122
|
- ".gitignore"
|
123
123
|
- ".travis.yml"
|
124
124
|
- Gemfile
|
125
|
-
- Gemfile.lock
|
126
125
|
- HISTORY.md
|
127
126
|
- LICENSE
|
128
127
|
- README.md
|
@@ -160,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
159
|
- !ruby/object:Gem::Version
|
161
160
|
version: '0'
|
162
161
|
requirements: []
|
163
|
-
rubygems_version: 3.
|
162
|
+
rubygems_version: 3.2.16
|
164
163
|
signing_key:
|
165
164
|
specification_version: 4
|
166
165
|
summary: access control for rails controller/action
|
data/Gemfile.lock
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
strong_actions (0.2.0)
|
5
|
-
actionpack (>= 4.2, < 6)
|
6
|
-
activesupport (>= 4.2, < 6)
|
7
|
-
railties (>= 4.2, < 6)
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: https://rubygems.org/
|
11
|
-
specs:
|
12
|
-
actionpack (5.2.3)
|
13
|
-
actionview (= 5.2.3)
|
14
|
-
activesupport (= 5.2.3)
|
15
|
-
rack (~> 2.0)
|
16
|
-
rack-test (>= 0.6.3)
|
17
|
-
rails-dom-testing (~> 2.0)
|
18
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
19
|
-
actionview (5.2.3)
|
20
|
-
activesupport (= 5.2.3)
|
21
|
-
builder (~> 3.1)
|
22
|
-
erubi (~> 1.4)
|
23
|
-
rails-dom-testing (~> 2.0)
|
24
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
25
|
-
activesupport (5.2.3)
|
26
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
27
|
-
i18n (>= 0.7, < 2)
|
28
|
-
minitest (~> 5.1)
|
29
|
-
tzinfo (~> 1.1)
|
30
|
-
builder (3.2.3)
|
31
|
-
concurrent-ruby (1.1.5)
|
32
|
-
crass (1.0.5)
|
33
|
-
erubi (1.9.0)
|
34
|
-
i18n (1.7.0)
|
35
|
-
concurrent-ruby (~> 1.0)
|
36
|
-
loofah (2.3.1)
|
37
|
-
crass (~> 1.0.2)
|
38
|
-
nokogiri (>= 1.5.9)
|
39
|
-
method_source (0.9.2)
|
40
|
-
mini_portile2 (2.4.0)
|
41
|
-
minitest (5.13.0)
|
42
|
-
nokogiri (1.10.5)
|
43
|
-
mini_portile2 (~> 2.4.0)
|
44
|
-
rack (2.0.7)
|
45
|
-
rack-test (1.1.0)
|
46
|
-
rack (>= 1.0, < 3)
|
47
|
-
rails-dom-testing (2.0.3)
|
48
|
-
activesupport (>= 4.2.0)
|
49
|
-
nokogiri (>= 1.6)
|
50
|
-
rails-html-sanitizer (1.3.0)
|
51
|
-
loofah (~> 2.3)
|
52
|
-
railties (5.2.3)
|
53
|
-
actionpack (= 5.2.3)
|
54
|
-
activesupport (= 5.2.3)
|
55
|
-
method_source
|
56
|
-
rake (>= 0.8.7)
|
57
|
-
thor (>= 0.19.0, < 2.0)
|
58
|
-
rake (12.3.3)
|
59
|
-
thor (0.20.3)
|
60
|
-
thread_safe (0.3.6)
|
61
|
-
tzinfo (1.2.5)
|
62
|
-
thread_safe (~> 0.1)
|
63
|
-
|
64
|
-
PLATFORMS
|
65
|
-
ruby
|
66
|
-
|
67
|
-
DEPENDENCIES
|
68
|
-
bundler (~> 1.16)
|
69
|
-
minitest
|
70
|
-
rake (~> 12.0)
|
71
|
-
strong_actions!
|
72
|
-
|
73
|
-
BUNDLED WITH
|
74
|
-
1.17.3
|