shoulda-context 2.0.0 → 3.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +47 -0
- data/.github/workflows/dynamic-readme.yml +17 -0
- data/.github/workflows/rubocop.yml +30 -0
- data/.rubocop.yml +3 -1
- data/.rubocop_todo.yml +338 -0
- data/.ruby-version +1 -1
- data/Appraisals +28 -75
- data/CHANGELOG.md +50 -0
- data/Gemfile.lock +2 -2
- data/{MIT-LICENSE → LICENSE} +1 -1
- data/MAINTAINING.md +104 -0
- data/README.md +60 -26
- data/bin/supported_ruby_versions +3 -3
- data/exe/convert_to_should_syntax +1 -1
- data/gemfiles/rails_6_0.gemfile.lock +148 -125
- data/gemfiles/{rails_5_1.gemfile → rails_6_1.gemfile} +17 -14
- data/gemfiles/rails_6_1.gemfile.lock +306 -0
- data/lib/shoulda/context/context.rb +16 -6
- data/lib/shoulda/context/dsl.rb +8 -6
- data/lib/shoulda/context/version.rb +1 -1
- data/lib/shoulda/context.rb +0 -1
- data/test/shoulda/helpers_test.rb +2 -4
- data/test/shoulda/rerun_snippet_test.rb +29 -10
- data/test/shoulda/should_test.rb +1 -1
- data/test/shoulda/test_framework_detection_test.rb +0 -24
- metadata +14 -35
- data/.hound.yml +0 -3
- data/.travis.yml +0 -37
- data/CONTRIBUTING.md +0 -38
- data/gemfiles/rails_4_2.gemfile +0 -35
- data/gemfiles/rails_4_2.gemfile.lock +0 -234
- data/gemfiles/rails_5_0.gemfile +0 -33
- data/gemfiles/rails_5_0.gemfile.lock +0 -226
- data/gemfiles/rails_5_1.gemfile.lock +0 -242
- data/gemfiles/rails_5_2.gemfile +0 -36
- data/gemfiles/rails_5_2.gemfile.lock +0 -261
- data/lib/shoulda/context/rails_test_unit_reporter_patch.rb +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef3e6e684833a6901343950755baa723ed2a7e3f34a3f542e686c10e88129cd8
|
4
|
+
data.tar.gz: 8d7d325119399ac0b1662a93a930c2b9bbc2b7e43de917d6123eea4ee18a273e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73b494b92eaed6a44c6b0721e753bed80d067566f7a7496560b7b72e9cf0b47802edaab170b78fd693f07c86fc0c4d89aa5baac14cebb45fa34ee8aa83facf39
|
7
|
+
data.tar.gz: 3c4132ea67da6ac776831a801a487754922cd3af6ebd3e082f4a8b1f5a1eef6366673e6e7036ec9494d92b4426b7aae4069f27ef08c9aa33c44619e23ae106b3
|
@@ -0,0 +1,47 @@
|
|
1
|
+
name: Test
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- main
|
7
|
+
paths-ignore:
|
8
|
+
- '**.md'
|
9
|
+
pull_request:
|
10
|
+
types:
|
11
|
+
- opened
|
12
|
+
- synchronize
|
13
|
+
paths-ignore:
|
14
|
+
- '**.md'
|
15
|
+
|
16
|
+
jobs:
|
17
|
+
build:
|
18
|
+
runs-on: ubuntu-latest
|
19
|
+
strategy:
|
20
|
+
fail-fast: false
|
21
|
+
matrix:
|
22
|
+
ruby:
|
23
|
+
- 2.7.7
|
24
|
+
appraisal:
|
25
|
+
- rails_6_1
|
26
|
+
- rails_6_0
|
27
|
+
test_framework:
|
28
|
+
- minitest
|
29
|
+
- test_unit
|
30
|
+
env:
|
31
|
+
BUNDLE_GEMFILE: gemfiles/${{ matrix.appraisal }}.gemfile
|
32
|
+
TEST_FRAMEWORK: ${{ matrix.test_framework }}
|
33
|
+
steps:
|
34
|
+
- uses: actions/checkout@v3
|
35
|
+
- name: Set up Ruby
|
36
|
+
id: set-up-ruby
|
37
|
+
uses: ruby/setup-ruby@v1
|
38
|
+
with:
|
39
|
+
ruby-version: ${{ matrix.ruby }}
|
40
|
+
- uses: actions/cache@v3
|
41
|
+
with:
|
42
|
+
path: vendor/bundle
|
43
|
+
key: v1-rubygems-local-${{ runner.os }}-${{ matrix.ruby }}-${{ hashFiles(format('gemfiles/{0}.gemfile.lock', matrix.appraisal)) }}
|
44
|
+
- name: Install dependencies
|
45
|
+
run: bundle install --jobs=3 --retry=3
|
46
|
+
- name: Run Tests
|
47
|
+
run: bundle exec rake
|
@@ -0,0 +1,17 @@
|
|
1
|
+
name: update-templates
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- main
|
7
|
+
workflow_dispatch:
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
update-templates:
|
11
|
+
permissions:
|
12
|
+
contents: write
|
13
|
+
pull-requests: write
|
14
|
+
pages: write
|
15
|
+
uses: thoughtbot/templates/.github/workflows/dynamic-readme.yaml@main
|
16
|
+
secrets:
|
17
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
name: RuboCop
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
|
9
|
+
steps:
|
10
|
+
- name: Checkout Repository
|
11
|
+
uses: actions/checkout@v3
|
12
|
+
|
13
|
+
- name: Setup Ruby
|
14
|
+
uses: ruby/setup-ruby@v1
|
15
|
+
|
16
|
+
- name: Cache gems
|
17
|
+
uses: actions/cache@v3
|
18
|
+
with:
|
19
|
+
path: ../vendor/bundle
|
20
|
+
key: ${{ runner.os }}-rubocop-${{ hashFiles('**/Gemfile.lock') }}
|
21
|
+
restore-keys: |
|
22
|
+
${{ runner.os }}-rubocop-
|
23
|
+
|
24
|
+
- name: Install gems
|
25
|
+
run: |
|
26
|
+
bundle config path ../vendor/bundle
|
27
|
+
bundle install --jobs 4 --retry 3
|
28
|
+
|
29
|
+
- name: Run RuboCop
|
30
|
+
run: bundle exec rubocop --parallel
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,338 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2023-02-26 11:25:39 -0300 using RuboCop version 0.71.0.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 39
|
10
|
+
# Cop supports --auto-correct.
|
11
|
+
# Configuration parameters: TreatCommentsAsGroupSeparators, Include.
|
12
|
+
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
13
|
+
Bundler/OrderedGems:
|
14
|
+
Exclude:
|
15
|
+
- 'gemfiles/rails_4_2.gemfile'
|
16
|
+
- 'gemfiles/rails_5_0.gemfile'
|
17
|
+
- 'gemfiles/rails_5_1.gemfile'
|
18
|
+
- 'gemfiles/rails_5_2.gemfile'
|
19
|
+
- 'gemfiles/rails_6_0.gemfile'
|
20
|
+
|
21
|
+
# Offense count: 1
|
22
|
+
# Cop supports --auto-correct.
|
23
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
24
|
+
# SupportedStyles: with_first_argument, with_fixed_indentation
|
25
|
+
Layout/AlignArguments:
|
26
|
+
Exclude:
|
27
|
+
- 'test/shoulda/test_framework_detection_test.rb'
|
28
|
+
|
29
|
+
# Offense count: 1
|
30
|
+
# Cop supports --auto-correct.
|
31
|
+
Layout/EmptyLineAfterGuardClause:
|
32
|
+
Exclude:
|
33
|
+
- 'lib/shoulda/context/context.rb'
|
34
|
+
|
35
|
+
# Offense count: 5
|
36
|
+
# Cop supports --auto-correct.
|
37
|
+
# Configuration parameters: EnforcedStyle.
|
38
|
+
# SupportedStyles: empty_lines, no_empty_lines
|
39
|
+
Layout/EmptyLinesAroundBlockBody:
|
40
|
+
Exclude:
|
41
|
+
- 'test/shoulda/context_test.rb'
|
42
|
+
|
43
|
+
# Offense count: 1
|
44
|
+
# Cop supports --auto-correct.
|
45
|
+
# Configuration parameters: EnforcedStyle.
|
46
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
|
47
|
+
Layout/EmptyLinesAroundClassBody:
|
48
|
+
Exclude:
|
49
|
+
- 'test/shoulda/context_test.rb'
|
50
|
+
|
51
|
+
# Offense count: 1
|
52
|
+
# Cop supports --auto-correct.
|
53
|
+
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
|
54
|
+
Layout/ExtraSpacing:
|
55
|
+
Exclude:
|
56
|
+
- 'Appraisals'
|
57
|
+
|
58
|
+
# Offense count: 4
|
59
|
+
# Cop supports --auto-correct.
|
60
|
+
Layout/SpaceAfterComma:
|
61
|
+
Exclude:
|
62
|
+
- 'lib/shoulda/context/assertions.rb'
|
63
|
+
- 'lib/shoulda/context/context.rb'
|
64
|
+
- 'lib/shoulda/context/tasks/yaml_to_shoulda.rake'
|
65
|
+
|
66
|
+
# Offense count: 1
|
67
|
+
# Cop supports --auto-correct.
|
68
|
+
Layout/SpaceAfterNot:
|
69
|
+
Exclude:
|
70
|
+
- 'test/shoulda/should_test.rb'
|
71
|
+
|
72
|
+
# Offense count: 2
|
73
|
+
# Cop supports --auto-correct.
|
74
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
75
|
+
# SupportedStyles: space, no_space
|
76
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
77
|
+
Layout/SpaceBeforeBlockBraces:
|
78
|
+
Exclude:
|
79
|
+
- 'lib/shoulda/context/autoload_macros.rb'
|
80
|
+
|
81
|
+
# Offense count: 16
|
82
|
+
# Cop supports --auto-correct.
|
83
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
84
|
+
# SupportedStyles: space, no_space
|
85
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
86
|
+
Layout/SpaceInsideBlockBraces:
|
87
|
+
Exclude:
|
88
|
+
- 'exe/convert_to_should_syntax'
|
89
|
+
- 'lib/shoulda/context/assertions.rb'
|
90
|
+
- 'lib/shoulda/context/autoload_macros.rb'
|
91
|
+
- 'lib/shoulda/context/tasks/list_tests.rake'
|
92
|
+
- 'test/shoulda/convert_to_should_syntax_test.rb'
|
93
|
+
- 'test/shoulda/helpers_test.rb'
|
94
|
+
- 'test/shoulda/should_test.rb'
|
95
|
+
|
96
|
+
# Offense count: 8
|
97
|
+
# Cop supports --auto-correct.
|
98
|
+
# Configuration parameters: EnforcedStyle.
|
99
|
+
# SupportedStyles: space, no_space
|
100
|
+
Layout/SpaceInsideParens:
|
101
|
+
Exclude:
|
102
|
+
- 'lib/shoulda/context/tasks/yaml_to_shoulda.rake'
|
103
|
+
|
104
|
+
# Offense count: 3
|
105
|
+
# Cop supports --auto-correct.
|
106
|
+
# Configuration parameters: EnforcedStyle.
|
107
|
+
# SupportedStyles: final_newline, final_blank_line
|
108
|
+
Layout/TrailingBlankLines:
|
109
|
+
Exclude:
|
110
|
+
- 'lib/shoulda/context/context.rb'
|
111
|
+
- 'test/fake_rails_root/test/shoulda_macros/custom_macro.rb'
|
112
|
+
- 'test/shoulda/autoload_macro_test.rb'
|
113
|
+
|
114
|
+
# Offense count: 4
|
115
|
+
# Cop supports --auto-correct.
|
116
|
+
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
117
|
+
Lint/UnusedBlockArgument:
|
118
|
+
Exclude:
|
119
|
+
- 'exe/convert_to_should_syntax'
|
120
|
+
- 'test/shoulda/context_test.rb'
|
121
|
+
|
122
|
+
# Offense count: 1
|
123
|
+
# Cop supports --auto-correct.
|
124
|
+
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
125
|
+
Lint/UnusedMethodArgument:
|
126
|
+
Exclude:
|
127
|
+
- 'lib/shoulda/context/dsl.rb'
|
128
|
+
|
129
|
+
# Offense count: 2
|
130
|
+
Lint/UselessAssignment:
|
131
|
+
Exclude:
|
132
|
+
- 'lib/shoulda/context/context.rb'
|
133
|
+
|
134
|
+
# Offense count: 4
|
135
|
+
Metrics/AbcSize:
|
136
|
+
Max: 22
|
137
|
+
|
138
|
+
# Offense count: 1
|
139
|
+
# Configuration parameters: EnforcedStyle.
|
140
|
+
# SupportedStyles: lowercase, uppercase
|
141
|
+
Naming/HeredocDelimiterCase:
|
142
|
+
Exclude:
|
143
|
+
- 'lib/shoulda/context/context.rb'
|
144
|
+
|
145
|
+
# Offense count: 2
|
146
|
+
# Configuration parameters: Blacklist.
|
147
|
+
# Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
|
148
|
+
Naming/HeredocDelimiterNaming:
|
149
|
+
Exclude:
|
150
|
+
- 'test/shoulda/convert_to_should_syntax_test.rb'
|
151
|
+
|
152
|
+
# Offense count: 5
|
153
|
+
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
|
154
|
+
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
|
155
|
+
Naming/MemoizedInstanceVariableName:
|
156
|
+
Exclude:
|
157
|
+
- 'lib/shoulda/context/context.rb'
|
158
|
+
- 'lib/shoulda/context/dsl.rb'
|
159
|
+
- 'lib/shoulda/context/world.rb'
|
160
|
+
|
161
|
+
# Offense count: 3
|
162
|
+
# Cop supports --auto-correct.
|
163
|
+
# Configuration parameters: PreferredName.
|
164
|
+
Naming/RescuedExceptionsVariableName:
|
165
|
+
Exclude:
|
166
|
+
- 'test/shoulda/helpers_test.rb'
|
167
|
+
|
168
|
+
# Offense count: 4
|
169
|
+
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
170
|
+
# AllowedNames: io, id, to, by, on, in, at, ip, db
|
171
|
+
Naming/UncommunicativeMethodParamName:
|
172
|
+
Exclude:
|
173
|
+
- 'lib/shoulda/context/assertions.rb'
|
174
|
+
|
175
|
+
# Offense count: 3
|
176
|
+
# Cop supports --auto-correct.
|
177
|
+
# Configuration parameters: Include.
|
178
|
+
# Include: **/test/**/*
|
179
|
+
Rails/AssertNot:
|
180
|
+
Exclude:
|
181
|
+
- 'test/shoulda/context_test.rb'
|
182
|
+
- 'test/shoulda/should_test.rb'
|
183
|
+
|
184
|
+
# Offense count: 1
|
185
|
+
# Configuration parameters: Include.
|
186
|
+
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
|
187
|
+
Rails/Output:
|
188
|
+
Exclude:
|
189
|
+
- 'lib/shoulda/context/context.rb'
|
190
|
+
|
191
|
+
# Offense count: 2
|
192
|
+
# Cop supports --auto-correct.
|
193
|
+
# Configuration parameters: Include.
|
194
|
+
# Include: **/test/**/*
|
195
|
+
Rails/RefuteMethods:
|
196
|
+
Exclude:
|
197
|
+
- 'test/shoulda/helpers_test.rb'
|
198
|
+
|
199
|
+
# Offense count: 1
|
200
|
+
# Cop supports --auto-correct.
|
201
|
+
# Configuration parameters: EnforcedStyle.
|
202
|
+
# SupportedStyles: strict, flexible
|
203
|
+
Rails/TimeZone:
|
204
|
+
Exclude:
|
205
|
+
- 'lib/shoulda/context/proc_extensions.rb'
|
206
|
+
|
207
|
+
# Offense count: 2
|
208
|
+
# Cop supports --auto-correct.
|
209
|
+
# Configuration parameters: EnforcedStyle.
|
210
|
+
# SupportedStyles: always, conditionals
|
211
|
+
Style/AndOr:
|
212
|
+
Exclude:
|
213
|
+
- 'lib/shoulda/context/tasks/yaml_to_shoulda.rake'
|
214
|
+
|
215
|
+
# Offense count: 20
|
216
|
+
# Cop supports --auto-correct.
|
217
|
+
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners.
|
218
|
+
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
219
|
+
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
220
|
+
# FunctionalMethods: let, let!, subject, watch
|
221
|
+
# IgnoredMethods: lambda, proc, it
|
222
|
+
Style/BlockDelimiters:
|
223
|
+
Exclude:
|
224
|
+
- 'lib/shoulda/context/context.rb'
|
225
|
+
- 'test/shoulda/should_test.rb'
|
226
|
+
|
227
|
+
# Offense count: 3
|
228
|
+
# Cop supports --auto-correct.
|
229
|
+
# Configuration parameters: EnforcedStyle.
|
230
|
+
# SupportedStyles: compact, expanded
|
231
|
+
Style/EmptyMethod:
|
232
|
+
Exclude:
|
233
|
+
- 'test/fake_rails_root/test/shoulda_macros/custom_macro.rb'
|
234
|
+
- 'test/fake_rails_root/vendor/gems/gem_with_macro-0.0.1/shoulda_macros/gem_macro.rb'
|
235
|
+
- 'test/fake_rails_root/vendor/plugins/plugin_with_macro/shoulda_macros/plugin_macro.rb'
|
236
|
+
|
237
|
+
# Offense count: 20
|
238
|
+
# Cop supports --auto-correct.
|
239
|
+
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
240
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
241
|
+
Style/HashSyntax:
|
242
|
+
Exclude:
|
243
|
+
- 'lib/shoulda/context/context.rb'
|
244
|
+
- 'lib/shoulda/context/dsl.rb'
|
245
|
+
- 'test/shoulda/helpers_test.rb'
|
246
|
+
- 'test/shoulda/should_test.rb'
|
247
|
+
|
248
|
+
# Offense count: 1
|
249
|
+
Style/MethodMissingSuper:
|
250
|
+
Exclude:
|
251
|
+
- 'lib/shoulda/context/context.rb'
|
252
|
+
|
253
|
+
# Offense count: 1
|
254
|
+
Style/MissingRespondToMissing:
|
255
|
+
Exclude:
|
256
|
+
- 'lib/shoulda/context/context.rb'
|
257
|
+
|
258
|
+
# Offense count: 3
|
259
|
+
# Cop supports --auto-correct.
|
260
|
+
# Configuration parameters: EnforcedStyle.
|
261
|
+
# SupportedStyles: literals, strict
|
262
|
+
Style/MutableConstant:
|
263
|
+
Exclude:
|
264
|
+
- 'test/shoulda/convert_to_should_syntax_test.rb'
|
265
|
+
|
266
|
+
# Offense count: 2
|
267
|
+
# Cop supports --auto-correct.
|
268
|
+
Style/ParallelAssignment:
|
269
|
+
Exclude:
|
270
|
+
- 'lib/shoulda/context/proc_extensions.rb'
|
271
|
+
- 'test/shoulda/should_test.rb'
|
272
|
+
|
273
|
+
# Offense count: 1
|
274
|
+
# Cop supports --auto-correct.
|
275
|
+
# Configuration parameters: AllowMultipleReturnValues.
|
276
|
+
Style/RedundantReturn:
|
277
|
+
Exclude:
|
278
|
+
- 'lib/shoulda/context/context.rb'
|
279
|
+
|
280
|
+
# Offense count: 18
|
281
|
+
# Cop supports --auto-correct.
|
282
|
+
Style/RedundantSelf:
|
283
|
+
Exclude:
|
284
|
+
- 'lib/shoulda/context/context.rb'
|
285
|
+
- 'lib/shoulda/context/dsl.rb'
|
286
|
+
- 'lib/shoulda/context/world.rb'
|
287
|
+
- 'test/shoulda/should_test.rb'
|
288
|
+
|
289
|
+
# Offense count: 1
|
290
|
+
# Cop supports --auto-correct.
|
291
|
+
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, Whitelist.
|
292
|
+
# Whitelist: present?, blank?, presence, try, try!
|
293
|
+
Style/SafeNavigation:
|
294
|
+
Exclude:
|
295
|
+
- 'lib/shoulda/context/dsl.rb'
|
296
|
+
|
297
|
+
# Offense count: 2
|
298
|
+
# Cop supports --auto-correct.
|
299
|
+
# Configuration parameters: AllowAsExpressionSeparator.
|
300
|
+
Style/Semicolon:
|
301
|
+
Exclude:
|
302
|
+
- 'lib/shoulda/context/assertions.rb'
|
303
|
+
|
304
|
+
# Offense count: 70
|
305
|
+
# Cop supports --auto-correct.
|
306
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
307
|
+
# SupportedStyles: single_quotes, double_quotes
|
308
|
+
Style/StringLiterals:
|
309
|
+
Exclude:
|
310
|
+
- 'Appraisals'
|
311
|
+
- 'bin/supported_ruby_versions'
|
312
|
+
- 'exe/convert_to_should_syntax'
|
313
|
+
- 'lib/shoulda/context/autoload_macros.rb'
|
314
|
+
- 'lib/shoulda/context/context.rb'
|
315
|
+
- 'lib/shoulda/context/dsl.rb'
|
316
|
+
- 'lib/shoulda/context/tasks.rb'
|
317
|
+
- 'lib/shoulda/context/tasks/list_tests.rake'
|
318
|
+
- 'lib/shoulda/context/tasks/yaml_to_shoulda.rake'
|
319
|
+
- 'test/shoulda/autoload_macro_test.rb'
|
320
|
+
- 'test/shoulda/context_test.rb'
|
321
|
+
- 'test/shoulda/convert_to_should_syntax_test.rb'
|
322
|
+
- 'test/shoulda/helpers_test.rb'
|
323
|
+
- 'test/shoulda/should_test.rb'
|
324
|
+
|
325
|
+
# Offense count: 1
|
326
|
+
# Cop supports --auto-correct.
|
327
|
+
# Configuration parameters: IgnoredMethods.
|
328
|
+
# IgnoredMethods: respond_to, define_method
|
329
|
+
Style/SymbolProc:
|
330
|
+
Exclude:
|
331
|
+
- 'lib/shoulda/context/context.rb'
|
332
|
+
|
333
|
+
# Offense count: 55
|
334
|
+
# Cop supports --auto-correct.
|
335
|
+
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
336
|
+
# URISchemes: http, https
|
337
|
+
Metrics/LineLength:
|
338
|
+
Max: 155
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.7.
|
1
|
+
2.7.7
|
data/Appraisals
CHANGED
@@ -22,94 +22,47 @@ shared_dependencies = proc do
|
|
22
22
|
instance_eval(&shared_test_dependencies)
|
23
23
|
end
|
24
24
|
|
25
|
-
appraise "
|
25
|
+
appraise "rails_6_0" do
|
26
26
|
instance_eval(&shared_dependencies)
|
27
27
|
|
28
|
-
gem "rails", "~>
|
29
|
-
gem "
|
30
|
-
gem "
|
31
|
-
gem "
|
32
|
-
gem "jquery-rails"
|
33
|
-
gem "turbolinks"
|
34
|
-
gem "jbuilder", "~> 2.0"
|
35
|
-
gem "sdoc", "~> 0.4.0", group: :doc
|
36
|
-
gem "bcrypt", "~> 3.1.7"
|
37
|
-
|
38
|
-
# Other dependencies we use
|
39
|
-
gem "activeresource", "4.0.0"
|
40
|
-
gem "json", "~> 1.4"
|
41
|
-
gem "protected_attributes", "~> 1.0.6"
|
42
|
-
end
|
43
|
-
|
44
|
-
appraise "rails_5_0" do
|
45
|
-
instance_eval(&shared_dependencies)
|
46
|
-
|
47
|
-
gem "rails", "~> 5.0.7"
|
48
|
-
gem "rails-controller-testing", ">= 1.0.1"
|
49
|
-
gem "puma", "~> 3.0"
|
50
|
-
gem "sass-rails", "~> 5.0"
|
51
|
-
gem "jquery-rails"
|
52
|
-
gem "turbolinks", "~> 5"
|
53
|
-
gem "jbuilder", "~> 2.5"
|
54
|
-
gem "bcrypt", "~> 3.1.7"
|
55
|
-
gem "listen", "~> 3.0.5"
|
56
|
-
gem "spring-watcher-listen", "~> 2.0.0"
|
57
|
-
end
|
58
|
-
|
59
|
-
appraise "rails_5_1" do
|
60
|
-
instance_eval(&shared_dependencies)
|
61
|
-
gem "rails", "~> 5.1.6"
|
62
|
-
gem "rails-controller-testing", ">= 1.0.1"
|
63
|
-
gem "puma", "~> 3.7"
|
64
|
-
gem "sass-rails", "~> 5.0"
|
28
|
+
gem "rails", "~> 6.0.2"
|
29
|
+
gem "puma", "~> 4.1"
|
30
|
+
gem "sass-rails", ">= 6"
|
31
|
+
gem "webpacker", "~> 4.0"
|
65
32
|
gem "turbolinks", "~> 5"
|
66
|
-
gem "jbuilder", "~> 2.
|
33
|
+
gem "jbuilder", "~> 2.7"
|
67
34
|
gem "bcrypt", "~> 3.1.7"
|
68
|
-
gem "
|
69
|
-
gem "selenium-webdriver"
|
35
|
+
gem "bootsnap", ">= 1.4.2", require: false
|
70
36
|
gem "listen", ">= 3.0.5", "< 3.2"
|
71
37
|
gem "spring-watcher-listen", "~> 2.0.0"
|
38
|
+
gem "capybara", ">= 2.15"
|
39
|
+
gem "selenium-webdriver"
|
40
|
+
gem "sqlite3", "~> 1.4.0"
|
41
|
+
gem "webdrivers"
|
42
|
+
|
43
|
+
# Other dependencies
|
44
|
+
gem "rails-controller-testing", ">= 1.0.4"
|
45
|
+
gem "pg", "~> 1.1", platform: :ruby
|
72
46
|
end
|
73
47
|
|
74
|
-
appraise "
|
48
|
+
appraise "rails_6_1" do
|
75
49
|
instance_eval(&shared_dependencies)
|
76
50
|
|
77
|
-
gem "rails", "~>
|
78
|
-
gem "
|
79
|
-
gem "
|
80
|
-
gem "bootsnap", ">= 1.1.0", require: false
|
81
|
-
gem "sass-rails", "~> 5.0"
|
51
|
+
gem "rails", "~> 6.1.3.2"
|
52
|
+
gem "puma", "~> 5.0"
|
53
|
+
gem "sass-rails", ">= 6"
|
82
54
|
gem "turbolinks", "~> 5"
|
83
|
-
gem "jbuilder", "~> 2.
|
55
|
+
gem "jbuilder", "~> 2.7"
|
84
56
|
gem "bcrypt", "~> 3.1.7"
|
85
|
-
gem "
|
86
|
-
gem "selenium-webdriver"
|
87
|
-
gem "chromedriver-helper"
|
57
|
+
gem "bootsnap", ">= 1.4.2", require: false
|
88
58
|
gem "listen", ">= 3.0.5", "< 3.2"
|
89
59
|
gem "spring-watcher-listen", "~> 2.0.0"
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
instance_eval(&shared_dependencies)
|
95
|
-
|
96
|
-
gem "rails", "~> 6.0.2"
|
97
|
-
gem "puma", "~> 4.1"
|
98
|
-
gem "sass-rails", ">= 6"
|
99
|
-
gem "webpacker", "~> 4.0"
|
100
|
-
gem "turbolinks", "~> 5"
|
101
|
-
gem "jbuilder", "~> 2.7"
|
102
|
-
gem "bcrypt", "~> 3.1.7"
|
103
|
-
gem "bootsnap", ">= 1.4.2", require: false
|
104
|
-
gem "listen", ">= 3.0.5", "< 3.2"
|
105
|
-
gem "spring-watcher-listen", "~> 2.0.0"
|
106
|
-
gem "capybara", ">= 2.15"
|
107
|
-
gem "selenium-webdriver"
|
108
|
-
gem "sqlite3", "~> 1.4.0"
|
109
|
-
gem "webdrivers"
|
60
|
+
gem "capybara", ">= 2.15"
|
61
|
+
gem "selenium-webdriver"
|
62
|
+
gem "sqlite3", "~> 1.4.0"
|
63
|
+
gem "webdrivers"
|
110
64
|
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
end
|
65
|
+
# Other dependencies
|
66
|
+
gem "rails-controller-testing", ">= 1.0.4"
|
67
|
+
gem 'pg', '>= 0.18', '< 2.0'
|
115
68
|
end
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,55 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 3.0.0.rc1 - 2024-04-21
|
4
|
+
|
5
|
+
### Backward-incompatible changes
|
6
|
+
|
7
|
+
* Drop support for Ruby 2.5 and 2.6 by @vsppedro. Ruby 2.7.x is the only version supported now. ([#76], [#77], [#78])
|
8
|
+
* Drop support for Rails 4.2, 5.0, 5.1 and 5.2 by @vsppedro. Rails 6.0.x and Rails 6.1.x are the only versions supported now. ([#79], [#80], [#81], [#82])
|
9
|
+
|
10
|
+
[#74]: https://github.com/thoughtbot/shoulda-context/pull/74
|
11
|
+
[#76]: https://github.com/thoughtbot/shoulda-context/pull/76
|
12
|
+
[#77]: https://github.com/thoughtbot/shoulda-context/pull/77
|
13
|
+
[#78]: https://github.com/thoughtbot/shoulda-context/pull/78
|
14
|
+
[#79]: https://github.com/thoughtbot/shoulda-context/pull/79
|
15
|
+
[#80]: https://github.com/thoughtbot/shoulda-context/pull/80
|
16
|
+
[#81]: https://github.com/thoughtbot/shoulda-context/pull/81
|
17
|
+
[#82]: https://github.com/thoughtbot/shoulda-context/pull/82
|
18
|
+
|
19
|
+
### Bug fixes
|
20
|
+
|
21
|
+
* Fix broken thoughtbot logo on README.md by @sarahraqueld. ([#0551d18c92eebd94db70917d668202508b7d2268])
|
22
|
+
* Use proper source location for should calls without a block by @segiddins. ([#92])
|
23
|
+
* Fix the link to the gem on Rubygems in the README by @mcmire and @0xRichardH. ([#1098f5beb9b49a9d88434f6b3b6ccb58b2dfe93f])
|
24
|
+
* Fix a method redefinition warning by @Earlopain. ([#94])
|
25
|
+
|
26
|
+
[#0551d18c92eebd94db70917d668202508b7d2268]: https://github.com/thoughtbot/shoulda-context/commit/0551d18c92eebd94db70917d668202508b7d2268
|
27
|
+
[#92]: https://github.com/thoughtbot/shoulda-context/pull/92
|
28
|
+
[#94]: https://github.com/thoughtbot/shoulda-context/pull/94
|
29
|
+
|
30
|
+
### Features
|
31
|
+
|
32
|
+
* Add support for Rails 6.1 by @vsppedro. ([#84])
|
33
|
+
|
34
|
+
[#84]: https://github.com/thoughtbot/shoulda-context/pull/84
|
35
|
+
|
36
|
+
### Improvements
|
37
|
+
|
38
|
+
* Update README for consistency across all shoulda-* gems by @mcmire. ([#5da1895f6c9917bc2aa0a248c209edb453a1340e])
|
39
|
+
* Bump warnings_logger to 0.1.1 by @mcmire. ([#970d3d57a584ecb2652f0bc7188761024de16c52])
|
40
|
+
* Add 'Getting started' section to the README by @mcmire. ([#52915f3a3cb36ae0494cfbacccc162b95932ca24])
|
41
|
+
* Switch to Github Actions by @vsppedro. ([#74], [#83])
|
42
|
+
* Do fewer intermediary allocations when calculating test methods by @segiddins. ([#89])
|
43
|
+
* Call dynamic-readme reusable workflow by @stefannibrasil. ([#95])
|
44
|
+
|
45
|
+
[#5da1895f6c9917bc2aa0a248c209edb453a1340e]: https://github.com/thoughtbot/shoulda-context/commit/5da1895f6c9917bc2aa0a248c209edb453a1340e
|
46
|
+
[#970d3d57a584ecb2652f0bc7188761024de16c52]: https://github.com/thoughtbot/shoulda-context/commit/970d3d57a584ecb2652f0bc7188761024de16c52
|
47
|
+
[#52915f3a3cb36ae0494cfbacccc162b95932ca24]: https://github.com/thoughtbot/shoulda-context/commit/52915f3a3cb36ae0494cfbacccc162b95932ca24
|
48
|
+
[#1098f5beb9b49a9d88434f6b3b6ccb58b2dfe93f]: https://github.com/thoughtbot/shoulda-context/commit/1098f5beb9b49a9d88434f6b3b6ccb58b2dfe93f
|
49
|
+
[#83]: https://github.com/thoughtbot/shoulda-context/pull/83
|
50
|
+
[#89]: https://github.com/thoughtbot/shoulda-context/pull/89
|
51
|
+
[#95]: https://github.com/thoughtbot/shoulda-context/pull/95
|
52
|
+
|
3
53
|
## 2.0.0 (2020-06-13)
|
4
54
|
|
5
55
|
### Backward-incompatible changes
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
shoulda-context (
|
4
|
+
shoulda-context (3.0.0.rc1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -45,7 +45,7 @@ GEM
|
|
45
45
|
power_assert
|
46
46
|
thor (1.0.1)
|
47
47
|
unicode-display_width (1.6.1)
|
48
|
-
warnings_logger (0.1.
|
48
|
+
warnings_logger (0.1.1)
|
49
49
|
|
50
50
|
PLATFORMS
|
51
51
|
ruby
|
data/{MIT-LICENSE → LICENSE}
RENAMED