stance 0.8.3 → 0.9.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8572eed60f1685bd2f34849875259f071a8dbe05f7e1cd02aeb97a155c70021a
4
- data.tar.gz: 8abb221e5336b9d8034581ffd853cd248276b2641aeb6d23c9db67f16a456828
3
+ metadata.gz: 54c91d9ba5b439c34226f31436b808d028f438287f97cc60d391c9ce1b4156dd
4
+ data.tar.gz: 20c6ed6b356e19c06e367c96440e8b9bfe65c755c842449de6f9a7351db1cdc3
5
5
  SHA512:
6
- metadata.gz: 86def811871ad856a7e35cb24a9a8f84b4fe71ae2834005bf75224f99bc0b10c8b73a9c4ca2dee0de272a688b436b9edb2d0602def3e04222a1211d0b1984d89
7
- data.tar.gz: 3dea2b96f4f894c1ff315c2b617e688de3f3886ad0e52528d1708778bcc5cb906fc19fc7620885103bf8bc8301a6acea879ae0a742abedc43f19b0ef19a95a29
6
+ metadata.gz: 9b38eb0898b22e8f1e121afcc01d9b7694721da79ea6e0811a081f109275680a5b7517c96db2b5463de42d2a9d9ac3abe2031d26318dd91820aa987d8ad11312
7
+ data.tar.gz: 0036d5f1343b59e954252dddbaf9beb5ff36eddedf7e3f253a86822789128ff9ee01151f154bf988e253620cdb574d0dbde0221c5f7f2a24e3b3097028804a34
@@ -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.8
data/Appraisals ADDED
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ appraise 'rails-7.1' do
4
+ gem 'rails', '~> 7.1.0'
5
+ end
6
+
7
+ appraise 'rails-7.2' do
8
+ gem 'rails', '~> 7.2.0'
9
+ end
10
+
11
+ appraise 'rails-8' do
12
+ gem 'rails', '~> 8.0.1'
13
+ end
14
+
15
+ appraise 'rails-8.1' do
16
+ gem 'rails', '~> 8.1.0'
17
+ end
data/Gemfile CHANGED
@@ -5,6 +5,7 @@ source 'https://rubygems.org'
5
5
  # Specify your gem's dependencies in stance.gemspec
6
6
  gemspec
7
7
 
8
+ gem 'appraisal'
8
9
  gem 'autotest-suffix'
9
10
  gem 'combustion'
10
11
  gem 'debug'
data/Gemfile.lock CHANGED
@@ -1,243 +1,266 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stance (0.8.3)
5
- multi_json (~> 1.15)
6
- rails (>= 7.0, < 8.0)
4
+ stance (0.9.1)
5
+ rails (>= 7.0, < 9.0)
7
6
 
8
7
  GEM
9
8
  remote: https://rubygems.org/
10
9
  specs:
11
- actioncable (7.1.2)
12
- actionpack (= 7.1.2)
13
- activesupport (= 7.1.2)
10
+ action_text-trix (2.1.16)
11
+ railties
12
+ actioncable (8.1.1)
13
+ actionpack (= 8.1.1)
14
+ activesupport (= 8.1.1)
14
15
  nio4r (~> 2.0)
15
16
  websocket-driver (>= 0.6.1)
16
17
  zeitwerk (~> 2.6)
17
- actionmailbox (7.1.2)
18
- actionpack (= 7.1.2)
19
- activejob (= 7.1.2)
20
- activerecord (= 7.1.2)
21
- activestorage (= 7.1.2)
22
- activesupport (= 7.1.2)
23
- mail (>= 2.7.1)
24
- net-imap
25
- net-pop
26
- net-smtp
27
- actionmailer (7.1.2)
28
- actionpack (= 7.1.2)
29
- actionview (= 7.1.2)
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
18
+ actionmailbox (8.1.1)
19
+ actionpack (= 8.1.1)
20
+ activejob (= 8.1.1)
21
+ activerecord (= 8.1.1)
22
+ activestorage (= 8.1.1)
23
+ activesupport (= 8.1.1)
24
+ mail (>= 2.8.0)
25
+ actionmailer (8.1.1)
26
+ actionpack (= 8.1.1)
27
+ actionview (= 8.1.1)
28
+ activejob (= 8.1.1)
29
+ activesupport (= 8.1.1)
30
+ mail (>= 2.8.0)
36
31
  rails-dom-testing (~> 2.2)
