active_manageable 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/ci.yml +52 -0
  3. data/.gitignore +20 -0
  4. data/.rspec +3 -0
  5. data/.rubocop.yml +42 -0
  6. data/.rubocop_rails.yml +201 -0
  7. data/.rubocop_rspec.yml +68 -0
  8. data/.standard.yml +5 -0
  9. data/Appraisals +27 -0
  10. data/CHANGELOG.md +5 -0
  11. data/CODE_OF_CONDUCT.md +84 -0
  12. data/Gemfile +6 -0
  13. data/Gemfile.lock +194 -0
  14. data/LICENSE.txt +21 -0
  15. data/README.md +758 -0
  16. data/Rakefile +8 -0
  17. data/active_manageable.gemspec +75 -0
  18. data/bin/console +15 -0
  19. data/bin/setup +8 -0
  20. data/gemfiles/.bundle/config +2 -0
  21. data/gemfiles/rails_6_0.gemfile +8 -0
  22. data/gemfiles/rails_6_1.gemfile +8 -0
  23. data/gemfiles/rails_7_0.gemfile +8 -0
  24. data/lib/active_manageable/authorization/cancancan.rb +28 -0
  25. data/lib/active_manageable/authorization/pundit.rb +28 -0
  26. data/lib/active_manageable/base.rb +218 -0
  27. data/lib/active_manageable/configuration.rb +58 -0
  28. data/lib/active_manageable/methods/auxiliary/includes.rb +98 -0
  29. data/lib/active_manageable/methods/auxiliary/model_attributes.rb +59 -0
  30. data/lib/active_manageable/methods/auxiliary/order.rb +43 -0
  31. data/lib/active_manageable/methods/auxiliary/scopes.rb +59 -0
  32. data/lib/active_manageable/methods/auxiliary/select.rb +46 -0
  33. data/lib/active_manageable/methods/auxiliary/unique_search.rb +50 -0
  34. data/lib/active_manageable/methods/create.rb +20 -0
  35. data/lib/active_manageable/methods/destroy.rb +23 -0
  36. data/lib/active_manageable/methods/edit.rb +25 -0
  37. data/lib/active_manageable/methods/index.rb +49 -0
  38. data/lib/active_manageable/methods/new.rb +20 -0
  39. data/lib/active_manageable/methods/show.rb +25 -0
  40. data/lib/active_manageable/methods/update.rb +23 -0
  41. data/lib/active_manageable/pagination/kaminari.rb +39 -0
  42. data/lib/active_manageable/search/ransack.rb +38 -0
  43. data/lib/active_manageable/version.rb +5 -0
  44. data/lib/active_manageable.rb +43 -0
  45. metadata +373 -0
