stance 0.8.3 → 0.9.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/.github/workflows/main.yml +35 -0
- data/.rubocop.yml +17 -3
- data/.ruby-version +1 -0
- data/Appraisals +13 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +151 -138
- data/app/models/stance/event_record.rb +2 -4
- data/gemfiles/rails_7.1.gemfile +20 -0
- data/gemfiles/rails_7.1.gemfile.lock +302 -0
- data/gemfiles/rails_7.2.gemfile +20 -0
- data/gemfiles/rails_7.2.gemfile.lock +296 -0
- data/gemfiles/rails_8.gemfile +20 -0
- data/gemfiles/rails_8.gemfile.lock +297 -0
- data/lib/generators/stance/install_generator.rb +1 -1
- data/lib/stance/event.rb +6 -6
- data/lib/stance/events.rb +4 -4
- data/lib/stance/version.rb +1 -1
- data/stance.gemspec +2 -3
- metadata +15 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3054a22ff076a3a01357507ee6a68ce8e1c1b8d81a35f6a64cc25be50ff89147
|
4
|
+
data.tar.gz: 39a07f20a2a4e5bb556f5be02685153edd128524b8c6ca5d676c3042b6a7416a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9483f429a0c9e0bd736b4a4eea83d41cbe95f7ecd19540ee881f34d4618595fffffafe75e22179623d0e94cc3736dff2beba96226cff41b21e1147e8f40635f
|
7
|
+
data.tar.gz: fe682468e1b4f1f2658ac4e089e87e135a37ea826007862370c6fc51a57a4d4467e8059af5d01f5fafb414561e6fe4da263390ecf2f31e3f1dfc1765fa844378
|
@@ -0,0 +1,35 @@
|
|
1
|
+
name: main
|
2
|
+
on: [push]
|
3
|
+
|
4
|
+
jobs:
|
5
|
+
test:
|
6
|
+
strategy:
|
7
|
+
fail-fast: false
|
8
|
+
matrix:
|
9
|
+
os: ["ubuntu-latest", "macos-latest"]
|
10
|
+
ruby-version: ["3.2", "3.3", "3.4"]
|
11
|
+
runs-on: ${{ matrix.os }}
|
12
|
+
|
13
|
+
env:
|
14
|
+
RAILS_ENV: test
|
15
|
+
|
16
|
+
steps:
|
17
|
+
- uses: actions/checkout@v4
|
18
|
+
|
19
|
+
- uses: ruby/setup-ruby@v1
|
20
|
+
with:
|
21
|
+
ruby-version: ${{ matrix.ruby-version }}
|
22
|
+
bundler-cache: true
|
23
|
+
rubygems: latest
|
24
|
+
- run: bundle exec appraisal install --jobs 4
|
25
|
+
- run: bundle exec appraisal rake
|
26
|
+
|
27
|
+
rubocop:
|
28
|
+
runs-on: "ubuntu-latest"
|
29
|
+
steps:
|
30
|
+
- uses: actions/checkout@v4
|
31
|
+
- uses: ruby/setup-ruby@v1
|
32
|
+
with:
|
33
|
+
bundler-cache: true
|
34
|
+
cache-version: 1
|
35
|
+
- run: bundle exec rubocop -P --fail-level C
|
data/.rubocop.yml
CHANGED
@@ -1,12 +1,26 @@
|
|
1
|
+
plugins:
|
2
|
+
- rubocop-minitest
|
3
|
+
- rubocop-rake
|
4
|
+
|
1
5
|
AllCops:
|
6
|
+
TargetRubyVersion: 3.2.0
|
2
7
|
NewCops: enable
|
8
|
+
Exclude:
|
9
|
+
- gemfiles/*
|
10
|
+
- vendor/**/*
|
11
|
+
|
3
12
|
Style/Documentation:
|
4
13
|
Enabled: false
|
14
|
+
Style/ClassVars:
|
15
|
+
Enabled: false
|
16
|
+
|
5
17
|
Layout/LineLength:
|
6
18
|
Max: 100
|
19
|
+
|
7
20
|
Metrics/MethodLength:
|
8
21
|
Max: 15
|
9
|
-
Style/ClassVars:
|
10
|
-
Enabled: false
|
11
22
|
Metrics/AbcSize:
|
12
|
-
Max: 20
|
23
|
+
Max: 20
|
24
|
+
|
25
|
+
Minitest/MultipleAssertions:
|
26
|
+
Enabled: false
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.4.2
|
data/Appraisals
ADDED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,117 +1,120 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
stance (0.
|
5
|
-
|
6
|
-
rails (>= 7.0, < 8.0)
|
4
|
+
stance (0.9.0)
|
5
|
+
rails (>= 7.0, < 9.0)
|
7
6
|
|
8
7
|
GEM
|
9
8
|
remote: https://rubygems.org/
|
10
9
|
specs:
|
11
|
-
actioncable (
|
12
|
-
actionpack (=
|
13
|
-
activesupport (=
|
10
|
+
actioncable (8.0.1)
|
11
|
+
actionpack (= 8.0.1)
|
12
|
+
activesupport (= 8.0.1)
|
14
13
|
nio4r (~> 2.0)
|
15
14
|
websocket-driver (>= 0.6.1)
|
16
15
|
zeitwerk (~> 2.6)
|
17
|
-
actionmailbox (
|
18
|
-
actionpack (=
|
19
|
-
activejob (=
|
20
|
-
activerecord (=
|
21
|
-
activestorage (=
|
22
|
-
activesupport (=
|
23
|
-
mail (>= 2.
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
activejob (= 7.1.2)
|
31
|
-
activesupport (= 7.1.2)
|
32
|
-
mail (~> 2.5, >= 2.5.4)
|
33
|
-
net-imap
|
34
|
-
net-pop
|
35
|
-
net-smtp
|
16
|
+
actionmailbox (8.0.1)
|
17
|
+
actionpack (= 8.0.1)
|
18
|
+
activejob (= 8.0.1)
|
19
|
+
activerecord (= 8.0.1)
|
20
|
+
activestorage (= 8.0.1)
|
21
|
+
activesupport (= 8.0.1)
|
22
|
+
mail (>= 2.8.0)
|
23
|
+
actionmailer (8.0.1)
|
24
|
+
actionpack (= 8.0.1)
|
25
|
+
actionview (= 8.0.1)
|
26
|
+
activejob (= 8.0.1)
|
27
|
+
activesupport (= 8.0.1)
|
28
|
+
mail (>= 2.8.0)
|
36
29
|
rails-dom-testing (~> 2.2)
|
37
|
-
actionpack (
|
38
|
-
actionview (=
|
39
|
-
activesupport (=
|
30
|
+
actionpack (8.0.1)
|
31
|
+
actionview (= 8.0.1)
|
32
|
+
activesupport (= 8.0.1)
|
40
33
|
nokogiri (>= 1.8.5)
|
41
|
-
racc
|
42
34
|
rack (>= 2.2.4)
|
43
35
|
rack-session (>= 1.0.1)
|
44
36
|
rack-test (>= 0.6.3)
|
45
37
|
rails-dom-testing (~> 2.2)
|
46
38
|
rails-html-sanitizer (~> 1.6)
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
39
|
+
useragent (~> 0.16)
|
40
|
+
actiontext (8.0.1)
|
41
|
+
actionpack (= 8.0.1)
|
42
|
+
activerecord (= 8.0.1)
|
43
|
+
activestorage (= 8.0.1)
|
44
|
+
activesupport (= 8.0.1)
|
52
45
|
globalid (>= 0.6.0)
|
53
46
|
nokogiri (>= 1.8.5)
|
54
|
-
actionview (
|
55
|
-
activesupport (=
|
47
|
+
actionview (8.0.1)
|
48
|
+
activesupport (= 8.0.1)
|
56
49
|
builder (~> 3.1)
|
57
50
|
erubi (~> 1.11)
|
58
51
|
rails-dom-testing (~> 2.2)
|
59
52
|
rails-html-sanitizer (~> 1.6)
|
60
|
-
activejob (
|
61
|
-
activesupport (=
|
53
|
+
activejob (8.0.1)
|
54
|
+
activesupport (= 8.0.1)
|
62
55
|
globalid (>= 0.3.6)
|
63
|
-
activemodel (
|
64
|
-
activesupport (=
|
65
|
-
activerecord (
|
66
|
-
activemodel (=
|
67
|
-
activesupport (=
|
56
|
+
activemodel (8.0.1)
|
57
|
+
activesupport (= 8.0.1)
|
58
|
+
activerecord (8.0.1)
|
59
|
+
activemodel (= 8.0.1)
|
60
|
+
activesupport (= 8.0.1)
|
68
61
|
timeout (>= 0.4.0)
|
69
|
-
activestorage (
|
70
|
-
actionpack (=
|
71
|
-
activejob (=
|
72
|
-
activerecord (=
|
73
|
-
activesupport (=
|
62
|
+
activestorage (8.0.1)
|
63
|
+
actionpack (= 8.0.1)
|
64
|
+
activejob (= 8.0.1)
|
65
|
+
activerecord (= 8.0.1)
|
66
|
+
activesupport (= 8.0.1)
|
74
67
|
marcel (~> 1.0)
|
75
|
-
activesupport (
|
68
|
+
activesupport (8.0.1)
|
76
69
|
base64
|
70
|
+
benchmark (>= 0.3)
|
77
71
|
bigdecimal
|
78
|
-
concurrent-ruby (~> 1.0, >= 1.
|
72
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
79
73
|
connection_pool (>= 2.2.5)
|
80
74
|
drb
|
81
75
|
i18n (>= 1.6, < 2)
|
76
|
+
logger (>= 1.4.2)
|
82
77
|
minitest (>= 5.1)
|
83
|
-
|
84
|
-
tzinfo (~> 2.0)
|
78
|
+
securerandom (>= 0.3)
|
79
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
80
|
+
uri (>= 0.13.1)
|
81
|
+
appraisal (2.5.0)
|
82
|
+
bundler
|
83
|
+
rake
|
84
|
+
thor (>= 0.14.0)
|
85
85
|
ast (2.4.2)
|
86
86
|
autotest-suffix (1.1.0)
|
87
87
|
base64 (0.2.0)
|
88
|
-
|
89
|
-
|
90
|
-
|
88
|
+
benchmark (0.4.0)
|
89
|
+
bigdecimal (3.1.9)
|
90
|
+
builder (3.3.0)
|
91
|
+
combustion (1.5.0)
|
91
92
|
activesupport (>= 3.0.0)
|
92
93
|
railties (>= 3.0.0)
|
93
94
|
thor (>= 0.14.6)
|
94
|
-
concurrent-ruby (1.
|
95
|
-
connection_pool (2.
|
95
|
+
concurrent-ruby (1.3.5)
|
96
|
+
connection_pool (2.5.0)
|
96
97
|
crass (1.0.6)
|
97
|
-
date (3.
|
98
|
-
debug (1.
|
98
|
+
date (3.4.1)
|
99
|
+
debug (1.10.0)
|
99
100
|
irb (~> 1.10)
|
100
101
|
reline (>= 0.3.8)
|
101
|
-
drb (2.2.
|
102
|
-
|
103
|
-
erubi (1.12.0)
|
102
|
+
drb (2.2.1)
|
103
|
+
erubi (1.13.1)
|
104
104
|
globalid (1.2.1)
|
105
105
|
activesupport (>= 6.1)
|
106
|
-
i18n (1.14.
|
106
|
+
i18n (1.14.7)
|
107
107
|
concurrent-ruby (~> 1.0)
|
108
|
-
io-console (0.
|
109
|
-
irb (1.
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
108
|
+
io-console (0.8.0)
|
109
|
+
irb (1.15.1)
|
110
|
+
pp (>= 0.6.0)
|
111
|
+
rdoc (>= 4.0.0)
|
112
|
+
reline (>= 0.4.2)
|
113
|
+
json (2.10.1)
|
114
|
+
language_server-protocol (3.17.0.4)
|
115
|
+
lint_roller (1.1.0)
|
116
|
+
logger (1.6.6)
|
117
|
+
loofah (2.24.0)
|
115
118
|
crass (~> 1.0.2)
|
116
119
|
nokogiri (>= 1.12.0)
|
117
120
|
mail (2.8.1)
|
@@ -119,125 +122,135 @@ GEM
|
|
119
122
|
net-imap
|
120
123
|
net-pop
|
121
124
|
net-smtp
|
122
|
-
marcel (1.0.
|
125
|
+
marcel (1.0.4)
|
123
126
|
mini_mime (1.1.5)
|
124
|
-
mini_portile2 (2.8.
|
125
|
-
minitest (5.
|
127
|
+
mini_portile2 (2.8.8)
|
128
|
+
minitest (5.25.4)
|
126
129
|
minitest-autotest (1.1.1)
|
127
130
|
minitest-server (~> 1.0)
|
128
131
|
path_expander (~> 1.0)
|
129
132
|
minitest-focus (1.4.0)
|
130
133
|
minitest (>= 4, < 6)
|
131
|
-
minitest-server (1.0.
|
134
|
+
minitest-server (1.0.8)
|
135
|
+
drb (~> 2.0)
|
132
136
|
minitest (~> 5.16)
|
133
|
-
mocha (2.1
|
137
|
+
mocha (2.7.1)
|
134
138
|
ruby2_keywords (>= 0.0.5)
|
135
|
-
|
136
|
-
mutex_m (0.2.0)
|
137
|
-
net-imap (0.4.9.1)
|
139
|
+
net-imap (0.5.6)
|
138
140
|
date
|
139
141
|
net-protocol
|
140
142
|
net-pop (0.1.2)
|
141
143
|
net-protocol
|
142
144
|
net-protocol (0.2.2)
|
143
145
|
timeout
|
144
|
-
net-smtp (0.
|
146
|
+
net-smtp (0.5.1)
|
145
147
|
net-protocol
|
146
|
-
nio4r (2.7.
|
147
|
-
nokogiri (1.
|
148
|
+
nio4r (2.7.4)
|
149
|
+
nokogiri (1.18.3)
|
148
150
|
mini_portile2 (~> 2.8.2)
|
149
151
|
racc (~> 1.4)
|
150
|
-
parallel (1.
|
151
|
-
parser (3.3.
|
152
|
+
parallel (1.26.3)
|
153
|
+
parser (3.3.7.1)
|
152
154
|
ast (~> 2.4.1)
|
153
155
|
racc
|
154
|
-
path_expander (1.1.
|
155
|
-
|
156
|
+
path_expander (1.1.3)
|
157
|
+
pp (0.6.2)
|
158
|
+
prettyprint
|
159
|
+
prettyprint (0.2.0)
|
160
|
+
psych (5.2.3)
|
161
|
+
date
|
156
162
|
stringio
|
157
|
-
racc (1.
|
158
|
-
rack (3.
|
159
|
-
rack-session (2.
|
163
|
+
racc (1.8.1)
|
164
|
+
rack (3.1.11)
|
165
|
+
rack-session (2.1.0)
|
166
|
+
base64 (>= 0.1.0)
|
160
167
|
rack (>= 3.0.0)
|
161
|
-
rack-test (2.
|
168
|
+
rack-test (2.2.0)
|
162
169
|
rack (>= 1.3)
|
163
|
-
rackup (2.1
|
170
|
+
rackup (2.2.1)
|
164
171
|
rack (>= 3)
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
activesupport (= 7.1.2)
|
172
|
+
rails (8.0.1)
|
173
|
+
actioncable (= 8.0.1)
|
174
|
+
actionmailbox (= 8.0.1)
|
175
|
+
actionmailer (= 8.0.1)
|
176
|
+
actionpack (= 8.0.1)
|
177
|
+
actiontext (= 8.0.1)
|
178
|
+
actionview (= 8.0.1)
|
179
|
+
activejob (= 8.0.1)
|
180
|
+
activemodel (= 8.0.1)
|
181
|
+
activerecord (= 8.0.1)
|
182
|
+
activestorage (= 8.0.1)
|
183
|
+
activesupport (= 8.0.1)
|
178
184
|
bundler (>= 1.15.0)
|
179
|
-
railties (=
|
185
|
+
railties (= 8.0.1)
|
180
186
|
rails-dom-testing (2.2.0)
|
181
187
|
activesupport (>= 5.0.0)
|
182
188
|
minitest
|
183
189
|
nokogiri (>= 1.6)
|
184
|
-
rails-html-sanitizer (1.6.
|
190
|
+
rails-html-sanitizer (1.6.2)
|
185
191
|
loofah (~> 2.21)
|
186
|
-
nokogiri (
|
187
|
-
railties (
|
188
|
-
actionpack (=
|
189
|
-
activesupport (=
|
190
|
-
irb
|
192
|
+
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)
|
193
|
+
railties (8.0.1)
|
194
|
+
actionpack (= 8.0.1)
|
195
|
+
activesupport (= 8.0.1)
|
196
|
+
irb (~> 1.13)
|
191
197
|
rackup (>= 1.0.0)
|
192
198
|
rake (>= 12.2)
|
193
199
|
thor (~> 1.0, >= 1.2.2)
|
194
200
|
zeitwerk (~> 2.6)
|
195
201
|
rainbow (3.1.1)
|
196
|
-
rake (13.1
|
197
|
-
rdoc (6.
|
202
|
+
rake (13.2.1)
|
203
|
+
rdoc (6.12.0)
|
198
204
|
psych (>= 4.0.0)
|
199
|
-
regexp_parser (2.
|
200
|
-
reline (0.
|
205
|
+
regexp_parser (2.10.0)
|
206
|
+
reline (0.6.0)
|
201
207
|
io-console (~> 0.5)
|
202
|
-
|
203
|
-
rubocop (1.59.0)
|
208
|
+
rubocop (1.73.2)
|
204
209
|
json (~> 2.3)
|
205
|
-
language_server-protocol (
|
210
|
+
language_server-protocol (~> 3.17.0.2)
|
211
|
+
lint_roller (~> 1.1.0)
|
206
212
|
parallel (~> 1.10)
|
207
|
-
parser (>= 3.
|
213
|
+
parser (>= 3.3.0.2)
|
208
214
|
rainbow (>= 2.2.2, < 4.0)
|
209
|
-
regexp_parser (>=
|
210
|
-
|
211
|
-
rubocop-ast (>= 1.30.0, < 2.0)
|
215
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
216
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
212
217
|
ruby-progressbar (~> 1.7)
|
213
|
-
unicode-display_width (>= 2.4.0, <
|
214
|
-
rubocop-ast (1.
|
215
|
-
parser (>= 3.
|
216
|
-
rubocop-minitest (0.
|
217
|
-
|
218
|
-
rubocop
|
219
|
-
|
220
|
-
|
218
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
219
|
+
rubocop-ast (1.38.1)
|
220
|
+
parser (>= 3.3.1.0)
|
221
|
+
rubocop-minitest (0.37.1)
|
222
|
+
lint_roller (~> 1.1)
|
223
|
+
rubocop (>= 1.72.1, < 2.0)
|
224
|
+
rubocop-ast (>= 1.38.0, < 2.0)
|
225
|
+
rubocop-rake (0.7.1)
|
226
|
+
lint_roller (~> 1.1)
|
227
|
+
rubocop (>= 1.72.1)
|
221
228
|
ruby-progressbar (1.13.0)
|
222
229
|
ruby2_keywords (0.0.5)
|
223
|
-
|
230
|
+
securerandom (0.4.1)
|
231
|
+
sqlite3 (2.6.0)
|
224
232
|
mini_portile2 (~> 2.8.0)
|
225
|
-
stringio (3.1.
|
226
|
-
thor (1.3.
|
227
|
-
timeout (0.4.
|
233
|
+
stringio (3.1.5)
|
234
|
+
thor (1.3.2)
|
235
|
+
timeout (0.4.3)
|
228
236
|
tzinfo (2.0.6)
|
229
237
|
concurrent-ruby (~> 1.0)
|
230
|
-
unicode-display_width (
|
231
|
-
|
232
|
-
|
238
|
+
unicode-display_width (3.1.4)
|
239
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
240
|
+
unicode-emoji (4.0.4)
|
241
|
+
uri (1.0.3)
|
242
|
+
useragent (0.16.11)
|
243
|
+
websocket-driver (0.7.7)
|
244
|
+
base64
|
233
245
|
websocket-extensions (>= 0.1.0)
|
234
246
|
websocket-extensions (0.1.5)
|
235
|
-
zeitwerk (2.
|
247
|
+
zeitwerk (2.7.2)
|
236
248
|
|
237
249
|
PLATFORMS
|
238
250
|
ruby
|
239
251
|
|
240
252
|
DEPENDENCIES
|
253
|
+
appraisal
|
241
254
|
autotest-suffix
|
242
255
|
combustion
|
243
256
|
debug
|
@@ -253,4 +266,4 @@ DEPENDENCIES
|
|
253
266
|
stance!
|
254
267
|
|
255
268
|
BUNDLED WITH
|
256
|
-
2.
|
269
|
+
2.6.5
|
@@ -1,18 +1,16 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'multi_json'
|
4
|
-
|
5
3
|
class JSONWithIndifferentAccess
|
6
4
|
def self.load(str)
|
7
5
|
return str unless str
|
8
6
|
|
9
|
-
obj = HashWithIndifferentAccess.new(
|
7
|
+
obj = HashWithIndifferentAccess.new(JSON.parse(str))
|
10
8
|
obj.freeze
|
11
9
|
obj
|
12
10
|
end
|
13
11
|
|
14
12
|
def self.dump(obj)
|
15
|
-
|
13
|
+
JSON.dump(obj)
|
16
14
|
end
|
17
15
|
end
|
18
16
|
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "appraisal"
|
6
|
+
gem "autotest-suffix"
|
7
|
+
gem "combustion"
|
8
|
+
gem "debug"
|
9
|
+
gem "minitest"
|
10
|
+
gem "minitest-autotest"
|
11
|
+
gem "minitest-focus"
|
12
|
+
gem "mocha"
|
13
|
+
gem "rake", "~> 13.0"
|
14
|
+
gem "rubocop"
|
15
|
+
gem "rubocop-minitest"
|
16
|
+
gem "rubocop-rake"
|
17
|
+
gem "sqlite3"
|
18
|
+
gem "rails", "~> 7.1.0"
|
19
|
+
|
20
|
+
gemspec path: "../"
|