37
- actionpack (7.1.2)
38
- actionview (= 7.1.2)
39
- activesupport (= 7.1.2)
32
+ actionpack (8.1.1)
33
+ actionview (= 8.1.1)
34
+ activesupport (= 8.1.1)
40
35
  nokogiri (>= 1.8.5)
41
- racc
42
36
  rack (>= 2.2.4)
43
37
  rack-session (>= 1.0.1)
44
38
  rack-test (>= 0.6.3)
45
39
  rails-dom-testing (~> 2.2)
46
40
  rails-html-sanitizer (~> 1.6)
47
- actiontext (7.1.2)
48
- actionpack (= 7.1.2)
49
- activerecord (= 7.1.2)
50
- activestorage (= 7.1.2)
51
- activesupport (= 7.1.2)
41
+ useragent (~> 0.16)
42
+ actiontext (8.1.1)
43
+ action_text-trix (~> 2.1.15)
44
+ actionpack (= 8.1.1)
45
+ activerecord (= 8.1.1)
46
+ activestorage (= 8.1.1)
47
+ activesupport (= 8.1.1)
52
48
  globalid (>= 0.6.0)
53
49
  nokogiri (>= 1.8.5)
54
- actionview (7.1.2)
55
- activesupport (= 7.1.2)
50
+ actionview (8.1.1)
51
+ activesupport (= 8.1.1)
56
52
  builder (~> 3.1)
57
53
  erubi (~> 1.11)
58
54
  rails-dom-testing (~> 2.2)
59
55
  rails-html-sanitizer (~> 1.6)
60
- activejob (7.1.2)
61
- activesupport (= 7.1.2)
56
+ activejob (8.1.1)
57
+ activesupport (= 8.1.1)
62
58
  globalid (>= 0.3.6)
63
- activemodel (7.1.2)
64
- activesupport (= 7.1.2)
65
- activerecord (7.1.2)
66
- activemodel (= 7.1.2)
67
- activesupport (= 7.1.2)
59
+ activemodel (8.1.1)
60
+ activesupport (= 8.1.1)
61
+ activerecord (8.1.1)
62
+ activemodel (= 8.1.1)
63
+ activesupport (= 8.1.1)
68
64
  timeout (>= 0.4.0)
69
- activestorage (7.1.2)
70
- actionpack (= 7.1.2)
71
- activejob (= 7.1.2)
72
- activerecord (= 7.1.2)
73
- activesupport (= 7.1.2)
65
+ activestorage (8.1.1)
66
+ actionpack (= 8.1.1)
67
+ activejob (= 8.1.1)
68
+ activerecord (= 8.1.1)
69
+ activesupport (= 8.1.1)
74
70
  marcel (~> 1.0)
75
- activesupport (7.1.2)
71
+ activesupport (8.1.1)
76
72
  base64
77
73
  bigdecimal
78
- concurrent-ruby (~> 1.0, >= 1.0.2)
74
+ concurrent-ruby (~> 1.0, >= 1.3.1)
79
75
  connection_pool (>= 2.2.5)
80
76
  drb
81
77
  i18n (>= 1.6, < 2)
78
+ json
79
+ logger (>= 1.4.2)
82
80
  minitest (>= 5.1)
