rails-footnotes 5.0.0 → 7.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +10 -0
- data/.github/workflows/ci.yml +2 -8
- data/.github/workflows/merge-dependabot.yml +33 -0
- data/.gitignore +3 -8
- data/.ruby-version +1 -0
- data/Gemfile +6 -1
- data/Gemfile.lock +193 -124
- data/{README.rdoc → README.md} +65 -59
- data/lib/generators/templates/rails_footnotes.rb +3 -0
- data/lib/rails-footnotes/filter.rb +42 -29
- data/lib/rails-footnotes/notes/assigns_note.rb +23 -20
- data/lib/rails-footnotes/notes/controller_note.rb +2 -2
- data/lib/rails-footnotes/notes/log_note/note_logger.rb +0 -38
- data/lib/rails-footnotes/notes/log_note.rb +8 -5
- data/lib/rails-footnotes/notes/partials_note.rb +2 -2
- data/lib/rails-footnotes/notes/queries_note.rb +4 -6
- data/lib/rails-footnotes/notes/view_note.rb +5 -5
- data/lib/rails-footnotes/version.rb +1 -1
- data/lib/rails-footnotes.rb +18 -16
- data/rails-footnotes.gemspec +3 -5
- data/renovate.json +5 -0
- data/spec/footnotes_spec.rb +173 -140
- data/spec/notes/assigns_note_spec.rb +27 -9
- data/spec/spec_helper.rb +1 -1
- data/spec/support/active_record.rb +22 -0
- metadata +13 -8
- data/lib/rails6-footnotes.rb +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0806369e63f41ba98bc1ca73ea106d8d0d77a804e4118a1e4d35c8b504e76895'
|
4
|
+
data.tar.gz: 3081ed9edcd94647f9d977329de5e1fe71a859410d99325f3e42bdcb9b54cb8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c448ae88bc1b66831537d29108d8e37404ae888631e522a25cbff351341551ee875eaf443c42f8a146761e8e48db53244746628b2f0b3474c8415c215e763d7f
|
7
|
+
data.tar.gz: 0147a705dc6ccca11c82ca5fda8d14e88e116f4a3ea44f1f29822cf66596c0369e437d99b979036998307308d8c4f1bef555f6f9e6d7c44964174b7ae946d7eb
|
data/.github/workflows/ci.yml
CHANGED
@@ -8,18 +8,12 @@ on:
|
|
8
8
|
|
9
9
|
jobs:
|
10
10
|
test:
|
11
|
-
|
12
11
|
runs-on: ubuntu-latest
|
13
|
-
strategy:
|
14
|
-
matrix:
|
15
|
-
ruby-version: ['3.0']
|
16
|
-
|
17
12
|
steps:
|
18
|
-
- uses: actions/checkout@
|
13
|
+
- uses: actions/checkout@v4
|
19
14
|
- name: Set up Ruby
|
20
15
|
uses: ruby/setup-ruby@v1
|
21
16
|
with:
|
22
|
-
|
23
|
-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
17
|
+
bundler-cache: true
|
24
18
|
- name: Run tests
|
25
19
|
run: bin/rspec
|
@@ -0,0 +1,33 @@
|
|
1
|
+
name: "Merge updates"
|
2
|
+
on:
|
3
|
+
workflow_run:
|
4
|
+
workflows: ["CI"]
|
5
|
+
types: ["completed"]
|
6
|
+
branches: ["dependabot/**"]
|
7
|
+
jobs:
|
8
|
+
merge:
|
9
|
+
name: "Merge"
|
10
|
+
runs-on: "ubuntu-latest"
|
11
|
+
permissions:
|
12
|
+
contents: write
|
13
|
+
issues: write
|
14
|
+
pull-requests: write
|
15
|
+
if: >
|
16
|
+
github.event.workflow_run.event == 'pull_request' &&
|
17
|
+
github.event.workflow_run.conclusion == 'success' &&
|
18
|
+
github.actor == 'dependabot[bot]'
|
19
|
+
steps:
|
20
|
+
- name: "Merge pull request"
|
21
|
+
uses: "actions/github-script@v7"
|
22
|
+
with:
|
23
|
+
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
24
|
+
script: |
|
25
|
+
const pullRequest = context.payload.workflow_run.pull_requests[0]
|
26
|
+
const repository = context.repo
|
27
|
+
|
28
|
+
await github.rest.pulls.merge({
|
29
|
+
merge_method: "merge",
|
30
|
+
owner: repository.owner,
|
31
|
+
pull_number: pullRequest.number,
|
32
|
+
repo: repository.repo,
|
33
|
+
})
|
data/.gitignore
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.2.2
|
data/Gemfile
CHANGED
@@ -2,9 +2,14 @@ source "https://rubygems.org"
|
|
2
2
|
|
3
3
|
gemspec
|
4
4
|
|
5
|
+
ruby file: ".ruby-version"
|
6
|
+
|
5
7
|
gem "capybara", "~> 3.35"
|
8
|
+
gem "gem-release", "~> 2.2"
|
9
|
+
gem "matrix", "~> 0.4.2"
|
6
10
|
gem "nokogiri", "~> 1.12"
|
7
11
|
gem "pry", "~> 0.14.1"
|
8
12
|
gem "rake", "~> 13.0"
|
9
|
-
gem "rspec-rails", "~>
|
13
|
+
gem "rspec-rails", "~> 6.0"
|
10
14
|
gem "sprockets-rails", "~> 3.2"
|
15
|
+
gem "sqlite3", "~> 1.6"
|
data/Gemfile.lock
CHANGED
@@ -1,76 +1,94 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rails-footnotes (
|
5
|
-
rails (~>
|
4
|
+
rails-footnotes (7.0.1)
|
5
|
+
rails (~> 7.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actioncable (
|
11
|
-
actionpack (=
|
12
|
-
activesupport (=
|
10
|
+
actioncable (7.1.2)
|
11
|
+
actionpack (= 7.1.2)
|
12
|
+
activesupport (= 7.1.2)
|
13
13
|
nio4r (~> 2.0)
|
14
14
|
websocket-driver (>= 0.6.1)
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
15
|
+
zeitwerk (~> 2.6)
|
16
|
+
actionmailbox (7.1.2)
|
17
|
+
actionpack (= 7.1.2)
|
18
|
+
activejob (= 7.1.2)
|
19
|
+
activerecord (= 7.1.2)
|
20
|
+
activestorage (= 7.1.2)
|
21
|
+
activesupport (= 7.1.2)
|
21
22
|
mail (>= 2.7.1)
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
23
|
+
net-imap
|
24
|
+
net-pop
|
25
|
+
net-smtp
|
26
|
+
actionmailer (7.1.2)
|
27
|
+
actionpack (= 7.1.2)
|
28
|
+
actionview (= 7.1.2)
|
29
|
+
activejob (= 7.1.2)
|
30
|
+
activesupport (= 7.1.2)
|
27
31
|
mail (~> 2.5, >= 2.5.4)
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
32
|
+
net-imap
|
33
|
+
net-pop
|
34
|
+
net-smtp
|
35
|
+
rails-dom-testing (~> 2.2)
|
36
|
+
actionpack (7.1.2)
|
37
|
+
actionview (= 7.1.2)
|
38
|
+
activesupport (= 7.1.2)
|
39
|
+
nokogiri (>= 1.8.5)
|
40
|
+
racc
|
41
|
+
rack (>= 2.2.4)
|
42
|
+
rack-session (>= 1.0.1)
|
33
43
|
rack-test (>= 0.6.3)
|
34
|
-
rails-dom-testing (~> 2.
|
35
|
-
rails-html-sanitizer (~> 1.
|
36
|
-
actiontext (
|
37
|
-
actionpack (=
|
38
|
-
activerecord (=
|
39
|
-
activestorage (=
|
40
|
-
activesupport (=
|
44
|
+
rails-dom-testing (~> 2.2)
|
45
|
+
rails-html-sanitizer (~> 1.6)
|
46
|
+
actiontext (7.1.2)
|
47
|
+
actionpack (= 7.1.2)
|
48
|
+
activerecord (= 7.1.2)
|
49
|
+
activestorage (= 7.1.2)
|
50
|
+
activesupport (= 7.1.2)
|
51
|
+
globalid (>= 0.6.0)
|
41
52
|
nokogiri (>= 1.8.5)
|
42
|
-
actionview (
|
43
|
-
activesupport (=
|
53
|
+
actionview (7.1.2)
|
54
|
+
activesupport (= 7.1.2)
|
44
55
|
builder (~> 3.1)
|
45
|
-
erubi (~> 1.
|
46
|
-
rails-dom-testing (~> 2.
|
47
|
-
rails-html-sanitizer (~> 1.
|
48
|
-
activejob (
|
49
|
-
activesupport (=
|
56
|
+
erubi (~> 1.11)
|
57
|
+
rails-dom-testing (~> 2.2)
|
58
|
+
rails-html-sanitizer (~> 1.6)
|
59
|
+
activejob (7.1.2)
|
60
|
+
activesupport (= 7.1.2)
|
50
61
|
globalid (>= 0.3.6)
|
51
|
-
activemodel (
|
52
|
-
activesupport (=
|
53
|
-
activerecord (
|
54
|
-
activemodel (=
|
55
|
-
activesupport (=
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
activesupport (
|
62
|
+
activemodel (7.1.2)
|
63
|
+
activesupport (= 7.1.2)
|
64
|
+
activerecord (7.1.2)
|
65
|
+
activemodel (= 7.1.2)
|
66
|
+
activesupport (= 7.1.2)
|
67
|
+
timeout (>= 0.4.0)
|
68
|
+
activestorage (7.1.2)
|
69
|
+
actionpack (= 7.1.2)
|
70
|
+
activejob (= 7.1.2)
|
71
|
+
activerecord (= 7.1.2)
|
72
|
+
activesupport (= 7.1.2)
|
73
|
+
marcel (~> 1.0)
|
74
|
+
activesupport (7.1.2)
|
75
|
+
base64
|
76
|
+
bigdecimal
|
64
77
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
78
|
+
connection_pool (>= 2.2.5)
|
79
|
+
drb
|
65
80
|
i18n (>= 1.6, < 2)
|
66
81
|
minitest (>= 5.1)
|
82
|
+
mutex_m
|
67
83
|
tzinfo (~> 2.0)
|
68
|
-
|
69
|
-
|
70
|
-
|
84
|
+
addressable (2.8.5)
|
85
|
+
public_suffix (>= 2.0.2, < 6.0)
|
86
|
+
base64 (0.2.0)
|
87
|
+
bigdecimal (3.1.4)
|
71
88
|
builder (3.2.4)
|
72
|
-
capybara (3.
|
89
|
+
capybara (3.39.2)
|
73
90
|
addressable
|
91
|
+
matrix
|
74
92
|
mini_mime (>= 0.1.3)
|
75
93
|
nokogiri (~> 1.8)
|
76
94
|
rack (>= 1.6.0)
|
@@ -78,110 +96,161 @@ GEM
|
|
78
96
|
regexp_parser (>= 1.5, < 3.0)
|
79
97
|
xpath (~> 3.2)
|
80
98
|
coderay (1.1.3)
|
81
|
-
concurrent-ruby (1.
|
99
|
+
concurrent-ruby (1.2.2)
|
100
|
+
connection_pool (2.4.1)
|
82
101
|
crass (1.0.6)
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
102
|
+
date (3.3.4)
|
103
|
+
diff-lcs (1.5.0)
|
104
|
+
drb (2.2.0)
|
105
|
+
ruby2_keywords
|
106
|
+
erubi (1.12.0)
|
107
|
+
gem-release (2.2.2)
|
108
|
+
globalid (1.2.1)
|
109
|
+
activesupport (>= 6.1)
|
110
|
+
i18n (1.14.1)
|
88
111
|
concurrent-ruby (~> 1.0)
|
89
|
-
|
112
|
+
io-console (0.6.0)
|
113
|
+
irb (1.10.0)
|
114
|
+
rdoc
|
115
|
+
reline (>= 0.3.8)
|
116
|
+
loofah (2.22.0)
|
90
117
|
crass (~> 1.0.2)
|
91
|
-
nokogiri (>= 1.
|
92
|
-
mail (2.
|
118
|
+
nokogiri (>= 1.12.0)
|
119
|
+
mail (2.8.1)
|
93
120
|
mini_mime (>= 0.1.1)
|
94
|
-
|
121
|
+
net-imap
|
122
|
+
net-pop
|
123
|
+
net-smtp
|
124
|
+
marcel (1.0.2)
|
125
|
+
matrix (0.4.2)
|
95
126
|
method_source (1.0.0)
|
96
|
-
mini_mime (1.1.
|
97
|
-
minitest (5.
|
98
|
-
|
99
|
-
|
127
|
+
mini_mime (1.1.5)
|
128
|
+
minitest (5.20.0)
|
129
|
+
mutex_m (0.2.0)
|
130
|
+
net-imap (0.4.7)
|
131
|
+
date
|
132
|
+
net-protocol
|
133
|
+
net-pop (0.1.2)
|
134
|
+
net-protocol
|
135
|
+
net-protocol (0.2.2)
|
136
|
+
timeout
|
137
|
+
net-smtp (0.4.0)
|
138
|
+
net-protocol
|
139
|
+
nio4r (2.7.0)
|
140
|
+
nokogiri (1.15.5-arm64-darwin)
|
100
141
|
racc (~> 1.4)
|
101
|
-
nokogiri (1.
|
142
|
+
nokogiri (1.15.5-x86_64-linux)
|
102
143
|
racc (~> 1.4)
|
103
|
-
pry (0.14.
|
144
|
+
pry (0.14.2)
|
104
145
|
coderay (~> 1.1)
|
105
146
|
method_source (~> 1.0)
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
147
|
+
psych (5.1.1.1)
|
148
|
+
stringio
|
149
|
+
public_suffix (5.0.4)
|
150
|
+
racc (1.7.3)
|
151
|
+
rack (3.0.8)
|
152
|
+
rack-session (2.0.0)
|
153
|
+
rack (>= 3.0.0)
|
154
|
+
rack-test (2.1.0)
|
155
|
+
rack (>= 1.3)
|
156
|
+
rackup (2.1.0)
|
157
|
+
rack (>= 3)
|
158
|
+
webrick (~> 1.8)
|
159
|
+
rails (7.1.2)
|
160
|
+
actioncable (= 7.1.2)
|
161
|
+
actionmailbox (= 7.1.2)
|
162
|
+
actionmailer (= 7.1.2)
|
163
|
+
actionpack (= 7.1.2)
|
164
|
+
actiontext (= 7.1.2)
|
165
|
+
actionview (= 7.1.2)
|
166
|
+
activejob (= 7.1.2)
|
167
|
+
activemodel (= 7.1.2)
|
168
|
+
activerecord (= 7.1.2)
|
169
|
+
activestorage (= 7.1.2)
|
170
|
+
activesupport (= 7.1.2)
|
123
171
|
bundler (>= 1.15.0)
|
124
|
-
railties (=
|
125
|
-
|
126
|
-
|
127
|
-
|
172
|
+
railties (= 7.1.2)
|
173
|
+
rails-dom-testing (2.2.0)
|
174
|
+
activesupport (>= 5.0.0)
|
175
|
+
minitest
|
128
176
|
nokogiri (>= 1.6)
|
129
|
-
rails-html-sanitizer (1.
|
130
|
-
loofah (~> 2.
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
177
|
+
rails-html-sanitizer (1.6.0)
|
178
|
+
loofah (~> 2.21)
|
179
|
+
nokogiri (~> 1.14)
|
180
|
+
railties (7.1.2)
|
181
|
+
actionpack (= 7.1.2)
|
182
|
+
activesupport (= 7.1.2)
|
183
|
+
irb
|
184
|
+
rackup (>= 1.0.0)
|
185
|
+
rake (>= 12.2)
|
186
|
+
thor (~> 1.0, >= 1.2.2)
|
187
|
+
zeitwerk (~> 2.6)
|
188
|
+
rake (13.1.0)
|
189
|
+
rdoc (6.6.0)
|
190
|
+
psych (>= 4.0.0)
|
191
|
+
regexp_parser (2.8.2)
|
192
|
+
reline (0.4.1)
|
193
|
+
io-console (~> 0.5)
|
194
|
+
rspec-core (3.12.2)
|
195
|
+
rspec-support (~> 3.12.0)
|
196
|
+
rspec-expectations (3.12.3)
|
142
197
|
diff-lcs (>= 1.2.0, < 2.0)
|
143
|
-
rspec-support (~> 3.
|
144
|
-
rspec-mocks (3.
|
198
|
+
rspec-support (~> 3.12.0)
|
199
|
+
rspec-mocks (3.12.6)
|
145
200
|
diff-lcs (>= 1.2.0, < 2.0)
|
146
|
-
rspec-support (~> 3.
|
147
|
-
rspec-rails (
|
201
|
+
rspec-support (~> 3.12.0)
|
202
|
+
rspec-rails (6.1.0)
|
203
|
+
actionpack (>= 6.1)
|
204
|
+
activesupport (>= 6.1)
|
205
|
+
railties (>= 6.1)
|
206
|
+
rspec-core (~> 3.12)
|
207
|
+
rspec-expectations (~> 3.12)
|
208
|
+
rspec-mocks (~> 3.12)
|
209
|
+
rspec-support (~> 3.12)
|
210
|
+
rspec-support (3.12.1)
|
211
|
+
ruby2_keywords (0.0.5)
|
212
|
+
sprockets (4.2.1)
|
213
|
+
concurrent-ruby (~> 1.0)
|
214
|
+
rack (>= 2.2.4, < 4)
|
215
|
+
sprockets-rails (3.4.2)
|
148
216
|
actionpack (>= 5.2)
|
149
217
|
activesupport (>= 5.2)
|
150
|
-
railties (>= 5.2)
|
151
|
-
rspec-core (~> 3.10)
|
152
|
-
rspec-expectations (~> 3.10)
|
153
|
-
rspec-mocks (~> 3.10)
|
154
|
-
rspec-support (~> 3.10)
|
155
|
-
rspec-support (3.10.2)
|
156
|
-
sprockets (4.0.2)
|
157
|
-
concurrent-ruby (~> 1.0)
|
158
|
-
rack (> 1, < 3)
|
159
|
-
sprockets-rails (3.2.2)
|
160
|
-
actionpack (>= 4.0)
|
161
|
-
activesupport (>= 4.0)
|
162
218
|
sprockets (>= 3.0.0)
|
163
|
-
|
164
|
-
|
219
|
+
sqlite3 (1.6.9-arm64-darwin)
|
220
|
+
sqlite3 (1.6.9-x86_64-linux)
|
221
|
+
stringio (3.1.0)
|
222
|
+
thor (1.3.0)
|
223
|
+
timeout (0.4.1)
|
224
|
+
tzinfo (2.0.6)
|
165
225
|
concurrent-ruby (~> 1.0)
|
166
|
-
|
226
|
+
webrick (1.8.1)
|
227
|
+
websocket-driver (0.7.6)
|
167
228
|
websocket-extensions (>= 0.1.0)
|
168
229
|
websocket-extensions (0.1.5)
|
169
230
|
xpath (3.2.0)
|
170
231
|
nokogiri (~> 1.8)
|
171
|
-
zeitwerk (2.
|
232
|
+
zeitwerk (2.6.12)
|
172
233
|
|
173
234
|
PLATFORMS
|
174
235
|
arm64-darwin-20
|
236
|
+
arm64-darwin-22
|
237
|
+
arm64-darwin-23
|
175
238
|
x86_64-linux
|
176
239
|
|
177
240
|
DEPENDENCIES
|
178
241
|
capybara (~> 3.35)
|
242
|
+
gem-release (~> 2.2)
|
243
|
+
matrix (~> 0.4.2)
|
179
244
|
nokogiri (~> 1.12)
|
180
245
|
pry (~> 0.14.1)
|
181
246
|
rails-footnotes!
|
182
247
|
rake (~> 13.0)
|
183
|
-
rspec-rails (~>
|
248
|
+
rspec-rails (~> 6.0)
|
184
249
|
sprockets-rails (~> 3.2)
|
250
|
+
sqlite3 (~> 1.6)
|
251
|
+
|
252
|
+
RUBY VERSION
|
253
|
+
ruby 3.2.2p53
|
185
254
|
|
186
255
|
BUNDLED WITH
|
187
|
-
2.
|
256
|
+
2.4.22
|