auxiliary_rails_resourceable 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +5 -5
- data/README.md +3 -1
- data/auxiliary_rails_resourceable.gemspec +3 -3
- data/lib/auxiliary_rails_resourceable/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8d19ba11faccf09d47f2df8c55b249c48a6ce291a09ed45ecc9d36de834dbfd
|
4
|
+
data.tar.gz: 33e6e59fde4636de8d9d395b208ed749873b052492c72df960990e8e334c56eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c76b62f038c4198b68d95e455c2ec1c12f0b745db8c2a3d843ea1b3e2626fba5ef42bfe392810c439198493e04c517f0174095875e6610233eb16736309ef2a7
|
7
|
+
data.tar.gz: 0aefc87965e91522e19b67eab0f1bff779093dfc4aedbd9b322a6d53d5ef203d45fa4bba06b8ebd212c8c14d0ccfb4ef10f22057868f7336dbd7eb1888136a73
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
auxiliary_rails_resourceable (0.1.
|
5
|
-
pagy
|
6
|
-
pundit
|
4
|
+
auxiliary_rails_resourceable (0.1.3)
|
5
|
+
pagy (>= 6.0.4)
|
6
|
+
pundit (>= 2.2)
|
7
7
|
rails (>= 5.2)
|
8
|
-
ransack
|
8
|
+
ransack (>= 3.0.0)
|
9
9
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
@@ -244,4 +244,4 @@ DEPENDENCIES
|
|
244
244
|
rubocop-rspec
|
245
245
|
|
246
246
|
BUNDLED WITH
|
247
|
-
2.
|
247
|
+
2.5.17
|
data/README.md
CHANGED
@@ -44,6 +44,8 @@ _search_form.html.erb
|
|
44
44
|
|
45
45
|
## Usage
|
46
46
|
|
47
|
+
Just define `ResourcesController` and inherit controllers from it for fulfilling them with the all the basic CRUD actions.
|
48
|
+
|
47
49
|
```ruby
|
48
50
|
# app/controllers/resources_controller.rb
|
49
51
|
# @abstract
|
@@ -89,7 +91,7 @@ end
|
|
89
91
|
## References
|
90
92
|
|
91
93
|
This gem is heavily inspired by [inherited_resources](https://github.com/activeadmin/inherited_resources) and [activeadmin](https://github.com/activeadmin/activeadmin).
|
92
|
-
It even follows the naming for helpers of `inherited_resources
|
94
|
+
It even follows the naming for helpers of `inherited_resources`, but much lighter (~250 lines of code only), with an approach of "just overwrite what you need" instead of complex configuration options. And, in simple cases, can be used as a drop-in replacement with no or just a few code changes.
|
93
95
|
|
94
96
|
## Development
|
95
97
|
|
@@ -27,8 +27,8 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
28
28
|
spec.require_paths = ['lib']
|
29
29
|
|
30
|
-
spec.add_dependency 'pagy'
|
31
|
-
spec.add_dependency 'pundit'
|
30
|
+
spec.add_dependency 'pagy', '>= 6.0.4'
|
31
|
+
spec.add_dependency 'pundit', '>= 2.2'
|
32
32
|
spec.add_dependency 'rails', '>= 5.2'
|
33
|
-
spec.add_dependency 'ransack'
|
33
|
+
spec.add_dependency 'ransack', '>= 3.0.0'
|
34
34
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: auxiliary_rails_resourceable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Babenko
|
@@ -17,28 +17,28 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 6.0.4
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: 6.0.4
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: pundit
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '2.2'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
41
|
+
version: '2.2'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rails
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,14 +59,14 @@ dependencies:
|
|
59
59
|
requirements:
|
60
60
|
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version:
|
62
|
+
version: 3.0.0
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: 3.0.0
|
70
70
|
description:
|
71
71
|
email:
|
72
72
|
- dmitry@ergoserv.com
|