83
- mutex_m
84
- tzinfo (~> 2.0)
85
- ast (2.4.2)
81
+ securerandom (>= 0.3)
82
+ tzinfo (~> 2.0, >= 2.0.5)
83
+ uri (>= 0.13.1)
84
+ appraisal (2.5.0)
85
+ bundler
86
+ rake
87
+ thor (>= 0.14.0)
88
+ ast (2.4.3)
86
89
  autotest-suffix (1.1.0)
87
- base64 (0.2.0)
88
- bigdecimal (3.1.5)
89
- builder (3.2.4)
90
- combustion (1.3.7)
90
+ base64 (0.3.0)
91
+ bigdecimal (4.0.1)
92
+ builder (3.3.0)
93
+ combustion (1.5.0)
91
94
  activesupport (>= 3.0.0)
92
95
  railties (>= 3.0.0)
93
96
  thor (>= 0.14.6)
94
- concurrent-ruby (1.2.2)
95
- connection_pool (2.4.1)
97
+ concurrent-ruby (1.3.6)
98
+ connection_pool (3.0.2)
96
99
  crass (1.0.6)
97
- date (3.3.4)
98
- debug (1.9.1)
100
+ date (3.5.1)
101
+ debug (1.11.1)
99
102
  irb (~> 1.10)
100
103
  reline (>= 0.3.8)
101
- drb (2.2.0)
102
- ruby2_keywords
103
- erubi (1.12.0)
104
- globalid (1.2.1)
104
+ drb (2.2.3)
105
+ erb (6.0.1)
106
+ erubi (1.13.1)
107
+ globalid (1.3.0)
105
108
  activesupport (>= 6.1)
106
- i18n (1.14.1)
109
+ i18n (1.14.8)
107
110
  concurrent-ruby (~> 1.0)
108
- io-console (0.7.1)
109
- irb (1.11.0)
110
- rdoc
111
- reline (>= 0.3.8)
112
- json (2.7.1)
113
- language_server-protocol (3.17.0.3)
114
- loofah (2.22.0)
111
+ io-console (0.8.2)
112
+ irb (1.16.0)
113
+ pp (>= 0.6.0)
114
+ rdoc (>= 4.0.0)
115
+ reline (>= 0.4.2)
116
+ json (2.18.0)
117
+ language_server-protocol (3.17.0.5)
118
+ lint_roller (1.1.0)
119
+ logger (1.7.0)
120
+ loofah (2.25.0)
115
121
  crass (~> 1.0.2)
116
122
  nokogiri (>= 1.12.0)
117
- mail (2.8.1)
123
+ mail (2.9.0)
124
+ logger
118
125
  mini_mime (>= 0.1.1)
119
126
  net-imap
120
127
  net-pop
121
128
  net-smtp
122
- marcel (1.0.2)
129
+ marcel (1.1.0)
123
130
  mini_mime (1.1.5)
124
- mini_portile2 (2.8.5)
125
- minitest (5.20.0)
126
- minitest-autotest (1.1.1)
131
+ mini_portile2 (2.8.9)
132
+ minitest (5.27.0)
133
+ minitest-autotest (1.2.0)
127
134
  minitest-server (~> 1.0)
128
- path_expander (~> 1.0)
135
+ path_expander (~> 2.0)
129
136
  minitest-focus (1.4.0)
130
137
  minitest (>= 4, < 6)
131
- minitest-server (1.0.7)
132
- minitest (~> 5.16)
133
- mocha (2.1.0)
138
+ minitest-server (1.0.9)
139
+ drb (~> 2.0)
140
+ minitest (> 5.16)
141
+ mocha (3.0.1)
134
142
  ruby2_keywords (>= 0.0.5)
135
- multi_json (1.15.0)
136
- mutex_m (0.2.0)
137
- net-imap (0.4.9.1)
143
+ net-imap (0.6.2)
138
144
  date
139
145
  net-protocol
140
146
  net-pop (0.1.2)
141
147
  net-protocol
142
148
  net-protocol (0.2.2)
