bp3-railties 0.1.1 → 0.1.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 -3
- data/CHANGELOG.md +8 -0
- data/CLAUDE.md +105 -0
- data/Gemfile.lock +132 -114
- data/Rakefile +4 -3
- data/bp3-railties.gemspec +9 -9
- data/lib/bp3/railties/railtie.rb +1 -0
- data/lib/bp3/railties/version.rb +1 -1
- metadata +26 -53
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0c54fea4172b955d157345eeb5464eca4765d75813721dc374e4b09371b5e3c7
|
|
4
|
+
data.tar.gz: 2e5a6674a4df84028c39db243dc50020ff98fa3aa71b8e7b1ce2a601277cf8a7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 74573197b902485da83833e46957397234624c929fff0a8be49c14cf2f28cfdf023c8e88121b58d75be3915978d1d849f388e8a335016d0f310a7963d0b68de2
|
|
7
|
+
data.tar.gz: 9cb335899a8a8ea909e17d426cd4ca678343b247832e009ff8a1d933fc116ef533711b49a07f7bcc9bbd8c9b16f564788f1ad168c8479f7816862199c817131b
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/CLAUDE.md
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
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-railties is a Ruby gem that adapts Rails' `railties` for BP3 (persuavis/black_phoebe_3), a multi-site multi-tenant Rails application. The primary purpose is to enhance `Rails::MailersController` with BP3-specific functionality.
|
|
8
|
+
|
|
9
|
+
## Development Commands
|
|
10
|
+
|
|
11
|
+
### Setup
|
|
12
|
+
```bash
|
|
13
|
+
bin/setup # Install dependencies
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### Testing
|
|
17
|
+
```bash
|
|
18
|
+
rake spec # Run RSpec tests only
|
|
19
|
+
rake rubocop # Run RuboCop linting only
|
|
20
|
+
rake # Run both tests and linting (default task)
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
To run a single test file:
|
|
24
|
+
```bash
|
|
25
|
+
rspec spec/path/to/file_spec.rb
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
To run a specific test:
|
|
29
|
+
```bash
|
|
30
|
+
rspec spec/path/to/file_spec.rb:LINE_NUMBER
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Local Installation
|
|
34
|
+
```bash
|
|
35
|
+
rake install # Install gem locally
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Console
|
|
39
|
+
```bash
|
|
40
|
+
bin/console # Interactive prompt for experimentation
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Architecture
|
|
44
|
+
|
|
45
|
+
### Core Functionality
|
|
46
|
+
|
|
47
|
+
The gem uses a Rails Railtie to monkey-patch `Rails::MailersController` at application initialization. This happens in `lib/bp3/railties/railtie.rb:8-22`.
|
|
48
|
+
|
|
49
|
+
**Key mechanism**: After Rails initializes, the gem:
|
|
50
|
+
1. Preloads `Rails::MailersController`
|
|
51
|
+
2. Reopens the class and includes four modules from `bp3-core`:
|
|
52
|
+
- `Bp3::Core::Actions`
|
|
53
|
+
- `Bp3::Core::Settings`
|
|
54
|
+
- `Bp3::Core::FeatureFlags`
|
|
55
|
+
- `Bp3::Core::Cookies`
|
|
56
|
+
3. Adds a `before_action :authenticate_root!` filter
|
|
57
|
+
|
|
58
|
+
### Module Structure
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
lib/
|
|
62
|
+
bp3-railties.rb # Entry point, requires bp3/railties
|
|
63
|
+
bp3/
|
|
64
|
+
railties.rb # Main module, requires railtie and version
|
|
65
|
+
railties/
|
|
66
|
+
railtie.rb # Rails integration via Railtie
|
|
67
|
+
version.rb # Version constant
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Dependencies
|
|
71
|
+
|
|
72
|
+
- **Runtime**: `bp3-core` (>= 0.1), Rails components (`railties`, `actionmailer`, `activesupport`)
|
|
73
|
+
- **Rails version**: 7.1.2 to < 8.1.2
|
|
74
|
+
- **Ruby version**: >= 3.2.0
|
|
75
|
+
|
|
76
|
+
## RuboCop Configuration
|
|
77
|
+
|
|
78
|
+
The project uses RuboCop with the following plugins:
|
|
79
|
+
- rubocop-rake
|
|
80
|
+
- rubocop-rspec
|
|
81
|
+
|
|
82
|
+
Notable exceptions in `.rubocop.yml`:
|
|
83
|
+
- `Lint/ConstantDefinitionInBlock` and `Lint/Void` are disabled for railtie files (necessary for monkey-patching)
|
|
84
|
+
- `Naming/FileName` excludes `lib/bp3-*.rb` files
|
|
85
|
+
- Documentation is disabled (`Style/Documentation: false`)
|
|
86
|
+
|
|
87
|
+
## Testing Notes
|
|
88
|
+
|
|
89
|
+
The test suite uses RSpec with:
|
|
90
|
+
- `--only-failures` and `--next-failure` flags enabled
|
|
91
|
+
- Example status persistence in `.rspec_status`
|
|
92
|
+
- Monkey patching disabled
|
|
93
|
+
- Expect syntax only
|
|
94
|
+
|
|
95
|
+
Current test coverage is minimal - only verifies version constant exists. The commented-out test in `spec/bp3/railties_spec.rb:11-16` suggests intended testing of module inclusion but requires a Rails application context to run properly.
|
|
96
|
+
|
|
97
|
+
## Release Process
|
|
98
|
+
|
|
99
|
+
Per README:
|
|
100
|
+
1. Update version in `lib/bp3/railties/version.rb`
|
|
101
|
+
2. Run `rake release` (creates git tag, pushes commits/tags, publishes to rubygems.org)
|
|
102
|
+
|
|
103
|
+
## BP3 Ecosystem Context
|
|
104
|
+
|
|
105
|
+
This gem is part of the BP3 (Black Phoebe 3) ecosystem, a multi-site multi-tenant Rails application. It depends on `bp3-core` for the modules it includes into `Rails::MailersController`. The primary use case is enabling BP3's authentication, feature flags, and tenant-specific settings in the Rails mailer preview interface.
|
data/Gemfile.lock
CHANGED
|
@@ -1,201 +1,219 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
bp3-railties (0.1.
|
|
5
|
-
actionmailer (
|
|
6
|
-
activesupport (
|
|
7
|
-
bp3-core (>= 0.1
|
|
8
|
-
railties (
|
|
4
|
+
bp3-railties (0.1.3)
|
|
5
|
+
actionmailer (~> 8.1)
|
|
6
|
+
activesupport (~> 8.1)
|
|
7
|
+
bp3-core (>= 0.1)
|
|
8
|
+
railties (~> 8.1)
|
|
9
9
|
|
|
10
10
|
GEM
|
|
11
11
|
remote: https://rubygems.org/
|
|
12
12
|
specs:
|
|
13
|
-
actionmailer (
|
|
14
|
-
actionpack (=
|
|
15
|
-
actionview (=
|
|
16
|
-
activejob (=
|
|
17
|
-
activesupport (=
|
|
18
|
-
mail (
|
|
19
|
-
net-imap
|
|
20
|
-
net-pop
|
|
21
|
-
net-smtp
|
|
13
|
+
actionmailer (8.1.2)
|
|
14
|
+
actionpack (= 8.1.2)
|
|
15
|
+
actionview (= 8.1.2)
|
|
16
|
+
activejob (= 8.1.2)
|
|
17
|
+
activesupport (= 8.1.2)
|
|
18
|
+
mail (>= 2.8.0)
|
|
22
19
|
rails-dom-testing (~> 2.2)
|
|
23
|
-
actionpack (
|
|
24
|
-
actionview (=
|
|
25
|
-
activesupport (=
|
|
20
|
+
actionpack (8.1.2)
|
|
21
|
+
actionview (= 8.1.2)
|
|
22
|
+
activesupport (= 8.1.2)
|
|
26
23
|
nokogiri (>= 1.8.5)
|
|
27
|
-
racc
|
|
28
24
|
rack (>= 2.2.4)
|
|
29
25
|
rack-session (>= 1.0.1)
|
|
30
26
|
rack-test (>= 0.6.3)
|
|
31
27
|
rails-dom-testing (~> 2.2)
|
|
32
28
|
rails-html-sanitizer (~> 1.6)
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
useragent (~> 0.16)
|
|
30
|
+
actionview (8.1.2)
|
|
31
|
+
activesupport (= 8.1.2)
|
|
35
32
|
builder (~> 3.1)
|
|
36
33
|
erubi (~> 1.11)
|
|
37
34
|
rails-dom-testing (~> 2.2)
|
|
38
35
|
rails-html-sanitizer (~> 1.6)
|
|
39
|
-
activejob (
|
|
40
|
-
activesupport (=
|
|
36
|
+
activejob (8.1.2)
|
|
37
|
+
activesupport (= 8.1.2)
|
|
41
38
|
globalid (>= 0.3.6)
|
|
42
|
-
activesupport (
|
|
39
|
+
activesupport (8.1.2)
|
|
43
40
|
base64
|
|
44
41
|
bigdecimal
|
|
45
|
-
concurrent-ruby (~> 1.0, >= 1.
|
|
42
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
46
43
|
connection_pool (>= 2.2.5)
|
|
47
44
|
drb
|
|
48
45
|
i18n (>= 1.6, < 2)
|
|
46
|
+
json
|
|
47
|
+
logger (>= 1.4.2)
|
|
49
48
|
minitest (>= 5.1)
|
|
50
|
-
|
|
51
|
-
tzinfo (~> 2.0)
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
49
|
+
securerandom (>= 0.3)
|
|
50
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
51
|
+
uri (>= 0.13.1)
|
|
52
|
+
ast (2.4.3)
|
|
53
|
+
base64 (0.3.0)
|
|
54
|
+
bigdecimal (4.0.1)
|
|
55
|
+
bp3-core (0.2.0)
|
|
56
|
+
actionview (~> 8.1)
|
|
57
|
+
activesupport (~> 8.1)
|
|
58
|
+
bp3-request_state (~> 0.1)
|
|
59
|
+
bp3-request_state (0.1.3)
|
|
60
|
+
actionpack (~> 8.1)
|
|
61
|
+
activesupport (~> 8.1)
|
|
62
|
+
request_store (>= 1.5.1)
|
|
63
|
+
builder (3.3.0)
|
|
64
|
+
byebug (12.0.0)
|
|
65
|
+
concurrent-ruby (1.3.6)
|
|
66
|
+
connection_pool (3.0.2)
|
|
62
67
|
crass (1.0.6)
|
|
63
|
-
date (3.
|
|
64
|
-
diff-lcs (1.
|
|
65
|
-
drb (2.2.
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
date (3.5.1)
|
|
69
|
+
diff-lcs (1.6.2)
|
|
70
|
+
drb (2.2.3)
|
|
71
|
+
erb (6.0.1)
|
|
72
|
+
erubi (1.13.1)
|
|
73
|
+
globalid (1.3.0)
|
|
68
74
|
activesupport (>= 6.1)
|
|
69
|
-
i18n (1.14.
|
|
75
|
+
i18n (1.14.8)
|
|
70
76
|
concurrent-ruby (~> 1.0)
|
|
71
|
-
io-console (0.
|
|
72
|
-
irb (1.
|
|
77
|
+
io-console (0.8.2)
|
|
78
|
+
irb (1.16.0)
|
|
79
|
+
pp (>= 0.6.0)
|
|
73
80
|
rdoc (>= 4.0.0)
|
|
74
81
|
reline (>= 0.4.2)
|
|
75
|
-
json (2.
|
|
76
|
-
language_server-protocol (3.17.0.
|
|
77
|
-
|
|
82
|
+
json (2.18.0)
|
|
83
|
+
language_server-protocol (3.17.0.5)
|
|
84
|
+
lint_roller (1.1.0)
|
|
85
|
+
logger (1.7.0)
|
|
86
|
+
loofah (2.25.0)
|
|
78
87
|
crass (~> 1.0.2)
|
|
79
88
|
nokogiri (>= 1.12.0)
|
|
80
|
-
mail (2.
|
|
89
|
+
mail (2.9.0)
|
|
90
|
+
logger
|
|
81
91
|
mini_mime (>= 0.1.1)
|
|
82
92
|
net-imap
|
|
83
93
|
net-pop
|
|
84
94
|
net-smtp
|
|
85
95
|
mini_mime (1.1.5)
|
|
86
|
-
minitest (
|
|
87
|
-
|
|
88
|
-
net-imap (0.
|
|
96
|
+
minitest (6.0.1)
|
|
97
|
+
prism (~> 1.5)
|
|
98
|
+
net-imap (0.6.2)
|
|
89
99
|
date
|
|
90
100
|
net-protocol
|
|
91
101
|
net-pop (0.1.2)
|
|
92
102
|
net-protocol
|
|
93
103
|
net-protocol (0.2.2)
|
|
94
104
|
timeout
|
|
95
|
-
net-smtp (0.5.
|
|
105
|
+
net-smtp (0.5.1)
|
|
96
106
|
net-protocol
|
|
97
|
-
nokogiri (1.
|
|
107
|
+
nokogiri (1.19.0-x86_64-darwin)
|
|
98
108
|
racc (~> 1.4)
|
|
99
|
-
parallel (1.
|
|
100
|
-
parser (3.3.
|
|
109
|
+
parallel (1.27.0)
|
|
110
|
+
parser (3.3.10.0)
|
|
101
111
|
ast (~> 2.4.1)
|
|
102
112
|
racc
|
|
103
|
-
|
|
113
|
+
pp (0.6.3)
|
|
114
|
+
prettyprint
|
|
115
|
+
prettyprint (0.2.0)
|
|
116
|
+
prism (1.7.0)
|
|
117
|
+
psych (5.3.1)
|
|
118
|
+
date
|
|
104
119
|
stringio
|
|
105
|
-
racc (1.8.
|
|
106
|
-
rack (3.
|
|
107
|
-
rack-session (2.
|
|
120
|
+
racc (1.8.1)
|
|
121
|
+
rack (3.2.4)
|
|
122
|
+
rack-session (2.1.1)
|
|
123
|
+
base64 (>= 0.1.0)
|
|
108
124
|
rack (>= 3.0.0)
|
|
109
|
-
rack-test (2.
|
|
125
|
+
rack-test (2.2.0)
|
|
110
126
|
rack (>= 1.3)
|
|
111
|
-
rackup (2.1
|
|
127
|
+
rackup (2.3.1)
|
|
112
128
|
rack (>= 3)
|
|
113
|
-
|
|
114
|
-
rails-dom-testing (2.2.0)
|
|
129
|
+
rails-dom-testing (2.3.0)
|
|
115
130
|
activesupport (>= 5.0.0)
|
|
116
131
|
minitest
|
|
117
132
|
nokogiri (>= 1.6)
|
|
118
|
-
rails-html-sanitizer (1.6.
|
|
133
|
+
rails-html-sanitizer (1.6.2)
|
|
119
134
|
loofah (~> 2.21)
|
|
120
|
-
nokogiri (
|
|
121
|
-
railties (
|
|
122
|
-
actionpack (=
|
|
123
|
-
activesupport (=
|
|
124
|
-
irb
|
|
135
|
+
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)
|
|
136
|
+
railties (8.1.2)
|
|
137
|
+
actionpack (= 8.1.2)
|
|
138
|
+
activesupport (= 8.1.2)
|
|
139
|
+
irb (~> 1.13)
|
|
125
140
|
rackup (>= 1.0.0)
|
|
126
141
|
rake (>= 12.2)
|
|
127
142
|
thor (~> 1.0, >= 1.2.2)
|
|
143
|
+
tsort (>= 0.2)
|
|
128
144
|
zeitwerk (~> 2.6)
|
|
129
145
|
rainbow (3.1.1)
|
|
130
|
-
rake (13.
|
|
131
|
-
rdoc (
|
|
146
|
+
rake (13.3.1)
|
|
147
|
+
rdoc (7.0.3)
|
|
148
|
+
erb
|
|
132
149
|
psych (>= 4.0.0)
|
|
133
|
-
|
|
134
|
-
|
|
150
|
+
tsort
|
|
151
|
+
regexp_parser (2.11.3)
|
|
152
|
+
reline (0.6.3)
|
|
135
153
|
io-console (~> 0.5)
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
rspec (3.13.
|
|
154
|
+
request_store (1.7.0)
|
|
155
|
+
rack (>= 1.4)
|
|
156
|
+
rspec (3.13.2)
|
|
139
157
|
rspec-core (~> 3.13.0)
|
|
140
158
|
rspec-expectations (~> 3.13.0)
|
|
141
159
|
rspec-mocks (~> 3.13.0)
|
|
142
|
-
rspec-core (3.13.
|
|
160
|
+
rspec-core (3.13.6)
|
|
143
161
|
rspec-support (~> 3.13.0)
|
|
144
|
-
rspec-expectations (3.13.
|
|
162
|
+
rspec-expectations (3.13.5)
|
|
145
163
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
146
164
|
rspec-support (~> 3.13.0)
|
|
147
|
-
rspec-mocks (3.13.
|
|
165
|
+
rspec-mocks (3.13.7)
|
|
148
166
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
149
167
|
rspec-support (~> 3.13.0)
|
|
150
|
-
rspec-support (3.13.
|
|
151
|
-
rubocop (1.
|
|
168
|
+
rspec-support (3.13.6)
|
|
169
|
+
rubocop (1.82.1)
|
|
152
170
|
json (~> 2.3)
|
|
153
|
-
language_server-protocol (
|
|
171
|
+
language_server-protocol (~> 3.17.0.2)
|
|
172
|
+
lint_roller (~> 1.1.0)
|
|
154
173
|
parallel (~> 1.10)
|
|
155
174
|
parser (>= 3.3.0.2)
|
|
156
175
|
rainbow (>= 2.2.2, < 4.0)
|
|
157
|
-
regexp_parser (>=
|
|
158
|
-
|
|
159
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
|
176
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
|
177
|
+
rubocop-ast (>= 1.48.0, < 2.0)
|
|
160
178
|
ruby-progressbar (~> 1.7)
|
|
161
|
-
unicode-display_width (>= 2.4.0, <
|
|
162
|
-
rubocop-ast (1.
|
|
163
|
-
parser (>= 3.3.
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
rubocop (
|
|
168
|
-
rubocop-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
rubocop (~> 1.40)
|
|
172
|
-
rubocop-capybara (~> 2.17)
|
|
173
|
-
rubocop-factory_bot (~> 2.22)
|
|
174
|
-
rubocop-rspec_rails (~> 2.28)
|
|
175
|
-
rubocop-rspec_rails (2.28.3)
|
|
176
|
-
rubocop (~> 1.40)
|
|
179
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
|
180
|
+
rubocop-ast (1.49.0)
|
|
181
|
+
parser (>= 3.3.7.2)
|
|
182
|
+
prism (~> 1.7)
|
|
183
|
+
rubocop-rake (0.7.1)
|
|
184
|
+
lint_roller (~> 1.1)
|
|
185
|
+
rubocop (>= 1.72.1)
|
|
186
|
+
rubocop-rspec (3.9.0)
|
|
187
|
+
lint_roller (~> 1.1)
|
|
188
|
+
rubocop (~> 1.81)
|
|
177
189
|
ruby-progressbar (1.13.0)
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
thor (1.
|
|
181
|
-
timeout (0.
|
|
190
|
+
securerandom (0.4.1)
|
|
191
|
+
stringio (3.2.0)
|
|
192
|
+
thor (1.5.0)
|
|
193
|
+
timeout (0.6.0)
|
|
194
|
+
tsort (0.2.0)
|
|
182
195
|
tzinfo (2.0.6)
|
|
183
196
|
concurrent-ruby (~> 1.0)
|
|
184
|
-
unicode-display_width (2.
|
|
185
|
-
|
|
186
|
-
|
|
197
|
+
unicode-display_width (3.2.0)
|
|
198
|
+
unicode-emoji (~> 4.1)
|
|
199
|
+
unicode-emoji (4.2.0)
|
|
200
|
+
uri (1.1.1)
|
|
201
|
+
useragent (0.16.11)
|
|
202
|
+
zeitwerk (2.7.4)
|
|
187
203
|
|
|
188
204
|
PLATFORMS
|
|
189
205
|
x86_64-darwin-22
|
|
206
|
+
x86_64-darwin-23
|
|
207
|
+
x86_64-darwin-24
|
|
190
208
|
|
|
191
209
|
DEPENDENCIES
|
|
192
210
|
bp3-railties!
|
|
193
211
|
byebug
|
|
194
|
-
rake (
|
|
195
|
-
rspec (
|
|
196
|
-
rubocop (
|
|
197
|
-
rubocop-rake (
|
|
198
|
-
rubocop-rspec (
|
|
212
|
+
rake (>= 13.0)
|
|
213
|
+
rspec (>= 3.0)
|
|
214
|
+
rubocop (>= 1.21)
|
|
215
|
+
rubocop-rake (>= 0.6)
|
|
216
|
+
rubocop-rspec (>= 2.25)
|
|
199
217
|
|
|
200
218
|
BUNDLED WITH
|
|
201
|
-
2.
|
|
219
|
+
2.7.2
|
data/Rakefile
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require 'bundler/setup'
|
|
3
4
|
require 'bundler/gem_tasks'
|
|
4
5
|
require 'rspec/core/rake_task'
|
|
5
|
-
|
|
6
|
-
RSpec::Core::RakeTask.new(:spec)
|
|
7
|
-
|
|
8
6
|
require 'rubocop/rake_task'
|
|
9
7
|
|
|
8
|
+
Dir.glob('lib/tasks/**/*.rake').each { |file| load file }
|
|
9
|
+
|
|
10
|
+
RSpec::Core::RakeTask.new(:spec)
|
|
10
11
|
RuboCop::RakeTask.new
|
|
11
12
|
|
|
12
13
|
task default: %i[spec rubocop]
|
data/bp3-railties.gemspec
CHANGED
|
@@ -31,17 +31,17 @@ 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 'actionmailer',
|
|
35
|
-
spec.add_dependency 'activesupport',
|
|
36
|
-
spec.add_dependency 'bp3-core',
|
|
37
|
-
spec.add_dependency 'railties',
|
|
34
|
+
spec.add_dependency 'actionmailer', '~> 8.1'
|
|
35
|
+
spec.add_dependency 'activesupport', '~> 8.1'
|
|
36
|
+
spec.add_dependency 'bp3-core', '>= 0.1'
|
|
37
|
+
spec.add_dependency 'railties', '~> 8.1'
|
|
38
38
|
|
|
39
39
|
spec.add_development_dependency 'byebug'
|
|
40
|
-
spec.add_development_dependency 'rake', '
|
|
41
|
-
spec.add_development_dependency 'rspec', '
|
|
42
|
-
spec.add_development_dependency 'rubocop', '
|
|
43
|
-
spec.add_development_dependency 'rubocop-rake', '
|
|
44
|
-
spec.add_development_dependency 'rubocop-rspec', '
|
|
40
|
+
spec.add_development_dependency 'rake', '>= 13.0'
|
|
41
|
+
spec.add_development_dependency 'rspec', '>= 3.0'
|
|
42
|
+
spec.add_development_dependency 'rubocop', '>= 1.21'
|
|
43
|
+
spec.add_development_dependency 'rubocop-rake', '>= 0.6'
|
|
44
|
+
spec.add_development_dependency 'rubocop-rspec', '>= 2.25'
|
|
45
45
|
|
|
46
46
|
# For more information and examples about making a new gem, check out our
|
|
47
47
|
# guide at: https://bundler.io/guides/creating_gem.html
|
data/lib/bp3/railties/railtie.rb
CHANGED
data/lib/bp3/railties/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,55 +1,42 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bp3-railties
|
|
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
|
- 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: actionmailer
|
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
|
16
15
|
requirements:
|
|
17
|
-
- - "
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: 7.1.2
|
|
20
|
-
- - "<"
|
|
16
|
+
- - "~>"
|
|
21
17
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: '8'
|
|
18
|
+
version: '8.1'
|
|
23
19
|
type: :runtime
|
|
24
20
|
prerelease: false
|
|
25
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
22
|
requirements:
|
|
27
|
-
- - "
|
|
28
|
-
- !ruby/object:Gem::Version
|
|
29
|
-
version: 7.1.2
|
|
30
|
-
- - "<"
|
|
23
|
+
- - "~>"
|
|
31
24
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: '8'
|
|
25
|
+
version: '8.1'
|
|
33
26
|
- !ruby/object:Gem::Dependency
|
|
34
27
|
name: activesupport
|
|
35
28
|
requirement: !ruby/object:Gem::Requirement
|
|
36
29
|
requirements:
|
|
37
|
-
- - "
|
|
38
|
-
- !ruby/object:Gem::Version
|
|
39
|
-
version: 7.1.2
|
|
40
|
-
- - "<"
|
|
30
|
+
- - "~>"
|
|
41
31
|
- !ruby/object:Gem::Version
|
|
42
|
-
version: '8'
|
|
32
|
+
version: '8.1'
|
|
43
33
|
type: :runtime
|
|
44
34
|
prerelease: false
|
|
45
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
46
36
|
requirements:
|
|
47
|
-
- - "
|
|
48
|
-
- !ruby/object:Gem::Version
|
|
49
|
-
version: 7.1.2
|
|
50
|
-
- - "<"
|
|
37
|
+
- - "~>"
|
|
51
38
|
- !ruby/object:Gem::Version
|
|
52
|
-
version: '8'
|
|
39
|
+
version: '8.1'
|
|
53
40
|
- !ruby/object:Gem::Dependency
|
|
54
41
|
name: bp3-core
|
|
55
42
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -57,9 +44,6 @@ dependencies:
|
|
|
57
44
|
- - ">="
|
|
58
45
|
- !ruby/object:Gem::Version
|
|
59
46
|
version: '0.1'
|
|
60
|
-
- - "<"
|
|
61
|
-
- !ruby/object:Gem::Version
|
|
62
|
-
version: '1'
|
|
63
47
|
type: :runtime
|
|
64
48
|
prerelease: false
|
|
65
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -67,29 +51,20 @@ dependencies:
|
|
|
67
51
|
- - ">="
|
|
68
52
|
- !ruby/object:Gem::Version
|
|
69
53
|
version: '0.1'
|
|
70
|
-
- - "<"
|
|
71
|
-
- !ruby/object:Gem::Version
|
|
72
|
-
version: '1'
|
|
73
54
|
- !ruby/object:Gem::Dependency
|
|
74
55
|
name: railties
|
|
75
56
|
requirement: !ruby/object:Gem::Requirement
|
|
76
57
|
requirements:
|
|
77
|
-
- - "
|
|
78
|
-
- !ruby/object:Gem::Version
|
|
79
|
-
version: 7.1.2
|
|
80
|
-
- - "<"
|
|
58
|
+
- - "~>"
|
|
81
59
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '8'
|
|
60
|
+
version: '8.1'
|
|
83
61
|
type: :runtime
|
|
84
62
|
prerelease: false
|
|
85
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
86
64
|
requirements:
|
|
87
|
-
- - "
|
|
88
|
-
- !ruby/object:Gem::Version
|
|
89
|
-
version: 7.1.2
|
|
90
|
-
- - "<"
|
|
65
|
+
- - "~>"
|
|
91
66
|
- !ruby/object:Gem::Version
|
|
92
|
-
version: '8'
|
|
67
|
+
version: '8.1'
|
|
93
68
|
- !ruby/object:Gem::Dependency
|
|
94
69
|
name: byebug
|
|
95
70
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -108,73 +83,72 @@ dependencies:
|
|
|
108
83
|
name: rake
|
|
109
84
|
requirement: !ruby/object:Gem::Requirement
|
|
110
85
|
requirements:
|
|
111
|
-
- - "
|
|
86
|
+
- - ">="
|
|
112
87
|
- !ruby/object:Gem::Version
|
|
113
88
|
version: '13.0'
|
|
114
89
|
type: :development
|
|
115
90
|
prerelease: false
|
|
116
91
|
version_requirements: !ruby/object:Gem::Requirement
|
|
117
92
|
requirements:
|
|
118
|
-
- - "
|
|
93
|
+
- - ">="
|
|
119
94
|
- !ruby/object:Gem::Version
|
|
120
95
|
version: '13.0'
|
|
121
96
|
- !ruby/object:Gem::Dependency
|
|
122
97
|
name: rspec
|
|
123
98
|
requirement: !ruby/object:Gem::Requirement
|
|
124
99
|
requirements:
|
|
125
|
-
- - "
|
|
100
|
+
- - ">="
|
|
126
101
|
- !ruby/object:Gem::Version
|
|
127
102
|
version: '3.0'
|
|
128
103
|
type: :development
|
|
129
104
|
prerelease: false
|
|
130
105
|
version_requirements: !ruby/object:Gem::Requirement
|
|
131
106
|
requirements:
|
|
132
|
-
- - "
|
|
107
|
+
- - ">="
|
|
133
108
|
- !ruby/object:Gem::Version
|
|
134
109
|
version: '3.0'
|
|
135
110
|
- !ruby/object:Gem::Dependency
|
|
136
111
|
name: rubocop
|
|
137
112
|
requirement: !ruby/object:Gem::Requirement
|
|
138
113
|
requirements:
|
|
139
|
-
- - "
|
|
114
|
+
- - ">="
|
|
140
115
|
- !ruby/object:Gem::Version
|
|
141
116
|
version: '1.21'
|
|
142
117
|
type: :development
|
|
143
118
|
prerelease: false
|
|
144
119
|
version_requirements: !ruby/object:Gem::Requirement
|
|
145
120
|
requirements:
|
|
146
|
-
- - "
|
|
121
|
+
- - ">="
|
|
147
122
|
- !ruby/object:Gem::Version
|
|
148
123
|
version: '1.21'
|
|
149
124
|
- !ruby/object:Gem::Dependency
|
|
150
125
|
name: rubocop-rake
|
|
151
126
|
requirement: !ruby/object:Gem::Requirement
|
|
152
127
|
requirements:
|
|
153
|
-
- - "
|
|
128
|
+
- - ">="
|
|
154
129
|
- !ruby/object:Gem::Version
|
|
155
130
|
version: '0.6'
|
|
156
131
|
type: :development
|
|
157
132
|
prerelease: false
|
|
158
133
|
version_requirements: !ruby/object:Gem::Requirement
|
|
159
134
|
requirements:
|
|
160
|
-
- - "
|
|
135
|
+
- - ">="
|
|
161
136
|
- !ruby/object:Gem::Version
|
|
162
137
|
version: '0.6'
|
|
163
138
|
- !ruby/object:Gem::Dependency
|
|
164
139
|
name: rubocop-rspec
|
|
165
140
|
requirement: !ruby/object:Gem::Requirement
|
|
166
141
|
requirements:
|
|
167
|
-
- - "
|
|
142
|
+
- - ">="
|
|
168
143
|
- !ruby/object:Gem::Version
|
|
169
144
|
version: '2.25'
|
|
170
145
|
type: :development
|
|
171
146
|
prerelease: false
|
|
172
147
|
version_requirements: !ruby/object:Gem::Requirement
|
|
173
148
|
requirements:
|
|
174
|
-
- - "
|
|
149
|
+
- - ">="
|
|
175
150
|
- !ruby/object:Gem::Version
|
|
176
151
|
version: '2.25'
|
|
177
|
-
description:
|
|
178
152
|
email:
|
|
179
153
|
- wimdenbraven@persuavis.com
|
|
180
154
|
executables: []
|
|
@@ -185,6 +159,7 @@ files:
|
|
|
185
159
|
- ".rubocop.yml"
|
|
186
160
|
- ".yardopts"
|
|
187
161
|
- CHANGELOG.md
|
|
162
|
+
- CLAUDE.md
|
|
188
163
|
- Gemfile
|
|
189
164
|
- Gemfile.lock
|
|
190
165
|
- LICENSE.txt
|
|
@@ -205,7 +180,6 @@ metadata:
|
|
|
205
180
|
source_code_uri: https://github.com/persuavis/bp3-railties
|
|
206
181
|
changelog_uri: https://github.com/persuavis/bp3-railties/blob/main/CHANGELOG.md
|
|
207
182
|
rubygems_mfa_required: 'true'
|
|
208
|
-
post_install_message:
|
|
209
183
|
rdoc_options: []
|
|
210
184
|
require_paths:
|
|
211
185
|
- lib
|
|
@@ -220,8 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
220
194
|
- !ruby/object:Gem::Version
|
|
221
195
|
version: '0'
|
|
222
196
|
requirements: []
|
|
223
|
-
rubygems_version: 3.
|
|
224
|
-
signing_key:
|
|
197
|
+
rubygems_version: 3.6.9
|
|
225
198
|
specification_version: 4
|
|
226
199
|
summary: bp3-railties adapts friendly_id for BP3 (persuavis/black_phoebe_3).
|
|
227
200
|
test_files: []
|