bp3-activeadmin 0.1.3 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +13 -0
- data/CLAUDE.md +52 -0
- data/Gemfile.lock +146 -127
- data/bp3-activeadmin.gemspec +3 -3
- data/lib/bp3/activeadmin/railtie.rb +15 -0
- data/lib/bp3/activeadmin/version.rb +1 -1
- metadata +12 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 65ba710517022adea3ee5fcda381918ea3bdf46f7b888682b1f3b13ce6d0ef0f
|
|
4
|
+
data.tar.gz: 21034d1c5ef08a4cf3fe531148c8563fa402cdb3d8126a8cf35142951c307503
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c74c7384d5e8c33ee9a24bee1c201c66c3f4dda905a720228da4a6469266dfc9c4e7b3c872f1859a26ed9bb9b5c1247c467200e929b0b27fbb9072d0dee2b977
|
|
7
|
+
data.tar.gz: 976e099a624f2e5b0697227246bd7b52aa9987146fa3cd2a635b00af129c43e0584e9baa8673ec6ad75e8e767a043ba55b9a049794f7f30f461b362c8869ec91
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.2.1] - 2026-10-30
|
|
4
|
+
|
|
5
|
+
### Security
|
|
6
|
+
|
|
7
|
+
- Answer `EXPLORE` through `Bp3::Core::Ransackable` on `ActiveAdmin::Comment`, whose own class methods
|
|
8
|
+
otherwise allowed every column and association to it
|
|
9
|
+
- Require bp3-core 0.4.0, for `Bp3::Core::Ransackable::EXPLORE`
|
|
10
|
+
|
|
11
|
+
## [0.2.0] - 2026-01-12
|
|
12
|
+
|
|
13
|
+
- Update activeadmin gem dependency to 4.0.0.beta16
|
|
14
|
+
- Update gems
|
|
15
|
+
|
|
3
16
|
## [0.1.3] - 2024-11-18
|
|
4
17
|
|
|
5
18
|
- Use ruby 3.3.5 and relax gem constraints
|
data/CLAUDE.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# CLAUDE.md
|
|
2
|
+
|
|
3
|
+
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
|
4
|
+
|
|
5
|
+
## Project Overview
|
|
6
|
+
|
|
7
|
+
bp3-activeadmin adapts `activeadmin` (4.x) for BP3 (persuavis/black_phoebe_3), a multi-site multi-tenant
|
|
8
|
+
Rails application. It keeps ActiveAdmin's default filters inside what each model allows ransack to search.
|
|
9
|
+
|
|
10
|
+
## Commands
|
|
11
|
+
|
|
12
|
+
The gems run on Ruby 3.4.6 (`.ruby-version`). Prefix commands with `~/.rvm/bin/rvm 3.4.6 do` when the
|
|
13
|
+
shell is not already on it; a missing `rspec` means the wrong Ruby, not a missing bundle.
|
|
14
|
+
|
|
15
|
+
- `bundle exec rake` - specs and RuboCop (the default task)
|
|
16
|
+
- `bundle exec rspec spec/path/to/file_spec.rb[:LINE]` - one file or example
|
|
17
|
+
- `bundle exec rubocop` / `bundle exec rubocop -a`
|
|
18
|
+
- `bin/setup`, `bin/console`, `rake install`
|
|
19
|
+
|
|
20
|
+
## Architecture
|
|
21
|
+
|
|
22
|
+
`lib/bp3/activeadmin/railtie.rb` runs in an `after_initialize` block:
|
|
23
|
+
|
|
24
|
+
- prepends `PrependResourceExtension` to `ActiveAdmin::Filters::ResourceExtension`, so `default_filters`
|
|
25
|
+
keeps only the fields in `resource_class.ransackable_fields(auth_object)` (from `Bp3::Core::Ransackable`)
|
|
26
|
+
- `auth_object` is the configured request state class sent the configured method
|
|
27
|
+
- includes `Bp3::Core::Ransackable` in `ActiveAdmin::Comment`
|
|
28
|
+
|
|
29
|
+
**Configuration** (`lib/bp3/activeadmin.rb`): `Bp3::Activeadmin.global_request_state_class_name` and
|
|
30
|
+
`.global_request_state_method`. The application's `config/initializers/bp3-activeadmin.rb` sets them to
|
|
31
|
+
`'GlobalRequestState'` and `:current_login` (the README's example still shows `:highest_privilege`).
|
|
32
|
+
|
|
33
|
+
The entry file is `lib/bp3-active_admin.rb`, not `lib/bp3-activeadmin.rb`; Bundler's autorequire finds
|
|
34
|
+
`bp3/activeadmin` instead.
|
|
35
|
+
|
|
36
|
+
## Testing
|
|
37
|
+
|
|
38
|
+
The spec only checks the version; the Railtie needs a Rails application with ActiveAdmin to exercise. Try a
|
|
39
|
+
change against the application (black_phoebe_3) by putting this repo's `lib` ahead of the bundled gem.
|
|
40
|
+
|
|
41
|
+
## Code Style
|
|
42
|
+
|
|
43
|
+
- RuboCop (`.rubocop.yml`): target Ruby 3.2.2, NewCops, rubocop-rake and rubocop-rspec; AbcSize 26,
|
|
44
|
+
MethodLength 15, BlockLength 66, ModuleLength 150; `Lint/ConstantDefinitionInBlock` and `Lint/Void`
|
|
45
|
+
are off for `lib/bp3/**/railtie.rb`, where classes are reopened inside a block
|
|
46
|
+
- Every file starts with `# frozen_string_literal: true`
|
|
47
|
+
- American English; no trailing whitespace on any added or modified line
|
|
48
|
+
|
|
49
|
+
## Release
|
|
50
|
+
|
|
51
|
+
Bump `lib/bp3/activeadmin/version.rb` and add a `CHANGELOG.md` entry. `rake release` tags, pushes and
|
|
52
|
+
publishes to rubygems.org; leave releasing and committing to the user.
|
data/Gemfile.lock
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
bp3-activeadmin (0.1
|
|
5
|
-
activeadmin (>=
|
|
6
|
-
activesupport (
|
|
7
|
-
bp3-core (>= 0.
|
|
4
|
+
bp3-activeadmin (0.2.1)
|
|
5
|
+
activeadmin (>= 4.0.0.beta16)
|
|
6
|
+
activesupport (~> 8.1)
|
|
7
|
+
bp3-core (>= 0.4.0)
|
|
8
8
|
bp3-request_state (>= 0.1.0)
|
|
9
9
|
|
|
10
10
|
GEM
|
|
11
11
|
remote: https://rubygems.org/
|
|
12
12
|
specs:
|
|
13
|
-
actionpack (8.
|
|
14
|
-
actionview (= 8.
|
|
15
|
-
activesupport (= 8.
|
|
13
|
+
actionpack (8.1.4)
|
|
14
|
+
actionview (= 8.1.4)
|
|
15
|
+
activesupport (= 8.1.4)
|
|
16
16
|
nokogiri (>= 1.8.5)
|
|
17
17
|
rack (>= 2.2.4)
|
|
18
18
|
rack-session (>= 1.0.1)
|
|
@@ -20,194 +20,213 @@ GEM
|
|
|
20
20
|
rails-dom-testing (~> 2.2)
|
|
21
21
|
rails-html-sanitizer (~> 1.6)
|
|
22
22
|
useragent (~> 0.16)
|
|
23
|
-
actionview (8.
|
|
24
|
-
activesupport (= 8.
|
|
23
|
+
actionview (8.1.4)
|
|
24
|
+
activesupport (= 8.1.4)
|
|
25
25
|
builder (~> 3.1)
|
|
26
26
|
erubi (~> 1.11)
|
|
27
27
|
rails-dom-testing (~> 2.2)
|
|
28
28
|
rails-html-sanitizer (~> 1.6)
|
|
29
|
-
activeadmin (
|
|
30
|
-
arbre (~>
|
|
29
|
+
activeadmin (4.0.0.beta23)
|
|
30
|
+
arbre (~> 2.0)
|
|
31
31
|
csv
|
|
32
|
-
formtastic (>=
|
|
33
|
-
formtastic_i18n (>= 0.
|
|
34
|
-
inherited_resources (~>
|
|
35
|
-
jquery-rails (>= 4.2)
|
|
32
|
+
formtastic (>= 6.0)
|
|
33
|
+
formtastic_i18n (>= 0.7)
|
|
34
|
+
inherited_resources (~> 2.0)
|
|
36
35
|
kaminari (>= 1.2.1)
|
|
37
|
-
railties (>=
|
|
36
|
+
railties (>= 7.2)
|
|
38
37
|
ransack (>= 4.0)
|
|
39
|
-
activemodel (8.
|
|
40
|
-
activesupport (= 8.
|
|
41
|
-
activerecord (8.
|
|
42
|
-
activemodel (= 8.
|
|
43
|
-
activesupport (= 8.
|
|
38
|
+
activemodel (8.1.4)
|
|
39
|
+
activesupport (= 8.1.4)
|
|
40
|
+
activerecord (8.1.4)
|
|
41
|
+
activemodel (= 8.1.4)
|
|
42
|
+
activesupport (= 8.1.4)
|
|
44
43
|
timeout (>= 0.4.0)
|
|
45
|
-
activesupport (8.
|
|
44
|
+
activesupport (8.1.4)
|
|
46
45
|
base64
|
|
47
|
-
benchmark (>= 0.3)
|
|
48
46
|
bigdecimal
|
|
49
47
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
50
48
|
connection_pool (>= 2.2.5)
|
|
51
49
|
drb
|
|
52
50
|
i18n (>= 1.6, < 2)
|
|
51
|
+
json
|
|
53
52
|
logger (>= 1.4.2)
|
|
54
53
|
minitest (>= 5.1)
|
|
55
54
|
securerandom (>= 0.3)
|
|
56
55
|
tzinfo (~> 2.0, >= 2.0.5)
|
|
57
56
|
uri (>= 0.13.1)
|
|
58
|
-
arbre (
|
|
59
|
-
activesupport (>=
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
activesupport (>= 7.1.2)
|
|
57
|
+
arbre (2.2.1)
|
|
58
|
+
activesupport (>= 7.0)
|
|
59
|
+
ast (2.4.3)
|
|
60
|
+
base64 (0.3.0)
|
|
61
|
+
bigdecimal (4.1.3)
|
|
62
|
+
bp3-core (0.4.0)
|
|
63
|
+
actionview (~> 8.1)
|
|
64
|
+
activesupport (~> 8.1)
|
|
65
|
+
bp3-request_state (~> 0.1)
|
|
66
|
+
bp3-request_state (0.1.3)
|
|
67
|
+
actionpack (~> 8.1)
|
|
68
|
+
activesupport (~> 8.1)
|
|
71
69
|
request_store (>= 1.5.1)
|
|
72
70
|
builder (3.3.0)
|
|
73
|
-
concurrent-ruby (1.3.
|
|
74
|
-
connection_pool (
|
|
75
|
-
crass (1.0.
|
|
76
|
-
csv (3.3.
|
|
77
|
-
diff-lcs (1.
|
|
78
|
-
drb (2.2.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
71
|
+
concurrent-ruby (1.3.8)
|
|
72
|
+
connection_pool (3.0.2)
|
|
73
|
+
crass (1.0.8)
|
|
74
|
+
csv (3.3.7)
|
|
75
|
+
diff-lcs (1.6.2)
|
|
76
|
+
drb (2.2.3)
|
|
77
|
+
erb (6.0.7)
|
|
78
|
+
erubi (1.13.1)
|
|
79
|
+
formtastic (6.0.0)
|
|
80
|
+
actionpack (>= 7.2.0)
|
|
82
81
|
formtastic_i18n (0.7.0)
|
|
83
|
-
has_scope (0.
|
|
84
|
-
actionpack (>=
|
|
85
|
-
activesupport (>=
|
|
86
|
-
i18n (1.
|
|
82
|
+
has_scope (0.9.0)
|
|
83
|
+
actionpack (>= 7.0)
|
|
84
|
+
activesupport (>= 7.0)
|
|
85
|
+
i18n (1.15.2)
|
|
87
86
|
concurrent-ruby (~> 1.0)
|
|
88
|
-
inherited_resources (1.
|
|
89
|
-
actionpack (>=
|
|
87
|
+
inherited_resources (2.1.0)
|
|
88
|
+
actionpack (>= 7.0)
|
|
90
89
|
has_scope (>= 0.6)
|
|
91
|
-
railties (>=
|
|
90
|
+
railties (>= 7.0)
|
|
92
91
|
responders (>= 2)
|
|
93
|
-
io-console (0.
|
|
94
|
-
irb (1.
|
|
92
|
+
io-console (0.9.5)
|
|
93
|
+
irb (1.18.0)
|
|
94
|
+
pp (>= 0.6.0)
|
|
95
|
+
prism (>= 1.3.0)
|
|
95
96
|
rdoc (>= 4.0.0)
|
|
96
97
|
reline (>= 0.4.2)
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
railties (>= 4.2.0)
|
|
100
|
-
thor (>= 0.14, < 2.0)
|
|
101
|
-
json (2.8.2)
|
|
102
|
-
kaminari (1.2.2)
|
|
98
|
+
json (3.1.0)
|
|
99
|
+
kaminari (1.3.2)
|
|
103
100
|
activesupport (>= 4.1.0)
|
|
104
|
-
kaminari-actionview (= 1.
|
|
105
|
-
kaminari-activerecord (= 1.
|
|
106
|
-
kaminari-core (= 1.
|
|
107
|
-
kaminari-actionview (1.
|
|
101
|
+
kaminari-actionview (= 1.3.2)
|
|
102
|
+
kaminari-activerecord (= 1.3.2)
|
|
103
|
+
kaminari-core (= 1.3.2)
|
|
104
|
+
kaminari-actionview (1.3.2)
|
|
108
105
|
actionview
|
|
109
|
-
kaminari-core (= 1.
|
|
110
|
-
kaminari-activerecord (1.
|
|
106
|
+
kaminari-core (= 1.3.2)
|
|
107
|
+
kaminari-activerecord (1.3.2)
|
|
111
108
|
activerecord
|
|
112
|
-
kaminari-core (= 1.
|
|
113
|
-
kaminari-core (1.
|
|
114
|
-
language_server-protocol (3.17.0.
|
|
115
|
-
|
|
116
|
-
|
|
109
|
+
kaminari-core (= 1.3.2)
|
|
110
|
+
kaminari-core (1.3.2)
|
|
111
|
+
language_server-protocol (3.17.0.6)
|
|
112
|
+
lint_roller (1.1.0)
|
|
113
|
+
logger (1.7.0)
|
|
114
|
+
loofah (2.25.2)
|
|
117
115
|
crass (~> 1.0.2)
|
|
118
116
|
nokogiri (>= 1.12.0)
|
|
119
|
-
minitest (
|
|
120
|
-
|
|
117
|
+
minitest (6.0.6)
|
|
118
|
+
drb (~> 2.0)
|
|
119
|
+
prism (~> 1.5)
|
|
120
|
+
nokogiri (1.19.4-x86_64-darwin)
|
|
121
121
|
racc (~> 1.4)
|
|
122
|
-
parallel (
|
|
123
|
-
parser (3.3.
|
|
122
|
+
parallel (2.3.0)
|
|
123
|
+
parser (3.3.13.0)
|
|
124
124
|
ast (~> 2.4.1)
|
|
125
125
|
racc
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
pp (0.6.4)
|
|
127
|
+
prettyprint
|
|
128
|
+
prettyprint (0.2.1)
|
|
129
|
+
prism (1.9.0)
|
|
128
130
|
racc (1.8.1)
|
|
129
|
-
rack (3.
|
|
130
|
-
rack-session (2.
|
|
131
|
+
rack (3.2.8)
|
|
132
|
+
rack-session (2.1.2)
|
|
133
|
+
base64 (>= 0.1.0)
|
|
131
134
|
rack (>= 3.0.0)
|
|
132
|
-
rack-test (2.
|
|
135
|
+
rack-test (2.3.0)
|
|
133
136
|
rack (>= 1.3)
|
|
134
|
-
rackup (2.
|
|
137
|
+
rackup (2.3.1)
|
|
135
138
|
rack (>= 3)
|
|
136
|
-
rails-dom-testing (2.
|
|
139
|
+
rails-dom-testing (2.3.0)
|
|
137
140
|
activesupport (>= 5.0.0)
|
|
138
141
|
minitest
|
|
139
142
|
nokogiri (>= 1.6)
|
|
140
|
-
rails-html-sanitizer (1.
|
|
141
|
-
loofah (~> 2.
|
|
142
|
-
nokogiri (
|
|
143
|
-
railties (8.
|
|
144
|
-
actionpack (= 8.
|
|
145
|
-
activesupport (= 8.
|
|
143
|
+
rails-html-sanitizer (1.7.1)
|
|
144
|
+
loofah (~> 2.25, >= 2.25.2)
|
|
145
|
+
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
|
146
|
+
railties (8.1.4)
|
|
147
|
+
actionpack (= 8.1.4)
|
|
148
|
+
activesupport (= 8.1.4)
|
|
146
149
|
irb (~> 1.13)
|
|
147
150
|
rackup (>= 1.0.0)
|
|
148
151
|
rake (>= 12.2)
|
|
149
152
|
thor (~> 1.0, >= 1.2.2)
|
|
153
|
+
tsort (>= 0.2)
|
|
150
154
|
zeitwerk (~> 2.6)
|
|
151
155
|
rainbow (3.1.1)
|
|
152
|
-
rake (13.2
|
|
153
|
-
ransack (
|
|
154
|
-
activerecord (>=
|
|
155
|
-
activesupport (>=
|
|
156
|
+
rake (13.4.2)
|
|
157
|
+
ransack (6.0.1)
|
|
158
|
+
activerecord (>= 7.2)
|
|
159
|
+
activesupport (>= 7.2)
|
|
156
160
|
i18n
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
+
rbs (4.2.0)
|
|
162
|
+
logger
|
|
163
|
+
prism (>= 1.6.0)
|
|
164
|
+
tsort
|
|
165
|
+
rdoc (8.1.0)
|
|
166
|
+
erb
|
|
167
|
+
prism (>= 1.6.0)
|
|
168
|
+
rbs (>= 4.0.0)
|
|
169
|
+
tsort
|
|
170
|
+
regexp_parser (2.13.1)
|
|
171
|
+
reline (0.7.0)
|
|
161
172
|
io-console (~> 0.5)
|
|
162
173
|
request_store (1.7.0)
|
|
163
174
|
rack (>= 1.4)
|
|
164
|
-
responders (3.
|
|
165
|
-
actionpack (>=
|
|
166
|
-
railties (>=
|
|
167
|
-
rspec (3.13.
|
|
175
|
+
responders (3.2.1)
|
|
176
|
+
actionpack (>= 7.0)
|
|
177
|
+
railties (>= 7.0)
|
|
178
|
+
rspec (3.13.2)
|
|
168
179
|
rspec-core (~> 3.13.0)
|
|
169
180
|
rspec-expectations (~> 3.13.0)
|
|
170
181
|
rspec-mocks (~> 3.13.0)
|
|
171
|
-
rspec-core (3.13.
|
|
182
|
+
rspec-core (3.13.6)
|
|
172
183
|
rspec-support (~> 3.13.0)
|
|
173
|
-
rspec-expectations (3.13.
|
|
184
|
+
rspec-expectations (3.13.5)
|
|
174
185
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
175
186
|
rspec-support (~> 3.13.0)
|
|
176
|
-
rspec-mocks (3.13.
|
|
187
|
+
rspec-mocks (3.13.8)
|
|
177
188
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
178
189
|
rspec-support (~> 3.13.0)
|
|
179
|
-
rspec-support (3.13.
|
|
180
|
-
rubocop (1.
|
|
181
|
-
json (
|
|
182
|
-
language_server-protocol (
|
|
183
|
-
|
|
190
|
+
rspec-support (3.13.7)
|
|
191
|
+
rubocop (1.92.2)
|
|
192
|
+
json (>= 2.3)
|
|
193
|
+
language_server-protocol (~> 3.17.0.2)
|
|
194
|
+
lint_roller (~> 1.1.0)
|
|
195
|
+
parallel (>= 1.10)
|
|
184
196
|
parser (>= 3.3.0.2)
|
|
185
197
|
rainbow (>= 2.2.2, < 4.0)
|
|
186
|
-
regexp_parser (>= 2.
|
|
187
|
-
rubocop-ast (>= 1.
|
|
198
|
+
regexp_parser (>= 2.11.3, < 3.0)
|
|
199
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
188
200
|
ruby-progressbar (~> 1.7)
|
|
189
|
-
unicode-display_width (>= 2.4.0, <
|
|
190
|
-
rubocop-ast (1.
|
|
191
|
-
parser (>= 3.3.
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
rubocop (
|
|
201
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
202
|
+
rubocop-ast (1.50.0)
|
|
203
|
+
parser (>= 3.3.7.2)
|
|
204
|
+
prism (~> 1.7)
|
|
205
|
+
rubocop-rake (0.7.1)
|
|
206
|
+
lint_roller (~> 1.1)
|
|
207
|
+
rubocop (>= 1.72.1)
|
|
208
|
+
rubocop-rspec (3.10.2)
|
|
209
|
+
lint_roller (~> 1.1)
|
|
210
|
+
regexp_parser (>= 2.0)
|
|
211
|
+
rubocop (~> 1.86, >= 1.86.2)
|
|
196
212
|
ruby-progressbar (1.13.0)
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
timeout (0.4.2)
|
|
213
|
+
securerandom (0.4.1)
|
|
214
|
+
thor (1.5.0)
|
|
215
|
+
timeout (0.6.1)
|
|
216
|
+
tsort (0.2.0)
|
|
202
217
|
tzinfo (2.0.6)
|
|
203
218
|
concurrent-ruby (~> 1.0)
|
|
204
|
-
unicode-display_width (
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
219
|
+
unicode-display_width (3.3.0)
|
|
220
|
+
unicode-emoji (~> 4.3)
|
|
221
|
+
unicode-emoji (4.3.0)
|
|
222
|
+
uri (1.1.2)
|
|
223
|
+
useragent (0.16.11)
|
|
224
|
+
zeitwerk (2.8.3)
|
|
208
225
|
|
|
209
226
|
PLATFORMS
|
|
210
227
|
x86_64-darwin-22
|
|
228
|
+
x86_64-darwin-23
|
|
229
|
+
x86_64-darwin-24
|
|
211
230
|
|
|
212
231
|
DEPENDENCIES
|
|
213
232
|
bp3-activeadmin!
|
|
@@ -218,4 +237,4 @@ DEPENDENCIES
|
|
|
218
237
|
rubocop-rspec (>= 2.25)
|
|
219
238
|
|
|
220
239
|
BUNDLED WITH
|
|
221
|
-
2.
|
|
240
|
+
2.7.2
|
data/bp3-activeadmin.gemspec
CHANGED
|
@@ -31,9 +31,9 @@ Gem::Specification.new do |spec|
|
|
|
31
31
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
|
32
32
|
spec.require_paths = ['lib']
|
|
33
33
|
|
|
34
|
-
spec.add_dependency 'activeadmin', '>=
|
|
35
|
-
spec.add_dependency 'activesupport', '
|
|
36
|
-
spec.add_dependency 'bp3-core', '>= 0.
|
|
34
|
+
spec.add_dependency 'activeadmin', '>= 4.0.0.beta16'
|
|
35
|
+
spec.add_dependency 'activesupport', '~> 8.1'
|
|
36
|
+
spec.add_dependency 'bp3-core', '>= 0.4.0'
|
|
37
37
|
spec.add_dependency 'bp3-request_state', '>= 0.1.0'
|
|
38
38
|
|
|
39
39
|
# spec.add_development_dependency 'bp3-core' # TODO: make this work
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require 'active_support'
|
|
3
4
|
require 'rails/railtie'
|
|
4
5
|
|
|
5
6
|
module Bp3
|
|
@@ -31,6 +32,20 @@ module Bp3
|
|
|
31
32
|
|
|
32
33
|
class Comment
|
|
33
34
|
include Bp3::Core::Ransackable
|
|
35
|
+
|
|
36
|
+
# ActiveAdmin defines these on the class itself, which beats anything included, so its
|
|
37
|
+
# answers stand only for plain ransack and Ransackable still answers EXPLORE
|
|
38
|
+
def self.ransackable_attributes(auth_object = nil)
|
|
39
|
+
return super if auth_object == Bp3::Core::Ransackable::EXPLORE
|
|
40
|
+
|
|
41
|
+
authorizable_ransackable_attributes
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def self.ransackable_associations(auth_object = nil)
|
|
45
|
+
return super if auth_object == Bp3::Core::Ransackable::EXPLORE
|
|
46
|
+
|
|
47
|
+
authorizable_ransackable_associations
|
|
48
|
+
end
|
|
34
49
|
end
|
|
35
50
|
end
|
|
36
51
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bp3-activeadmin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Wim den Braven
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: activeadmin
|
|
@@ -16,42 +15,42 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - ">="
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
18
|
+
version: 4.0.0.beta16
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - ">="
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version:
|
|
25
|
+
version: 4.0.0.beta16
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
27
|
name: activesupport
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
30
29
|
requirements:
|
|
31
|
-
- - "
|
|
30
|
+
- - "~>"
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version:
|
|
32
|
+
version: '8.1'
|
|
34
33
|
type: :runtime
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
|
-
- - "
|
|
37
|
+
- - "~>"
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
|
-
version:
|
|
39
|
+
version: '8.1'
|
|
41
40
|
- !ruby/object:Gem::Dependency
|
|
42
41
|
name: bp3-core
|
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
|
44
43
|
requirements:
|
|
45
44
|
- - ">="
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 0.
|
|
46
|
+
version: 0.4.0
|
|
48
47
|
type: :runtime
|
|
49
48
|
prerelease: false
|
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
50
|
requirements:
|
|
52
51
|
- - ">="
|
|
53
52
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 0.
|
|
53
|
+
version: 0.4.0
|
|
55
54
|
- !ruby/object:Gem::Dependency
|
|
56
55
|
name: bp3-request_state
|
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -136,7 +135,6 @@ dependencies:
|
|
|
136
135
|
- - ">="
|
|
137
136
|
- !ruby/object:Gem::Version
|
|
138
137
|
version: '2.25'
|
|
139
|
-
description:
|
|
140
138
|
email:
|
|
141
139
|
- wimdenbraven@persuavis.com
|
|
142
140
|
executables: []
|
|
@@ -147,6 +145,7 @@ files:
|
|
|
147
145
|
- ".rubocop.yml"
|
|
148
146
|
- ".yardopts"
|
|
149
147
|
- CHANGELOG.md
|
|
148
|
+
- CLAUDE.md
|
|
150
149
|
- Gemfile
|
|
151
150
|
- Gemfile.lock
|
|
152
151
|
- LICENSE.txt
|
|
@@ -167,7 +166,6 @@ metadata:
|
|
|
167
166
|
source_code_uri: https://github.com/persuavis/bp3-activeadmin
|
|
168
167
|
changelog_uri: https://github.com/persuavis/bp3-activeadmin/blob/main/CHANGELOG.md
|
|
169
168
|
rubygems_mfa_required: 'true'
|
|
170
|
-
post_install_message:
|
|
171
169
|
rdoc_options: []
|
|
172
170
|
require_paths:
|
|
173
171
|
- lib
|
|
@@ -182,8 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
182
180
|
- !ruby/object:Gem::Version
|
|
183
181
|
version: '0'
|
|
184
182
|
requirements: []
|
|
185
|
-
rubygems_version:
|
|
186
|
-
signing_key:
|
|
183
|
+
rubygems_version: 4.0.4
|
|
187
184
|
specification_version: 4
|
|
188
185
|
summary: bp3-activeadmin adapts activeadmin for BP3 (persuavis/black_phoebe_3).
|
|
189
186
|
test_files: []
|