143
149
  timeout
144
- net-smtp (0.4.0.1)
150
+ net-smtp (0.5.1)
145
151
  net-protocol
146
- nio4r (2.7.0)
147
- nokogiri (1.16.0)
152
+ nio4r (2.7.5)
153
+ nokogiri (1.19.0)
148
154
  mini_portile2 (~> 2.8.2)
149
155
  racc (~> 1.4)
150
- parallel (1.24.0)
151
- parser (3.3.0.2)
156
+ parallel (1.27.0)
157
+ parser (3.3.10.0)
152
158
  ast (~> 2.4.1)
153
159
  racc
154
- path_expander (1.1.1)
155
- psych (5.1.2)
160
+ path_expander (2.0.0)
161
+ pp (0.6.3)
162
+ prettyprint
163
+ prettyprint (0.2.0)
164
+ prism (1.7.0)
165
+ psych (5.3.1)
166
+ date
156
167
  stringio
157
- racc (1.7.3)
158
- rack (3.0.8)
159
- rack-session (2.0.0)
168
+ racc (1.8.1)
169
+ rack (3.2.4)
170
+ rack-session (2.1.1)
171
+ base64 (>= 0.1.0)
160
172
  rack (>= 3.0.0)
161
- rack-test (2.1.0)
173
+ rack-test (2.2.0)
162
174
  rack (>= 1.3)
163
- rackup (2.1.0)
175
+ rackup (2.3.1)
164
176
  rack (>= 3)
165
- webrick (~> 1.8)
166
- rails (7.1.2)
167
- actioncable (= 7.1.2)
168
- actionmailbox (= 7.1.2)
169
- actionmailer (= 7.1.2)
170
- actionpack (= 7.1.2)
171
- actiontext (= 7.1.2)
172
- actionview (= 7.1.2)
173
- activejob (= 7.1.2)
174
- activemodel (= 7.1.2)
175
- activerecord (= 7.1.2)
176
- activestorage (= 7.1.2)
177
- activesupport (= 7.1.2)
177
+ rails (8.1.1)
178
+ actioncable (= 8.1.1)
179
+ actionmailbox (= 8.1.1)
180
+ actionmailer (= 8.1.1)
181
+ actionpack (= 8.1.1)
182
+ actiontext (= 8.1.1)
183
+ actionview (= 8.1.1)
184
+ activejob (= 8.1.1)
185
+ activemodel (= 8.1.1)
186
+ activerecord (= 8.1.1)
187
+ activestorage (= 8.1.1)
188
+ activesupport (= 8.1.1)
178
189
  bundler (>= 1.15.0)
179
- railties (= 7.1.2)
180
- rails-dom-testing (2.2.0)
190
+ railties (= 8.1.1)
191
+ rails-dom-testing (2.3.0)
181
192
  activesupport (>= 5.0.0)
182
193
  minitest
183
194
  nokogiri (>= 1.6)
184
- rails-html-sanitizer (1.6.0)
195
+ rails-html-sanitizer (1.6.2)
185
196
  loofah (~> 2.21)
186
- nokogiri (~> 1.14)
187
- railties (7.1.2)
188
- actionpack (= 7.1.2)
189
- activesupport (= 7.1.2)
190
- irb
197
+ 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)
198
+ railties (8.1.1)
199
+ actionpack (= 8.1.1)
200
+ activesupport (= 8.1.1)
201
+ irb (~> 1.13)
191
202
  rackup (>= 1.0.0)
192
203
  rake (>= 12.2)
193
204
  thor (~> 1.0, >= 1.2.2)
205
+ tsort (>= 0.2)
194
206
  zeitwerk (~> 2.6)
195
207
  rainbow (3.1.1)
196
- rake (13.1.0)
197
- rdoc (6.6.2)
208
+ rake (13.3.1)
209
+ rdoc (7.0.3)
210
+ erb
198
211
  psych (>= 4.0.0)
