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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8572eed60f1685bd2f34849875259f071a8dbe05f7e1cd02aeb97a155c70021a
4
- data.tar.gz: 8abb221e5336b9d8034581ffd853cd248276b2641aeb6d23c9db67f16a456828
3
+ metadata.gz: 3054a22ff076a3a01357507ee6a68ce8e1c1b8d81a35f6a64cc25be50ff89147
4
+ data.tar.gz: 39a07f20a2a4e5bb556f5be02685153edd128524b8c6ca5d676c3042b6a7416a
5
5
  SHA512:
6
- metadata.gz: 86def811871ad856a7e35cb24a9a8f84b4fe71ae2834005bf75224f99bc0b10c8b73a9c4ca2dee0de272a688b436b9edb2d0602def3e04222a1211d0b1984d89
7
- data.tar.gz: 3dea2b96f4f894c1ff315c2b617e688de3f3886ad0e52528d1708778bcc5cb906fc19fc7620885103bf8bc8301a6acea879ae0a742abedc43f19b0ef19a95a29
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
@@ -0,0 +1,13 @@
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
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,117 +1,120 @@
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.0)
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
+ 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 (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
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 (7.1.2)
38
- actionview (= 7.1.2)
39
- activesupport (= 7.1.2)
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
- actiontext (7.1.2)
48
- actionpack (= 7.1.2)
49
- activerecord (= 7.1.2)
50
- activestorage (= 7.1.2)
51
- activesupport (= 7.1.2)
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 (7.1.2)
55
- activesupport (= 7.1.2)
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 (7.1.2)
61
- activesupport (= 7.1.2)
53
+ activejob (8.0.1)
54
+ activesupport (= 8.0.1)
62
55
  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)
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 (7.1.2)
70
- actionpack (= 7.1.2)
71
- activejob (= 7.1.2)
72
- activerecord (= 7.1.2)
73
- activesupport (= 7.1.2)
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 (7.1.2)
68
+ activesupport (8.0.1)
76
69
  base64
70
+ benchmark (>= 0.3)
77
71
  bigdecimal
78
- concurrent-ruby (~> 1.0, >= 1.0.2)
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
- mutex_m
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
- bigdecimal (3.1.5)
89
- builder (3.2.4)
90
- combustion (1.3.7)
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.2.2)
95
- connection_pool (2.4.1)
95
+ concurrent-ruby (1.3.5)
96
+ connection_pool (2.5.0)
96
97
  crass (1.0.6)
97
- date (3.3.4)
98
- debug (1.9.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.0)
102
- ruby2_keywords
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.1)
106
+ i18n (1.14.7)
107
107
  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)
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.2)
125
+ marcel (1.0.4)
123
126
  mini_mime (1.1.5)
124
- mini_portile2 (2.8.5)
125
- minitest (5.20.0)
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.7)
134
+ minitest-server (1.0.8)
135
+ drb (~> 2.0)
132
136
  minitest (~> 5.16)
133
- mocha (2.1.0)
137
+ mocha (2.7.1)
134
138
  ruby2_keywords (>= 0.0.5)
135
- multi_json (1.15.0)
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.4.0.1)
146
+ net-smtp (0.5.1)
145
147
  net-protocol
146
- nio4r (2.7.0)
147
- nokogiri (1.16.0)
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.24.0)
151
- parser (3.3.0.2)
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.1)
155
- psych (5.1.2)
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.7.3)
158
- rack (3.0.8)
159
- rack-session (2.0.0)
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.1.0)
168
+ rack-test (2.2.0)
162
169
  rack (>= 1.3)
163
- rackup (2.1.0)
170
+ rackup (2.2.1)
164
171
  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)
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 (= 7.1.2)
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.0)
190
+ rails-html-sanitizer (1.6.2)
185
191
  loofah (~> 2.21)
186
- nokogiri (~> 1.14)
187
- railties (7.1.2)
188
- actionpack (= 7.1.2)
189
- activesupport (= 7.1.2)
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.0)
197
- rdoc (6.6.2)
202
+ rake (13.2.1)
203
+ rdoc (6.12.0)
198
204
  psych (>= 4.0.0)
199
- regexp_parser (2.8.3)
200
- reline (0.4.2)
205
+ regexp_parser (2.10.0)
206
+ reline (0.6.0)
201
207
  io-console (~> 0.5)
202
- rexml (3.2.6)
203
- rubocop (1.59.0)
208
+ rubocop (1.73.2)
204
209
  json (~> 2.3)
205
- language_server-protocol (>= 3.17.0)
210
+ language_server-protocol (~> 3.17.0.2)
211
+ lint_roller (~> 1.1.0)
206
212
  parallel (~> 1.10)
207
- parser (>= 3.2.2.4)
213
+ parser (>= 3.3.0.2)
208
214
  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)
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, < 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)
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
- sqlite3 (1.7.0)
230
+ securerandom (0.4.1)
231
+ sqlite3 (2.6.0)
224
232
  mini_portile2 (~> 2.8.0)
225
- stringio (3.1.0)
226
- thor (1.3.0)
227
- timeout (0.4.1)
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 (2.5.0)
231
- webrick (1.8.1)
232
- websocket-driver (0.7.6)
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.6.12)
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.3.17
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(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: "../"