bp3-formtastic 0.2.1 → 0.2.3
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 +10 -0
- data/CLAUDE.md +65 -0
- data/Gemfile.lock +106 -80
- data/bp3-formtastic.gemspec +4 -4
- data/lib/bp3/formtastic/railtie.rb +0 -2
- data/lib/bp3/formtastic/version.rb +1 -1
- data/lib/bp3/formtastic/viz_form_builder.rb +10 -1
- metadata +20 -23
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 216b360f847493e75ddd8d062e4bdd08b62d3a60225d1451b1ab28b9bb7feece
|
|
4
|
+
data.tar.gz: 5901b44319c1ee9031d8e89e7ab009f95bdc67f13895b5c4108baf1bf40e56fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0bb8504a768073d5e0047a57a9127c444c40f8a8cd3e1617b3508d84faa9252d95f4ebd1b71fb8cfaf27c2de94d3319e284cfc6c3c1ae2c2e4bf6b1f2b2c158d
|
|
7
|
+
data.tar.gz: 290418d35e22607a158290e71c501a232a97c75186fea933ab99a712ae618d6bb16d93393ef8ac1c62658710c030688a6bab359f17b694165a8f96192b080f6e
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.2.3] - 2026-10-28
|
|
4
|
+
|
|
5
|
+
- Ensure tenant and workspace for Vizfact::Input records
|
|
6
|
+
File created input control records under the controller's current site, tenant and workspace
|
|
7
|
+
- Remove a no-op builder id substitution and its UUID_REGEX
|
|
8
|
+
|
|
9
|
+
## [0.2.2] - 2026-01-12
|
|
10
|
+
|
|
11
|
+
- Update gems
|
|
12
|
+
|
|
3
13
|
## [0.2.1] - 2024-11-18
|
|
4
14
|
|
|
5
15
|
- Relax gem constraints
|
data/CLAUDE.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
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-formtastic adapts `formtastic` for BP3 (persuavis/black_phoebe_3), a multi-site multi-tenant Rails
|
|
8
|
+
application. It lets each site hide individual form inputs, controlled by records of an "input control"
|
|
9
|
+
class (`Vizfact::Input` in the application), keyed by controller, action and field.
|
|
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
|
+
**VizFormBuilder** (`lib/bp3/formtastic/viz_form_builder.rb`), a `Formtastic::FormBuilder`
|
|
24
|
+
- on initialize, loads the input control records for the controller's `current_site`, controller class and
|
|
25
|
+
action into `vizfacts`
|
|
26
|
+
- `viz(element_name, element_ident)` finds the record matching the field name (`object[attribute]`) or
|
|
27
|
+
DOM id
|
|
28
|
+
|
|
29
|
+
**VizFormBuilderWithCreate** (`viz_form_builder_with_create.rb`)
|
|
30
|
+
- creates a missing record (`show_element: true`) for every input it meets, so operators can then hide it.
|
|
31
|
+
It names `Vizfact::Input` directly. The application uses it outside the test environment
|
|
32
|
+
|
|
33
|
+
**Railtie** (`railtie.rb`), in an `after_initialize` block, only when `Rails.env` is defined
|
|
34
|
+
- prepends `PrependInputs` to `Formtastic::Inputs::Base`. `input_wrapping` renders nothing for the `rqid`
|
|
35
|
+
and `sqnr` columns, and nothing when the matching record has `show_element` false
|
|
36
|
+
- it falls through to formtastic when there is no column, no input control class, or a builder without
|
|
37
|
+
`viz`, so plain formtastic builders are unaffected
|
|
38
|
+
|
|
39
|
+
**Configuration** (`lib/bp3/formtastic.rb`): `Bp3::Formtastic.input_control_class_name`; `.input_control_class`
|
|
40
|
+
constantizes and caches it, and returns nil when unset. The application sets it in
|
|
41
|
+
`config/initializers/bp3-formtastic.rb` and also redefines `input_control_class` in a `to_prepare` block so
|
|
42
|
+
code reloading in development does not leave a stale class. It picks the builder in
|
|
43
|
+
`config/initializers/formtastic.rb`.
|
|
44
|
+
|
|
45
|
+
`lib/bp3/formtastic.rb` requires `action_dispatch` first to avoid an
|
|
46
|
+
`uninitialized constant Rails::Engine::Configuration::ActionDispatch` error when loading formtastic.
|
|
47
|
+
|
|
48
|
+
## Testing
|
|
49
|
+
|
|
50
|
+
The spec only checks the version; the builders and the Railtie need a Rails view context to exercise. Try
|
|
51
|
+
a change against the application (black_phoebe_3) by putting this repo's `lib` ahead of the bundled gem.
|
|
52
|
+
|
|
53
|
+
## Code Style
|
|
54
|
+
|
|
55
|
+
- RuboCop (`.rubocop.yml`): target Ruby 3.2.2, NewCops, rubocop-rake and rubocop-rspec; AbcSize 26,
|
|
56
|
+
MethodLength 15, BlockLength 66, ModuleLength 150; `Lint/ConstantDefinitionInBlock` and `Lint/Void`
|
|
57
|
+
are off for `lib/bp3/**/railtie.rb`, where classes are reopened inside a block
|
|
58
|
+
- Constants holding a regex end in `_REGEX`
|
|
59
|
+
- Every file starts with `# frozen_string_literal: true`
|
|
60
|
+
- American English; no trailing whitespace on any added or modified line
|
|
61
|
+
|
|
62
|
+
## Release
|
|
63
|
+
|
|
64
|
+
Bump `lib/bp3/formtastic/version.rb` and add a `CHANGELOG.md` entry. `rake release` tags, pushes and
|
|
65
|
+
publishes to rubygems.org; leave releasing and committing to the user.
|
data/Gemfile.lock
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
bp3-formtastic (0.2.
|
|
5
|
-
actionpack (
|
|
6
|
-
actionview (
|
|
7
|
-
activesupport (
|
|
4
|
+
bp3-formtastic (0.2.3)
|
|
5
|
+
actionpack (~> 8.1)
|
|
6
|
+
actionview (~> 8.1)
|
|
7
|
+
activesupport (~> 8.1)
|
|
8
8
|
formtastic (>= 5.0)
|
|
9
|
-
railties (
|
|
9
|
+
railties (~> 8.1)
|
|
10
10
|
|
|
11
11
|
GEM
|
|
12
12
|
remote: https://rubygems.org/
|
|
13
13
|
specs:
|
|
14
|
-
actionpack (8.
|
|
15
|
-
actionview (= 8.
|
|
16
|
-
activesupport (= 8.
|
|
14
|
+
actionpack (8.1.4)
|
|
15
|
+
actionview (= 8.1.4)
|
|
16
|
+
activesupport (= 8.1.4)
|
|
17
17
|
nokogiri (>= 1.8.5)
|
|
18
18
|
rack (>= 2.2.4)
|
|
19
19
|
rack-session (>= 1.0.1)
|
|
@@ -21,132 +21,158 @@ GEM
|
|
|
21
21
|
rails-dom-testing (~> 2.2)
|
|
22
22
|
rails-html-sanitizer (~> 1.6)
|
|
23
23
|
useragent (~> 0.16)
|
|
24
|
-
actionview (8.
|
|
25
|
-
activesupport (= 8.
|
|
24
|
+
actionview (8.1.4)
|
|
25
|
+
activesupport (= 8.1.4)
|
|
26
26
|
builder (~> 3.1)
|
|
27
27
|
erubi (~> 1.11)
|
|
28
28
|
rails-dom-testing (~> 2.2)
|
|
29
29
|
rails-html-sanitizer (~> 1.6)
|
|
30
|
-
activesupport (8.
|
|
30
|
+
activesupport (8.1.4)
|
|
31
31
|
base64
|
|
32
|
-
benchmark (>= 0.3)
|
|
33
32
|
bigdecimal
|
|
34
33
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
35
34
|
connection_pool (>= 2.2.5)
|
|
36
35
|
drb
|
|
37
36
|
i18n (>= 1.6, < 2)
|
|
37
|
+
json
|
|
38
38
|
logger (>= 1.4.2)
|
|
39
39
|
minitest (>= 5.1)
|
|
40
40
|
securerandom (>= 0.3)
|
|
41
41
|
tzinfo (~> 2.0, >= 2.0.5)
|
|
42
42
|
uri (>= 0.13.1)
|
|
43
|
-
ast (2.4.
|
|
44
|
-
base64 (0.
|
|
45
|
-
|
|
46
|
-
bigdecimal (3.1.8)
|
|
43
|
+
ast (2.4.3)
|
|
44
|
+
base64 (0.3.0)
|
|
45
|
+
bigdecimal (4.1.3)
|
|
47
46
|
builder (3.3.0)
|
|
48
|
-
byebug (
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
47
|
+
byebug (13.0.0)
|
|
48
|
+
reline (>= 0.6.0)
|
|
49
|
+
concurrent-ruby (1.3.8)
|
|
50
|
+
connection_pool (3.0.2)
|
|
51
|
+
crass (1.0.8)
|
|
52
|
+
diff-lcs (1.6.2)
|
|
53
|
+
drb (2.2.3)
|
|
54
|
+
erb (6.0.7)
|
|
55
|
+
erubi (1.13.1)
|
|
56
|
+
formtastic (6.0.0)
|
|
57
|
+
actionpack (>= 7.2.0)
|
|
58
|
+
i18n (1.15.2)
|
|
58
59
|
concurrent-ruby (~> 1.0)
|
|
59
|
-
io-console (0.
|
|
60
|
-
irb (1.
|
|
60
|
+
io-console (0.9.4)
|
|
61
|
+
irb (1.18.0)
|
|
62
|
+
pp (>= 0.6.0)
|
|
63
|
+
prism (>= 1.3.0)
|
|
61
64
|
rdoc (>= 4.0.0)
|
|
62
65
|
reline (>= 0.4.2)
|
|
63
|
-
json (
|
|
64
|
-
language_server-protocol (3.17.0.
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
json (3.1.0)
|
|
67
|
+
language_server-protocol (3.17.0.6)
|
|
68
|
+
lint_roller (1.1.0)
|
|
69
|
+
logger (1.7.0)
|
|
70
|
+
loofah (2.25.2)
|
|
67
71
|
crass (~> 1.0.2)
|
|
68
72
|
nokogiri (>= 1.12.0)
|
|
69
|
-
minitest (
|
|
70
|
-
|
|
73
|
+
minitest (6.0.6)
|
|
74
|
+
drb (~> 2.0)
|
|
75
|
+
prism (~> 1.5)
|
|
76
|
+
nokogiri (1.19.4-x86_64-darwin)
|
|
71
77
|
racc (~> 1.4)
|
|
72
|
-
parallel (
|
|
73
|
-
parser (3.3.
|
|
78
|
+
parallel (2.3.0)
|
|
79
|
+
parser (3.3.13.0)
|
|
74
80
|
ast (~> 2.4.1)
|
|
75
81
|
racc
|
|
76
|
-
|
|
77
|
-
|
|
82
|
+
pp (0.6.4)
|
|
83
|
+
prettyprint
|
|
84
|
+
prettyprint (0.2.1)
|
|
85
|
+
prism (1.9.0)
|
|
78
86
|
racc (1.8.1)
|
|
79
|
-
rack (3.
|
|
80
|
-
rack-session (2.
|
|
87
|
+
rack (3.2.7)
|
|
88
|
+
rack-session (2.1.2)
|
|
89
|
+
base64 (>= 0.1.0)
|
|
81
90
|
rack (>= 3.0.0)
|
|
82
|
-
rack-test (2.
|
|
91
|
+
rack-test (2.3.0)
|
|
83
92
|
rack (>= 1.3)
|
|
84
|
-
rackup (2.
|
|
93
|
+
rackup (2.3.1)
|
|
85
94
|
rack (>= 3)
|
|
86
|
-
rails-dom-testing (2.
|
|
95
|
+
rails-dom-testing (2.3.0)
|
|
87
96
|
activesupport (>= 5.0.0)
|
|
88
97
|
minitest
|
|
89
98
|
nokogiri (>= 1.6)
|
|
90
|
-
rails-html-sanitizer (1.
|
|
91
|
-
loofah (~> 2.
|
|
92
|
-
nokogiri (
|
|
93
|
-
railties (8.
|
|
94
|
-
actionpack (= 8.
|
|
95
|
-
activesupport (= 8.
|
|
99
|
+
rails-html-sanitizer (1.7.1)
|
|
100
|
+
loofah (~> 2.25, >= 2.25.2)
|
|
101
|
+
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)
|
|
102
|
+
railties (8.1.4)
|
|
103
|
+
actionpack (= 8.1.4)
|
|
104
|
+
activesupport (= 8.1.4)
|
|
96
105
|
irb (~> 1.13)
|
|
97
106
|
rackup (>= 1.0.0)
|
|
98
107
|
rake (>= 12.2)
|
|
99
108
|
thor (~> 1.0, >= 1.2.2)
|
|
109
|
+
tsort (>= 0.2)
|
|
100
110
|
zeitwerk (~> 2.6)
|
|
101
111
|
rainbow (3.1.1)
|
|
102
|
-
rake (13.2
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
112
|
+
rake (13.4.2)
|
|
113
|
+
rbs (4.2.0)
|
|
114
|
+
logger
|
|
115
|
+
prism (>= 1.6.0)
|
|
116
|
+
tsort
|
|
117
|
+
rdoc (8.1.0)
|
|
118
|
+
erb
|
|
119
|
+
prism (>= 1.6.0)
|
|
120
|
+
rbs (>= 4.0.0)
|
|
121
|
+
tsort
|
|
122
|
+
regexp_parser (2.13.1)
|
|
123
|
+
reline (0.7.0)
|
|
107
124
|
io-console (~> 0.5)
|
|
108
|
-
rspec (3.13.
|
|
125
|
+
rspec (3.13.2)
|
|
109
126
|
rspec-core (~> 3.13.0)
|
|
110
127
|
rspec-expectations (~> 3.13.0)
|
|
111
128
|
rspec-mocks (~> 3.13.0)
|
|
112
|
-
rspec-core (3.13.
|
|
129
|
+
rspec-core (3.13.6)
|
|
113
130
|
rspec-support (~> 3.13.0)
|
|
114
|
-
rspec-expectations (3.13.
|
|
131
|
+
rspec-expectations (3.13.5)
|
|
115
132
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
116
133
|
rspec-support (~> 3.13.0)
|
|
117
|
-
rspec-mocks (3.13.
|
|
134
|
+
rspec-mocks (3.13.8)
|
|
118
135
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
119
136
|
rspec-support (~> 3.13.0)
|
|
120
|
-
rspec-support (3.13.
|
|
121
|
-
rubocop (1.
|
|
122
|
-
json (
|
|
123
|
-
language_server-protocol (
|
|
124
|
-
|
|
137
|
+
rspec-support (3.13.7)
|
|
138
|
+
rubocop (1.92.1)
|
|
139
|
+
json (>= 2.3)
|
|
140
|
+
language_server-protocol (~> 3.17.0.2)
|
|
141
|
+
lint_roller (~> 1.1.0)
|
|
142
|
+
parallel (>= 1.10)
|
|
125
143
|
parser (>= 3.3.0.2)
|
|
126
144
|
rainbow (>= 2.2.2, < 4.0)
|
|
127
|
-
regexp_parser (>= 2.
|
|
128
|
-
rubocop-ast (>= 1.
|
|
145
|
+
regexp_parser (>= 2.11.3, < 3.0)
|
|
146
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
129
147
|
ruby-progressbar (~> 1.7)
|
|
130
|
-
unicode-display_width (>= 2.4.0, <
|
|
131
|
-
rubocop-ast (1.
|
|
132
|
-
parser (>= 3.3.
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
rubocop (
|
|
148
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
149
|
+
rubocop-ast (1.50.0)
|
|
150
|
+
parser (>= 3.3.7.2)
|
|
151
|
+
prism (~> 1.7)
|
|
152
|
+
rubocop-rake (0.7.1)
|
|
153
|
+
lint_roller (~> 1.1)
|
|
154
|
+
rubocop (>= 1.72.1)
|
|
155
|
+
rubocop-rspec (3.10.2)
|
|
156
|
+
lint_roller (~> 1.1)
|
|
157
|
+
regexp_parser (>= 2.0)
|
|
158
|
+
rubocop (~> 1.86, >= 1.86.2)
|
|
137
159
|
ruby-progressbar (1.13.0)
|
|
138
|
-
securerandom (0.
|
|
139
|
-
|
|
140
|
-
|
|
160
|
+
securerandom (0.4.1)
|
|
161
|
+
thor (1.5.0)
|
|
162
|
+
tsort (0.2.0)
|
|
141
163
|
tzinfo (2.0.6)
|
|
142
164
|
concurrent-ruby (~> 1.0)
|
|
143
|
-
unicode-display_width (
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
165
|
+
unicode-display_width (3.3.0)
|
|
166
|
+
unicode-emoji (~> 4.3)
|
|
167
|
+
unicode-emoji (4.3.0)
|
|
168
|
+
uri (1.1.2)
|
|
169
|
+
useragent (0.16.11)
|
|
170
|
+
zeitwerk (2.8.3)
|
|
147
171
|
|
|
148
172
|
PLATFORMS
|
|
149
173
|
x86_64-darwin-22
|
|
174
|
+
x86_64-darwin-23
|
|
175
|
+
x86_64-darwin-24
|
|
150
176
|
|
|
151
177
|
DEPENDENCIES
|
|
152
178
|
bp3-formtastic!
|
|
@@ -158,4 +184,4 @@ DEPENDENCIES
|
|
|
158
184
|
rubocop-rspec (>= 2.25)
|
|
159
185
|
|
|
160
186
|
BUNDLED WITH
|
|
161
|
-
2.
|
|
187
|
+
2.7.2
|
data/bp3-formtastic.gemspec
CHANGED
|
@@ -31,11 +31,11 @@ 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 'actionpack', '
|
|
35
|
-
spec.add_dependency 'actionview', '
|
|
36
|
-
spec.add_dependency 'activesupport', '
|
|
34
|
+
spec.add_dependency 'actionpack', '~> 8.1'
|
|
35
|
+
spec.add_dependency 'actionview', '~> 8.1'
|
|
36
|
+
spec.add_dependency 'activesupport', '~> 8.1'
|
|
37
37
|
spec.add_dependency 'formtastic', '>= 5.0'
|
|
38
|
-
spec.add_dependency 'railties', '
|
|
38
|
+
spec.add_dependency 'railties', '~> 8.1'
|
|
39
39
|
|
|
40
40
|
spec.add_development_dependency 'byebug'
|
|
41
41
|
spec.add_development_dependency 'rake', '>= 13.0'
|
|
@@ -10,7 +10,6 @@ module Bp3
|
|
|
10
10
|
module ::Formtastic
|
|
11
11
|
module Inputs
|
|
12
12
|
EXCLUDED_COLUMNS = %w[rqid sqnr].freeze
|
|
13
|
-
UUID_REGEX = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/
|
|
14
13
|
|
|
15
14
|
# PrependInputs provides formtastic input overrides
|
|
16
15
|
module PrependInputs
|
|
@@ -20,7 +19,6 @@ module Bp3
|
|
|
20
19
|
return super unless builder.respond_to?(:viz)
|
|
21
20
|
return nil if column.name.in?(EXCLUDED_COLUMNS)
|
|
22
21
|
|
|
23
|
-
builder.id&.gsub(/_#{UUID_REGEX}/, '')
|
|
24
22
|
viz = builder.viz(field_name, dom_id)
|
|
25
23
|
return nil if viz.present? && !viz.show_element
|
|
26
24
|
|
|
@@ -27,8 +27,14 @@ module Bp3
|
|
|
27
27
|
|
|
28
28
|
private
|
|
29
29
|
|
|
30
|
+
# Filed under the site load_vizfacts reads from, so the next render finds the record, and under
|
|
31
|
+
# that site's tenant and workspace. Left to the model's defaults, a page acting on a target site
|
|
32
|
+
# would take its site, tenant or workspace from the target instead.
|
|
30
33
|
def vizfact_attrs(element_name, element_ident)
|
|
31
34
|
{
|
|
35
|
+
sites_site: site,
|
|
36
|
+
tenant: template.controller.send(:current_tenant),
|
|
37
|
+
workspaces_workspace: template.controller.send(:current_workspace),
|
|
32
38
|
element_controller: template.controller.class.name,
|
|
33
39
|
element_action: template.controller.action_name,
|
|
34
40
|
element_name:,
|
|
@@ -40,13 +46,16 @@ module Bp3
|
|
|
40
46
|
def load_vizfacts
|
|
41
47
|
return if input_control_class.nil?
|
|
42
48
|
|
|
43
|
-
site = template.controller.send(:current_site)
|
|
44
49
|
controller = template.controller.class.name
|
|
45
50
|
action = template.controller.action_name
|
|
46
51
|
@vizfacts = input_control_class.where(sites_site: site, element_controller: controller,
|
|
47
52
|
element_action: action).to_a
|
|
48
53
|
end
|
|
49
54
|
|
|
55
|
+
def site
|
|
56
|
+
@site ||= template.controller.send(:current_site)
|
|
57
|
+
end
|
|
58
|
+
|
|
50
59
|
def input_control_class
|
|
51
60
|
Bp3::Formtastic.input_control_class
|
|
52
61
|
end
|
metadata
CHANGED
|
@@ -1,57 +1,56 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bp3-formtastic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
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: actionpack
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
|
-
- - "
|
|
16
|
+
- - "~>"
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
18
|
+
version: '8.1'
|
|
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: '8.1'
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
27
|
name: actionview
|
|
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: activesupport
|
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
|
44
43
|
requirements:
|
|
45
|
-
- - "
|
|
44
|
+
- - "~>"
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
|
-
version:
|
|
46
|
+
version: '8.1'
|
|
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:
|
|
53
|
+
version: '8.1'
|
|
55
54
|
- !ruby/object:Gem::Dependency
|
|
56
55
|
name: formtastic
|
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -70,16 +69,16 @@ dependencies:
|
|
|
70
69
|
name: railties
|
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
|
72
71
|
requirements:
|
|
73
|
-
- - "
|
|
72
|
+
- - "~>"
|
|
74
73
|
- !ruby/object:Gem::Version
|
|
75
|
-
version:
|
|
74
|
+
version: '8.1'
|
|
76
75
|
type: :runtime
|
|
77
76
|
prerelease: false
|
|
78
77
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
78
|
requirements:
|
|
80
|
-
- - "
|
|
79
|
+
- - "~>"
|
|
81
80
|
- !ruby/object:Gem::Version
|
|
82
|
-
version:
|
|
81
|
+
version: '8.1'
|
|
83
82
|
- !ruby/object:Gem::Dependency
|
|
84
83
|
name: byebug
|
|
85
84
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -164,7 +163,6 @@ dependencies:
|
|
|
164
163
|
- - ">="
|
|
165
164
|
- !ruby/object:Gem::Version
|
|
166
165
|
version: '2.25'
|
|
167
|
-
description:
|
|
168
166
|
email:
|
|
169
167
|
- wimdenbraven@persuavis.com
|
|
170
168
|
executables: []
|
|
@@ -175,6 +173,7 @@ files:
|
|
|
175
173
|
- ".rubocop.yml"
|
|
176
174
|
- ".yardopts"
|
|
177
175
|
- CHANGELOG.md
|
|
176
|
+
- CLAUDE.md
|
|
178
177
|
- Gemfile
|
|
179
178
|
- Gemfile.lock
|
|
180
179
|
- LICENSE.txt
|
|
@@ -197,7 +196,6 @@ metadata:
|
|
|
197
196
|
source_code_uri: https://github.com/persuavis/bp3-formtastic
|
|
198
197
|
changelog_uri: https://github.com/persuavis/bp3-formtastic/blob/main/CHANGELOG.md
|
|
199
198
|
rubygems_mfa_required: 'true'
|
|
200
|
-
post_install_message:
|
|
201
199
|
rdoc_options: []
|
|
202
200
|
require_paths:
|
|
203
201
|
- lib
|
|
@@ -212,8 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
212
210
|
- !ruby/object:Gem::Version
|
|
213
211
|
version: '0'
|
|
214
212
|
requirements: []
|
|
215
|
-
rubygems_version:
|
|
216
|
-
signing_key:
|
|
213
|
+
rubygems_version: 4.0.4
|
|
217
214
|
specification_version: 4
|
|
218
215
|
summary: bp3-formtastic adapts formtastic for BP3 (persuavis/black_phoebe_3).
|
|
219
216
|
test_files: []
|