bp3-actiontext 0.1.3 → 0.2.0
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 +2 -2
- data/CHANGELOG.md +11 -0
- data/CLAUDE.md +55 -0
- data/Gemfile.lock +146 -102
- data/bp3-actiontext.gemspec +4 -4
- data/lib/bp3/actiontext/version.rb +1 -1
- data/lib/bp3/actiontext.rb +3 -3
- metadata +197 -178
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a492ca089058a7102e87e146eab5e12b7de81ca46210775b9278d223f50f43b0
|
|
4
|
+
data.tar.gz: ee402e68a457ca13ccc9995b49b16c39d118d508128b36d49fb2dbb39ddae4f2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 071411eeb0b5ff91f112f9f4c4b41b985490ba54df4055de88155a50bc317876332dd05d5616e62e731c10a9a16d6ba42218944906a10cc20e4693d0fa133584
|
|
7
|
+
data.tar.gz: 5ef3bb1d0da9cd4ed28b5a7fbfbc6e38a88f17f6d2dd4625fbc573ffe10a90af2eeda84c69a873486a907530a45ed6d78da0a5b98d4511a4206c1d3a8aa7f428
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.2.0] - 2026-11-20
|
|
4
|
+
|
|
5
|
+
- Require Ruby 4.0.10 and update Bundler to 4.1.0
|
|
6
|
+
- Remove constantize memoization
|
|
7
|
+
- Update gems
|
|
8
|
+
- Add CLAUDE.md file
|
|
9
|
+
|
|
10
|
+
## [0.1.4] - 2026-01-12
|
|
11
|
+
|
|
12
|
+
- Update gems
|
|
13
|
+
|
|
3
14
|
## [0.1.3] - 2024-11-18
|
|
4
15
|
|
|
5
16
|
- Relax gem constraints
|
data/CLAUDE.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
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-actiontext adapts `actiontext` for BP3 (persuavis/black_phoebe_3), a multi-site multi-tenant Rails
|
|
8
|
+
application. It makes `ActionText::RichText` a BP3 record: request-tracked, sequenced, tenant-scoped,
|
|
9
|
+
searchable and audited.
|
|
10
|
+
|
|
11
|
+
## Commands
|
|
12
|
+
|
|
13
|
+
The gems run on Ruby 3.4.6 (`.ruby-version`). Prefix commands with `~/.rvm/bin/rvm 3.4.6 do` when the
|
|
14
|
+
shell is not already on it; a missing `rspec` means the wrong Ruby, not a missing bundle.
|
|
15
|
+
|
|
16
|
+
- `bundle exec rake` - specs and RuboCop (the default task)
|
|
17
|
+
- `bundle exec rspec spec/path/to/file_spec.rb[:LINE]` - one file or example
|
|
18
|
+
- `bundle exec rubocop` / `bundle exec rubocop -a`
|
|
19
|
+
- `bin/setup`, `bin/console`, `rake install`
|
|
20
|
+
|
|
21
|
+
## Architecture
|
|
22
|
+
|
|
23
|
+
`lib/bp3/actiontext/railtie.rb` reopens `ActionText::RichText` in an `after_initialize` block and:
|
|
24
|
+
|
|
25
|
+
- includes `Bp3::Core::Rqid`, `Sqnr`, `Tenantable` and `Ransackable` (gem bp3-core), then calls
|
|
26
|
+
`configure_tenancy` and `use_sqnr_for_ordering`
|
|
27
|
+
- calls `has_paper_trail`, so the application must have paper_trail loaded
|
|
28
|
+
- validates `name` unique per `sites_site_id`, `record_type`, `record_id` and `locale` (Mobility stores one
|
|
29
|
+
rich text per locale)
|
|
30
|
+
- overrides `Tenantable#set_sites_site_id` to take the site from the parent record: the record itself when
|
|
31
|
+
it is a site, else its `sites_site_id`, falling back to the request state only when neither gives one
|
|
32
|
+
- overrides `Tenantable#set_tenant_id` the same way but never falls back to the request state: tenant is
|
|
33
|
+
optional for rich text, and a request's tenant is not necessarily the record's
|
|
34
|
+
|
|
35
|
+
**Configuration** (`lib/bp3/actiontext.rb`): `Bp3::Actiontext.site_class_name`, `.tenant_class_name` and
|
|
36
|
+
`.workspace_class_name`, set in the application's `config/initializers/bp3-actiontext.rb` to
|
|
37
|
+
`'Sites::Site'`, `'Tenant'` and `'Workspaces::Workspace'`; `.site_class` and friends constantize and cache.
|
|
38
|
+
|
|
39
|
+
## Testing
|
|
40
|
+
|
|
41
|
+
The spec only checks the version; the Railtie needs a Rails application with a database to exercise. Try a
|
|
42
|
+
change against the application (black_phoebe_3) by putting this repo's `lib` ahead of the bundled gem.
|
|
43
|
+
|
|
44
|
+
## Code Style
|
|
45
|
+
|
|
46
|
+
- RuboCop (`.rubocop.yml`): target Ruby 3.2.2, NewCops, rubocop-rake and rubocop-rspec; AbcSize 26,
|
|
47
|
+
MethodLength 15, BlockLength 66, ModuleLength 150; `Lint/ConstantDefinitionInBlock` and `Lint/Void`
|
|
48
|
+
are off for `lib/bp3/**/railtie.rb`, where classes are reopened inside a block
|
|
49
|
+
- Every file starts with `# frozen_string_literal: true`
|
|
50
|
+
- American English; no trailing whitespace on any added or modified line
|
|
51
|
+
|
|
52
|
+
## Release
|
|
53
|
+
|
|
54
|
+
Bump `lib/bp3/actiontext/version.rb` and add a `CHANGELOG.md` entry. `rake release` tags, pushes and
|
|
55
|
+
publishes to rubygems.org; leave releasing and committing to the user.
|
data/Gemfile.lock
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
bp3-actiontext (0.
|
|
5
|
-
actiontext (
|
|
6
|
-
activesupport (
|
|
4
|
+
bp3-actiontext (0.2.0)
|
|
5
|
+
actiontext (~> 8.1)
|
|
6
|
+
activesupport (~> 8.1)
|
|
7
7
|
bp3-core (>= 0.1)
|
|
8
|
-
railties (
|
|
8
|
+
railties (~> 8.1)
|
|
9
9
|
|
|
10
10
|
GEM
|
|
11
11
|
remote: https://rubygems.org/
|
|
12
12
|
specs:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
action_text-trix (2.1.19)
|
|
14
|
+
railties
|
|
15
|
+
actionpack (8.1.4.1)
|
|
16
|
+
actionview (= 8.1.4.1)
|
|
17
|
+
activesupport (= 8.1.4.1)
|
|
16
18
|
nokogiri (>= 1.8.5)
|
|
17
19
|
rack (>= 2.2.4)
|
|
18
20
|
rack-session (>= 1.0.1)
|
|
@@ -20,161 +22,203 @@ GEM
|
|
|
20
22
|
rails-dom-testing (~> 2.2)
|
|
21
23
|
rails-html-sanitizer (~> 1.6)
|
|
22
24
|
useragent (~> 0.16)
|
|
23
|
-
actiontext (8.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
actiontext (8.1.4.1)
|
|
26
|
+
action_text-trix (~> 2.1.15)
|
|
27
|
+
actionpack (= 8.1.4.1)
|
|
28
|
+
activerecord (= 8.1.4.1)
|
|
29
|
+
activestorage (= 8.1.4.1)
|
|
30
|
+
activesupport (= 8.1.4.1)
|
|
28
31
|
globalid (>= 0.6.0)
|
|
29
32
|
nokogiri (>= 1.8.5)
|
|
30
|
-
actionview (8.
|
|
31
|
-
activesupport (= 8.
|
|
33
|
+
actionview (8.1.4.1)
|
|
34
|
+
activesupport (= 8.1.4.1)
|
|
32
35
|
builder (~> 3.1)
|
|
33
36
|
erubi (~> 1.11)
|
|
34
37
|
rails-dom-testing (~> 2.2)
|
|
35
|
-
rails-html-sanitizer (~> 1.6)
|
|
36
|
-
activejob (8.
|
|
37
|
-
activesupport (= 8.
|
|
38
|
+
rails-html-sanitizer (~> 1.6, >= 1.7.2)
|
|
39
|
+
activejob (8.1.4.1)
|
|
40
|
+
activesupport (= 8.1.4.1)
|
|
38
41
|
globalid (>= 0.3.6)
|
|
39
|
-
activemodel (8.
|
|
40
|
-
activesupport (= 8.
|
|
41
|
-
activerecord (8.
|
|
42
|
-
activemodel (= 8.
|
|
43
|
-
activesupport (= 8.
|
|
42
|
+
activemodel (8.1.4.1)
|
|
43
|
+
activesupport (= 8.1.4.1)
|
|
44
|
+
activerecord (8.1.4.1)
|
|
45
|
+
activemodel (= 8.1.4.1)
|
|
46
|
+
activesupport (= 8.1.4.1)
|
|
44
47
|
timeout (>= 0.4.0)
|
|
45
|
-
activestorage (8.
|
|
46
|
-
actionpack (= 8.
|
|
47
|
-
activejob (= 8.
|
|
48
|
-
activerecord (= 8.
|
|
49
|
-
activesupport (= 8.
|
|
48
|
+
activestorage (8.1.4.1)
|
|
49
|
+
actionpack (= 8.1.4.1)
|
|
50
|
+
activejob (= 8.1.4.1)
|
|
51
|
+
activerecord (= 8.1.4.1)
|
|
52
|
+
activesupport (= 8.1.4.1)
|
|
50
53
|
marcel (~> 1.0)
|
|
51
|
-
activesupport (8.
|
|
54
|
+
activesupport (8.1.4.1)
|
|
52
55
|
base64
|
|
53
|
-
benchmark (>= 0.3)
|
|
54
56
|
bigdecimal
|
|
55
57
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
56
58
|
connection_pool (>= 2.2.5)
|
|
57
59
|
drb
|
|
58
60
|
i18n (>= 1.6, < 2)
|
|
61
|
+
json
|
|
59
62
|
logger (>= 1.4.2)
|
|
60
63
|
minitest (>= 5.1)
|
|
61
64
|
securerandom (>= 0.3)
|
|
62
65
|
tzinfo (~> 2.0, >= 2.0.5)
|
|
63
66
|
uri (>= 0.13.1)
|
|
64
|
-
ast (2.4.
|
|
65
|
-
base64 (0.
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
ast (2.4.3)
|
|
68
|
+
base64 (0.3.0)
|
|
69
|
+
bigdecimal (4.1.3)
|
|
70
|
+
bp3-core (0.7.0)
|
|
71
|
+
actionview (~> 8.1)
|
|
72
|
+
activesupport (~> 8.1)
|
|
73
|
+
bp3-request_state (~> 0.1)
|
|
74
|
+
bp3-request_state (0.1.4)
|
|
75
|
+
actionpack (~> 8.1)
|
|
76
|
+
activesupport (~> 8.1)
|
|
77
|
+
ostruct (>= 0.6)
|
|
78
|
+
request_store (>= 1.5.1)
|
|
71
79
|
builder (3.3.0)
|
|
72
|
-
byebug (
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
byebug (13.0.0)
|
|
81
|
+
reline (>= 0.6.0)
|
|
82
|
+
concurrent-ruby (1.3.8)
|
|
83
|
+
connection_pool (3.0.3)
|
|
84
|
+
crass (1.0.8)
|
|
85
|
+
diff-lcs (1.6.2)
|
|
86
|
+
drb (2.2.3)
|
|
87
|
+
erb (6.0.7)
|
|
88
|
+
erubi (1.13.1)
|
|
89
|
+
globalid (1.4.0)
|
|
80
90
|
activesupport (>= 6.1)
|
|
81
|
-
i18n (1.
|
|
91
|
+
i18n (1.15.2)
|
|
82
92
|
concurrent-ruby (~> 1.0)
|
|
83
|
-
io-console (0.
|
|
84
|
-
irb (1.
|
|
93
|
+
io-console (0.9.5)
|
|
94
|
+
irb (1.19.0)
|
|
95
|
+
pp (>= 0.6.0)
|
|
96
|
+
prism (>= 1.3.0)
|
|
85
97
|
rdoc (>= 4.0.0)
|
|
86
98
|
reline (>= 0.4.2)
|
|
87
|
-
json (
|
|
88
|
-
language_server-protocol (3.17.0.
|
|
89
|
-
|
|
90
|
-
|
|
99
|
+
json (3.1.0)
|
|
100
|
+
language_server-protocol (3.17.0.6)
|
|
101
|
+
lint_roller (1.1.0)
|
|
102
|
+
logger (1.7.0)
|
|
103
|
+
loofah (2.25.3)
|
|
91
104
|
crass (~> 1.0.2)
|
|
92
|
-
nokogiri (>= 1.
|
|
93
|
-
marcel (1.
|
|
94
|
-
|
|
95
|
-
|
|
105
|
+
nokogiri (>= 1.19.5)
|
|
106
|
+
marcel (1.2.1)
|
|
107
|
+
mini_portile2 (2.8.9)
|
|
108
|
+
minitest (6.1.0)
|
|
109
|
+
drb (~> 2.0)
|
|
110
|
+
prism (>= 1.5, < 3)
|
|
111
|
+
nokogiri (1.19.7)
|
|
112
|
+
mini_portile2 (~> 2.8.2)
|
|
113
|
+
racc (~> 1.4)
|
|
114
|
+
nokogiri (1.19.7-x86_64-darwin)
|
|
96
115
|
racc (~> 1.4)
|
|
97
|
-
|
|
98
|
-
|
|
116
|
+
ostruct (0.6.3)
|
|
117
|
+
parallel (2.3.0)
|
|
118
|
+
parser (3.3.14.0)
|
|
99
119
|
ast (~> 2.4.1)
|
|
100
120
|
racc
|
|
101
|
-
|
|
102
|
-
|
|
121
|
+
pp (0.6.4)
|
|
122
|
+
prettyprint
|
|
123
|
+
prettyprint (0.2.1)
|
|
124
|
+
prism (2.1.0)
|
|
125
|
+
prism (2.1.0-x86_64-darwin)
|
|
103
126
|
racc (1.8.1)
|
|
104
|
-
rack (3.
|
|
105
|
-
rack-session (2.
|
|
127
|
+
rack (3.2.8)
|
|
128
|
+
rack-session (2.1.2)
|
|
129
|
+
base64 (>= 0.1.0)
|
|
106
130
|
rack (>= 3.0.0)
|
|
107
|
-
rack-test (2.
|
|
131
|
+
rack-test (2.3.0)
|
|
108
132
|
rack (>= 1.3)
|
|
109
|
-
rackup (2.
|
|
133
|
+
rackup (2.3.1)
|
|
110
134
|
rack (>= 3)
|
|
111
|
-
rails-dom-testing (2.
|
|
135
|
+
rails-dom-testing (2.3.0)
|
|
112
136
|
activesupport (>= 5.0.0)
|
|
113
137
|
minitest
|
|
114
138
|
nokogiri (>= 1.6)
|
|
115
|
-
rails-html-sanitizer (1.
|
|
116
|
-
loofah (~> 2.
|
|
117
|
-
nokogiri (
|
|
118
|
-
railties (8.
|
|
119
|
-
actionpack (= 8.
|
|
120
|
-
activesupport (= 8.
|
|
139
|
+
rails-html-sanitizer (1.7.2)
|
|
140
|
+
loofah (~> 2.25, >= 2.25.3)
|
|
141
|
+
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)
|
|
142
|
+
railties (8.1.4.1)
|
|
143
|
+
actionpack (= 8.1.4.1)
|
|
144
|
+
activesupport (= 8.1.4.1)
|
|
121
145
|
irb (~> 1.13)
|
|
122
146
|
rackup (>= 1.0.0)
|
|
123
147
|
rake (>= 12.2)
|
|
124
148
|
thor (~> 1.0, >= 1.2.2)
|
|
149
|
+
tsort (>= 0.2)
|
|
125
150
|
zeitwerk (~> 2.6)
|
|
126
151
|
rainbow (3.1.1)
|
|
127
|
-
rake (13.2
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
152
|
+
rake (13.4.2)
|
|
153
|
+
rbs (4.2.0)
|
|
154
|
+
logger
|
|
155
|
+
prism (>= 1.6.0)
|
|
156
|
+
tsort
|
|
157
|
+
rdoc (8.1.0)
|
|
158
|
+
erb
|
|
159
|
+
prism (>= 1.6.0)
|
|
160
|
+
rbs (>= 4.0.0)
|
|
161
|
+
tsort
|
|
162
|
+
regexp_parser (2.13.4)
|
|
163
|
+
reline (0.7.0)
|
|
132
164
|
io-console (~> 0.5)
|
|
133
|
-
|
|
165
|
+
request_store (1.7.0)
|
|
166
|
+
rack (>= 1.4)
|
|
167
|
+
rspec (3.13.2)
|
|
134
168
|
rspec-core (~> 3.13.0)
|
|
135
169
|
rspec-expectations (~> 3.13.0)
|
|
136
170
|
rspec-mocks (~> 3.13.0)
|
|
137
|
-
rspec-core (3.13.
|
|
171
|
+
rspec-core (3.13.7)
|
|
138
172
|
rspec-support (~> 3.13.0)
|
|
139
|
-
rspec-expectations (3.13.
|
|
173
|
+
rspec-expectations (3.13.6)
|
|
140
174
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
141
175
|
rspec-support (~> 3.13.0)
|
|
142
|
-
rspec-mocks (3.13.
|
|
176
|
+
rspec-mocks (3.13.9)
|
|
143
177
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
144
178
|
rspec-support (~> 3.13.0)
|
|
145
|
-
rspec-support (3.13.
|
|
146
|
-
rubocop (1.
|
|
147
|
-
json (
|
|
148
|
-
language_server-protocol (
|
|
149
|
-
|
|
179
|
+
rspec-support (3.13.8)
|
|
180
|
+
rubocop (1.92.3)
|
|
181
|
+
json (>= 2.3)
|
|
182
|
+
language_server-protocol (~> 3.17.0.2)
|
|
183
|
+
lint_roller (~> 1.1.0)
|
|
184
|
+
parallel (>= 1.10)
|
|
150
185
|
parser (>= 3.3.0.2)
|
|
151
186
|
rainbow (>= 2.2.2, < 4.0)
|
|
152
|
-
regexp_parser (>= 2.
|
|
153
|
-
rubocop-ast (>= 1.
|
|
187
|
+
regexp_parser (>= 2.11.3, < 3.0)
|
|
188
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
154
189
|
ruby-progressbar (~> 1.7)
|
|
155
|
-
unicode-display_width (>= 2.4.0, <
|
|
156
|
-
rubocop-ast (1.
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
190
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
191
|
+
rubocop-ast (1.53.0)
|
|
192
|
+
ast (~> 2.4)
|
|
193
|
+
parser (>= 3.3.7.2)
|
|
194
|
+
prism (>= 1.7)
|
|
195
|
+
racc
|
|
196
|
+
rubocop-rake (0.7.1)
|
|
197
|
+
lint_roller (~> 1.1)
|
|
198
|
+
rubocop (>= 1.72.1)
|
|
199
|
+
rubocop-rspec (3.10.2)
|
|
200
|
+
lint_roller (~> 1.1)
|
|
201
|
+
regexp_parser (>= 2.0)
|
|
202
|
+
rubocop (~> 1.86, >= 1.86.2)
|
|
162
203
|
ruby-progressbar (1.13.0)
|
|
163
|
-
securerandom (0.
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
204
|
+
securerandom (0.4.1)
|
|
205
|
+
thor (1.5.0)
|
|
206
|
+
timeout (0.6.1)
|
|
207
|
+
tsort (0.2.0)
|
|
167
208
|
tzinfo (2.0.6)
|
|
168
209
|
concurrent-ruby (~> 1.0)
|
|
169
|
-
unicode-display_width (
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
210
|
+
unicode-display_width (3.3.0)
|
|
211
|
+
unicode-emoji (~> 4.3)
|
|
212
|
+
unicode-emoji (4.3.0)
|
|
213
|
+
uri (1.1.2)
|
|
214
|
+
useragent (0.16.11)
|
|
215
|
+
zeitwerk (2.8.3)
|
|
173
216
|
|
|
174
217
|
PLATFORMS
|
|
175
218
|
x86_64-darwin-21
|
|
176
219
|
x86_64-darwin-22
|
|
177
220
|
x86_64-darwin-23
|
|
221
|
+
x86_64-darwin-24
|
|
178
222
|
|
|
179
223
|
DEPENDENCIES
|
|
180
224
|
bp3-actiontext!
|
|
@@ -186,4 +230,4 @@ DEPENDENCIES
|
|
|
186
230
|
rubocop-rspec (>= 2.25)
|
|
187
231
|
|
|
188
232
|
BUNDLED WITH
|
|
189
|
-
|
|
233
|
+
4.1.0
|
data/bp3-actiontext.gemspec
CHANGED
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
|
12
12
|
# spec.description = "TODO: Write a longer description or delete this line."
|
|
13
13
|
spec.homepage = 'https://www.black-phoebe.com'
|
|
14
14
|
spec.license = 'MIT'
|
|
15
|
-
spec.required_ruby_version = '>=
|
|
15
|
+
spec.required_ruby_version = '>= 4.0.10'
|
|
16
16
|
|
|
17
17
|
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
|
18
18
|
|
|
@@ -31,10 +31,10 @@ 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 'actiontext', '
|
|
35
|
-
spec.add_dependency 'activesupport', '
|
|
34
|
+
spec.add_dependency 'actiontext', '~> 8.1'
|
|
35
|
+
spec.add_dependency 'activesupport', '~> 8.1'
|
|
36
36
|
spec.add_dependency 'bp3-core', '>= 0.1'
|
|
37
|
-
spec.add_dependency 'railties', '
|
|
37
|
+
spec.add_dependency 'railties', '~> 8.1'
|
|
38
38
|
|
|
39
39
|
spec.add_development_dependency 'byebug'
|
|
40
40
|
spec.add_development_dependency 'rake', '>= 13.0'
|
data/lib/bp3/actiontext.rb
CHANGED
|
@@ -11,15 +11,15 @@ module Bp3
|
|
|
11
11
|
mattr_accessor :site_class_name, :tenant_class_name, :workspace_class_name
|
|
12
12
|
|
|
13
13
|
def self.site_class
|
|
14
|
-
|
|
14
|
+
site_class_name.constantize
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def self.tenant_class
|
|
18
|
-
|
|
18
|
+
tenant_class_name.constantize
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
def self.workspace_class
|
|
22
|
-
|
|
22
|
+
workspace_class_name.constantize
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
end
|
metadata
CHANGED
|
@@ -1,203 +1,222 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bp3-actiontext
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
- Wim den Braven
|
|
8
|
-
autorequire:
|
|
7
|
+
- Wim den Braven
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
|
-
- !ruby/object:Gem::Dependency
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
- !ruby/object:Gem::
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
- !ruby/object:Gem::
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
- !ruby/object:Gem::Dependency
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
- !ruby/object:Gem::
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: actiontext
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
-
|
|
17
|
+
- ~>
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: "8.1"
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
-
|
|
25
|
+
- ~>
|
|
26
|
+
- !ruby/object:Gem::Version
|
|
27
|
+
version: "8.1"
|
|
28
|
+
- !ruby/object:Gem::Dependency
|
|
29
|
+
name: activesupport
|
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
32
|
+
-
|
|
33
|
+
- ~>
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: "8.1"
|
|
36
|
+
type: :runtime
|
|
37
|
+
prerelease: false
|
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
39
|
+
requirements:
|
|
40
|
+
-
|
|
41
|
+
- ~>
|
|
42
|
+
- !ruby/object:Gem::Version
|
|
43
|
+
version: "8.1"
|
|
44
|
+
- !ruby/object:Gem::Dependency
|
|
45
|
+
name: bp3-core
|
|
46
|
+
requirement: !ruby/object:Gem::Requirement
|
|
47
|
+
requirements:
|
|
48
|
+
-
|
|
49
|
+
- ">="
|
|
50
|
+
- !ruby/object:Gem::Version
|
|
51
|
+
version: "0.1"
|
|
52
|
+
type: :runtime
|
|
53
|
+
prerelease: false
|
|
54
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
55
|
+
requirements:
|
|
56
|
+
-
|
|
57
|
+
- ">="
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: "0.1"
|
|
60
|
+
- !ruby/object:Gem::Dependency
|
|
61
|
+
name: railties
|
|
62
|
+
requirement: !ruby/object:Gem::Requirement
|
|
63
|
+
requirements:
|
|
64
|
+
-
|
|
65
|
+
- ~>
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: "8.1"
|
|
68
|
+
type: :runtime
|
|
69
|
+
prerelease: false
|
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
-
|
|
73
|
+
- ~>
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: "8.1"
|
|
76
|
+
- !ruby/object:Gem::Dependency
|
|
77
|
+
name: byebug
|
|
78
|
+
requirement: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
-
|
|
81
|
+
- ">="
|
|
82
|
+
- !ruby/object:Gem::Version
|
|
83
|
+
version: "0"
|
|
84
|
+
type: :development
|
|
85
|
+
prerelease: false
|
|
86
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
87
|
+
requirements:
|
|
88
|
+
-
|
|
89
|
+
- ">="
|
|
90
|
+
- !ruby/object:Gem::Version
|
|
91
|
+
version: "0"
|
|
92
|
+
- !ruby/object:Gem::Dependency
|
|
93
|
+
name: rake
|
|
94
|
+
requirement: !ruby/object:Gem::Requirement
|
|
95
|
+
requirements:
|
|
96
|
+
-
|
|
97
|
+
- ">="
|
|
98
|
+
- !ruby/object:Gem::Version
|
|
99
|
+
version: "13.0"
|
|
100
|
+
type: :development
|
|
101
|
+
prerelease: false
|
|
102
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
103
|
+
requirements:
|
|
104
|
+
-
|
|
105
|
+
- ">="
|
|
106
|
+
- !ruby/object:Gem::Version
|
|
107
|
+
version: "13.0"
|
|
108
|
+
- !ruby/object:Gem::Dependency
|
|
109
|
+
name: rspec
|
|
110
|
+
requirement: !ruby/object:Gem::Requirement
|
|
111
|
+
requirements:
|
|
112
|
+
-
|
|
113
|
+
- ">="
|
|
114
|
+
- !ruby/object:Gem::Version
|
|
115
|
+
version: "3.0"
|
|
116
|
+
type: :development
|
|
117
|
+
prerelease: false
|
|
118
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
119
|
+
requirements:
|
|
120
|
+
-
|
|
121
|
+
- ">="
|
|
122
|
+
- !ruby/object:Gem::Version
|
|
123
|
+
version: "3.0"
|
|
124
|
+
- !ruby/object:Gem::Dependency
|
|
125
|
+
name: rubocop
|
|
126
|
+
requirement: !ruby/object:Gem::Requirement
|
|
127
|
+
requirements:
|
|
128
|
+
-
|
|
129
|
+
- ">="
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: "1.21"
|
|
132
|
+
type: :development
|
|
133
|
+
prerelease: false
|
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
+
requirements:
|
|
136
|
+
-
|
|
137
|
+
- ">="
|
|
138
|
+
- !ruby/object:Gem::Version
|
|
139
|
+
version: "1.21"
|
|
140
|
+
- !ruby/object:Gem::Dependency
|
|
141
|
+
name: rubocop-rake
|
|
142
|
+
requirement: !ruby/object:Gem::Requirement
|
|
143
|
+
requirements:
|
|
144
|
+
-
|
|
145
|
+
- ">="
|
|
146
|
+
- !ruby/object:Gem::Version
|
|
147
|
+
version: "0.6"
|
|
148
|
+
type: :development
|
|
149
|
+
prerelease: false
|
|
150
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
151
|
+
requirements:
|
|
152
|
+
-
|
|
153
|
+
- ">="
|
|
154
|
+
- !ruby/object:Gem::Version
|
|
155
|
+
version: "0.6"
|
|
156
|
+
- !ruby/object:Gem::Dependency
|
|
157
|
+
name: rubocop-rspec
|
|
158
|
+
requirement: !ruby/object:Gem::Requirement
|
|
159
|
+
requirements:
|
|
160
|
+
-
|
|
161
|
+
- ">="
|
|
162
|
+
- !ruby/object:Gem::Version
|
|
163
|
+
version: "2.25"
|
|
164
|
+
type: :development
|
|
165
|
+
prerelease: false
|
|
166
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
167
|
+
requirements:
|
|
168
|
+
-
|
|
169
|
+
- ">="
|
|
170
|
+
- !ruby/object:Gem::Version
|
|
171
|
+
version: "2.25"
|
|
154
172
|
email:
|
|
155
|
-
- wimdenbraven@persuavis.com
|
|
173
|
+
- wimdenbraven@persuavis.com
|
|
156
174
|
executables: []
|
|
157
175
|
extensions: []
|
|
158
176
|
extra_rdoc_files: []
|
|
159
177
|
files:
|
|
160
|
-
-
|
|
161
|
-
-
|
|
162
|
-
-
|
|
163
|
-
- CHANGELOG.md
|
|
164
|
-
-
|
|
165
|
-
- Gemfile
|
|
166
|
-
-
|
|
167
|
-
-
|
|
168
|
-
-
|
|
169
|
-
-
|
|
170
|
-
-
|
|
171
|
-
- lib/bp3
|
|
172
|
-
- lib/bp3/actiontext
|
|
173
|
-
- lib/bp3/actiontext/
|
|
174
|
-
-
|
|
175
|
-
|
|
178
|
+
- .rspec
|
|
179
|
+
- .rubocop.yml
|
|
180
|
+
- .yardopts
|
|
181
|
+
- CHANGELOG.md
|
|
182
|
+
- CLAUDE.md
|
|
183
|
+
- Gemfile
|
|
184
|
+
- Gemfile.lock
|
|
185
|
+
- LICENSE.txt
|
|
186
|
+
- README.md
|
|
187
|
+
- Rakefile
|
|
188
|
+
- bp3-actiontext.gemspec
|
|
189
|
+
- lib/bp3-actiontext.rb
|
|
190
|
+
- lib/bp3/actiontext.rb
|
|
191
|
+
- lib/bp3/actiontext/railtie.rb
|
|
192
|
+
- lib/bp3/actiontext/version.rb
|
|
193
|
+
- sig/bp3/actiontext.rbs
|
|
194
|
+
homepage: "https://www.black-phoebe.com"
|
|
176
195
|
licenses:
|
|
177
|
-
- MIT
|
|
196
|
+
- MIT
|
|
178
197
|
metadata:
|
|
179
|
-
allowed_push_host: https://rubygems.org
|
|
180
|
-
homepage_uri: https://www.black-phoebe.com
|
|
181
|
-
source_code_uri: https://github.com/persuavis/bp3-actiontext
|
|
182
|
-
changelog_uri: https://github.com/persuavis/bp3-actiontext/blob/main/CHANGELOG.md
|
|
183
|
-
rubygems_mfa_required:
|
|
184
|
-
post_install_message:
|
|
198
|
+
allowed_push_host: "https://rubygems.org"
|
|
199
|
+
homepage_uri: "https://www.black-phoebe.com"
|
|
200
|
+
source_code_uri: "https://github.com/persuavis/bp3-actiontext"
|
|
201
|
+
changelog_uri: "https://github.com/persuavis/bp3-actiontext/blob/main/CHANGELOG.md"
|
|
202
|
+
rubygems_mfa_required: "true"
|
|
185
203
|
rdoc_options: []
|
|
186
204
|
require_paths:
|
|
187
|
-
- lib
|
|
205
|
+
- lib
|
|
188
206
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
189
207
|
requirements:
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
208
|
+
-
|
|
209
|
+
- ">="
|
|
210
|
+
- !ruby/object:Gem::Version
|
|
211
|
+
version: 4.0.10
|
|
193
212
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
213
|
requirements:
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
214
|
+
-
|
|
215
|
+
- ">="
|
|
216
|
+
- !ruby/object:Gem::Version
|
|
217
|
+
version: "0"
|
|
198
218
|
requirements: []
|
|
199
|
-
rubygems_version:
|
|
200
|
-
signing_key:
|
|
219
|
+
rubygems_version: 4.1.0
|
|
201
220
|
specification_version: 4
|
|
202
221
|
summary: bp3-actiontext adapts actiontext for BP3 (persuavis/black_phoebe_3).
|
|
203
222
|
test_files: []
|