data/Gemfile.lock ADDED
@@ -0,0 +1,194 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ active_manageable (0.1.0)
5
+ activerecord (>= 6.0)
6
+ activesupport (>= 6.0)
7
+ flexitime (~> 1.0)
8
+ rails-i18n
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ actionpack (7.0.0)
14
+ actionview (= 7.0.0)
15
+ activesupport (= 7.0.0)
16
+ rack (~> 2.0, >= 2.2.0)
17
+ rack-test (>= 0.6.3)
18
+ rails-dom-testing (~> 2.0)
19
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
20
+ actionview (7.0.0)
21
+ activesupport (= 7.0.0)
22
+ builder (~> 3.1)
23
+ erubi (~> 1.4)
24
+ rails-dom-testing (~> 2.0)
25
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
26
+ activemodel (7.0.0)
27
+ activesupport (= 7.0.0)
28
+ activerecord (7.0.0)
29
+ activemodel (= 7.0.0)
30
+ activesupport (= 7.0.0)
31
+ activesupport (7.0.0)
32
+ concurrent-ruby (~> 1.0, >= 1.0.2)
33
+ i18n (>= 1.6, < 2)
34
+ minitest (>= 5.1)
35
+ tzinfo (~> 2.0)
36
+ appraisal (2.4.1)
37
+ bundler
38
+ rake
39
+ thor (>= 0.14.0)
40
+ ast (2.4.2)
41
+ builder (3.2.4)
42
+ cancancan (3.3.0)
43
+ concurrent-ruby (1.1.9)
44
+ crass (1.0.6)
45
+ diff-lcs (1.5.0)
46
+ docile (1.4.0)
47
+ erubi (1.10.0)
48
+ factory_bot (6.2.0)
49
+ activesupport (>= 5.0.0)
50
+ factory_bot_rails (6.2.0)
51
+ factory_bot (~> 6.2.0)
52
+ railties (>= 5.0.0)
53
+ flexitime (1.0.0)
54
+ activesupport (>= 4.0)
55
+ i18n (1.8.11)
56
+ concurrent-ruby (~> 1.0)
57
+ kaminari (1.2.2)
58
+ activesupport (>= 4.1.0)
59
+ kaminari-actionview (= 1.2.2)
60
+ kaminari-activerecord (= 1.2.2)
61
+ kaminari-core (= 1.2.2)
62
+ kaminari-actionview (1.2.2)
63
+ actionview
64
+ kaminari-core (= 1.2.2)
65
+ kaminari-activerecord (1.2.2)
66
+ activerecord
67
+ kaminari-core (= 1.2.2)
68
+ kaminari-core (1.2.2)
69
+ loofah (2.13.0)
70
+ crass (~> 1.0.2)
71
+ nokogiri (>= 1.5.9)
72
+ method_source (1.0.0)
73
+ minitest (5.15.0)
74
+ nokogiri (1.13.3-arm64-darwin)
75
+ racc (~> 1.4)
76
+ nokogiri (1.13.3-x86_64-linux)
77
+ racc (~> 1.4)
78
+ parallel (1.21.0)
79
+ parser (3.0.3.2)
80
+ ast (~> 2.4.1)
81
+ pundit (2.1.1)
82
+ activesupport (>= 3.0.0)
83
+ racc (1.6.0)
84
+ rack (2.2.3)
85
+ rack-test (1.1.0)
86
+ rack (>= 1.0, < 3)
87
+ rails-controller-testing (1.0.5)
88
+ actionpack (>= 5.0.1.rc1)
89
+ actionview (>= 5.0.1.rc1)
90
+ activesupport (>= 5.0.1.rc1)
91
+ rails-dom-testing (2.0.3)
92
+ activesupport (>= 4.2.0)
93
+ nokogiri (>= 1.6)
94
+ rails-html-sanitizer (1.4.2)
95
+ loofah (~> 2.3)
96
+ rails-i18n (7.0.1)
97
+ i18n (>= 0.7, < 2)
98
+ railties (>= 6.0.0, < 8)
99
+ railties (7.0.0)
100
+ actionpack (= 7.0.0)
101
+ activesupport (= 7.0.0)
102
+ method_source
103
+ rake (>= 12.2)
104
+ thor (~> 1.0)
105
+ zeitwerk (~> 2.5)
106
+ rainbow (3.0.0)
107
+ rake (13.0.6)
108
+ ransack (2.5.0)
109
+ activerecord (>= 5.2.4)
110
+ activesupport (>= 5.2.4)
111
+ i18n
112
+ regexp_parser (2.2.0)
113
+ rexml (3.2.5)
114
+ rspec-core (3.10.1)
115
+ rspec-support (~> 3.10.0)
116
+ rspec-expectations (3.10.1)
117
+ diff-lcs (>= 1.2.0, < 2.0)
118
+ rspec-support (~> 3.10.0)
119
+ rspec-mocks (3.10.2)
120
+ diff-lcs (>= 1.2.0, < 2.0)
121
+ rspec-support (~> 3.10.0)
122
+ rspec-rails (5.0.2)
123
+ actionpack (>= 5.2)
124
+ activesupport (>= 5.2)
125
+ railties (>= 5.2)
126
+ rspec-core (~> 3.10)
127
+ rspec-expectations (~> 3.10)
128
+ rspec-mocks (~> 3.10)
129
+ rspec-support (~> 3.10)
130
+ rspec-support (3.10.3)
131
+ rubocop (1.23.0)
132
+ parallel (~> 1.10)
133
+ parser (>= 3.0.0.0)
134
+ rainbow (>= 2.2.2, < 4.0)
135
+ regexp_parser (>= 1.8, < 3.0)
136
+ rexml
137
+ rubocop-ast (>= 1.12.0, < 2.0)
138
+ ruby-progressbar (~> 1.7)
139
+ unicode-display_width (>= 1.4.0, < 3.0)
140
+ rubocop-ast (1.15.0)
141
+ parser (>= 3.0.1.1)
142
+ rubocop-performance (1.12.0)
143
+ rubocop (>= 1.7.0, < 2.0)
144
+ rubocop-ast (>= 0.4.0)
145
+ rubocop-rails (2.13.0)
146
+ activesupport (>= 4.2.0)
147
+ rack (>= 1.1)
148
+ rubocop (>= 1.7.0, < 2.0)
149
+ rubocop-rspec (2.7.0)
150
+ rubocop (~> 1.19)
151
+ ruby-progressbar (1.11.0)
152
+ shoulda-matchers (5.1.0)
153
+ activesupport (>= 5.2.0)
154
+ simplecov (0.21.2)
155
+ docile (~> 1.1)
156
+ simplecov-html (~> 0.11)
157
+ simplecov_json_formatter (~> 0.1)
158
+ simplecov-html (0.12.3)
159
+ simplecov_json_formatter (0.1.3)
160
+ sqlite3 (1.4.2)
161
+ standard (1.5.0)
162
+ rubocop (= 1.23.0)
163
+ rubocop-performance (= 1.12.0)
164
+ thor (1.1.0)
165
+ tzinfo (2.0.4)
166
+ concurrent-ruby (~> 1.0)
167
+ unicode-display_width (2.1.0)
168
+ zeitwerk (2.5.3)
169
+
170
+ PLATFORMS
171
+ arm64-darwin-21
172
+ x86_64-linux
173
+
174
+ DEPENDENCIES
175
+ active_manageable!
176
+ appraisal
177
+ cancancan
178
+ factory_bot_rails
179
+ kaminari
180
+ pundit
181
+ rails-controller-testing
182
+ rake (~> 13.0)
183
+ ransack
184
+ rspec-rails
185
+ rubocop (= 1.23.0)
186
+ rubocop-rails
187
+ rubocop-rspec
188
+ shoulda-matchers
189
+ simplecov
190
+ sqlite3 (~> 1.4.0)
191
+ standard
192
+
193
+ BUNDLED WITH
194
+ 2.2.22
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Circle Software & Design Ltd.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.