199
- regexp_parser (2.8.3)
200
- reline (0.4.2)
212
+ tsort
213
+ regexp_parser (2.11.3)
214
+ reline (0.6.3)
201
215
  io-console (~> 0.5)
202
- rexml (3.2.6)
203
- rubocop (1.59.0)
216
+ rubocop (1.82.1)
204
217
  json (~> 2.3)
205
- language_server-protocol (>= 3.17.0)
218
+ language_server-protocol (~> 3.17.0.2)
219
+ lint_roller (~> 1.1.0)
206
220
  parallel (~> 1.10)
207
- parser (>= 3.2.2.4)
221
+ parser (>= 3.3.0.2)
208
222
  rainbow (>= 2.2.2, < 4.0)
209
- regexp_parser (>= 1.8, < 3.0)
210
- rexml (>= 3.2.5, < 4.0)
211
- rubocop-ast (>= 1.30.0, < 2.0)
223
+ regexp_parser (>= 2.9.3, < 3.0)
224
+ rubocop-ast (>= 1.48.0, < 2.0)
212
225
  ruby-progressbar (~> 1.7)
213
- unicode-display_width (>= 2.4.0, < 3.0)
214
- rubocop-ast (1.30.0)
215
- parser (>= 3.2.1.0)
216
- rubocop-minitest (0.34.3)
217
- rubocop (>= 1.39, < 2.0)
218
- rubocop-ast (>= 1.30.0, < 2.0)
219
- rubocop-rake (0.6.0)
220
- rubocop (~> 1.0)
226
+ unicode-display_width (>= 2.4.0, < 4.0)
227
+ rubocop-ast (1.49.0)
228
+ parser (>= 3.3.7.2)
229
+ prism (~> 1.7)
230
+ rubocop-minitest (0.38.2)
231
+ lint_roller (~> 1.1)
232
+ rubocop (>= 1.75.0, < 2.0)
233
+ rubocop-ast (>= 1.38.0, < 2.0)
234
+ rubocop-rake (0.7.1)
235
+ lint_roller (~> 1.1)
236
+ rubocop (>= 1.72.1)
221
237
  ruby-progressbar (1.13.0)
222
238
  ruby2_keywords (0.0.5)
223
- sqlite3 (1.7.0)
239
+ securerandom (0.4.1)
240
+ sqlite3 (2.9.0)
224
241
  mini_portile2 (~> 2.8.0)
225
- stringio (3.1.0)
226
- thor (1.3.0)
227
- timeout (0.4.1)
242
+ stringio (3.2.0)
243
+ thor (1.4.0)
244
+ timeout (0.6.0)
245
+ tsort (0.2.0)
228
246
  tzinfo (2.0.6)
229
247
  concurrent-ruby (~> 1.0)
230
- unicode-display_width (2.5.0)
231
- webrick (1.8.1)
232
- websocket-driver (0.7.6)
248
+ unicode-display_width (3.2.0)
249
+ unicode-emoji (~> 4.1)
250
+ unicode-emoji (4.2.0)
251
+ uri (1.1.1)
252
+ useragent (0.16.11)
253
+ websocket-driver (0.8.0)
254
+ base64
233
255
  websocket-extensions (>= 0.1.0)
234
256
  websocket-extensions (0.1.5)
235
- zeitwerk (2.6.12)
257
+ zeitwerk (2.7.4)
236
258
 
237
259
  PLATFORMS
238
260
  ruby
239
261
 
240
262
  DEPENDENCIES
263
+ appraisal
241
264
  autotest-suffix
242
265
  combustion
243
266
  debug
@@ -253,4 +276,4 @@ DEPENDENCIES
253
276
  stance!
254
277
 
255
278
  BUNDLED WITH
256
- 2.3.17
279
+ 4.0.3
@@ -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(MultiJson.load(str))
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
- MultiJson.dump(obj)
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: "../"