specdiff 0.3.0.pre.rc1 → 0.3.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +14 -0
- data/CHANGELOG.md +15 -1
- data/README.md +1 -2
- data/lib/specdiff/compare.rb +2 -2
- data/lib/specdiff/diff.rb +10 -7
- data/lib/specdiff/differ/{hashdiff.rb → hash.rb} +48 -34
- data/lib/specdiff/differ.rb +1 -1
- data/lib/specdiff/hashprint.rb +47 -27
- data/lib/specdiff/inspect.rb +94 -1
- data/lib/specdiff/rspec.rb +6 -13
- data/lib/specdiff/version.rb +1 -1
- data/lib/specdiff/webmock.rb +4 -2
- data/specdiff.gemspec +6 -7
- metadata +4 -20
- data/.rspec +0 -3
- data/.rubocop.yml +0 -203
- data/.tool-versions +0 -1
- data/Gemfile +0 -12
- data/Gemfile.lock +0 -76
- data/Rakefile +0 -12
- data/assets/webmock_json_with_specdiff.png +0 -0
- data/assets/webmock_text_with_specdiff.png +0 -0
- data/examples/rspec/.rspec +0 -2
- data/examples/rspec/Gemfile +0 -10
- data/examples/rspec/Gemfile.lock +0 -52
- data/examples/rspec/spec/example_spec.rb +0 -678
- data/examples/rspec/spec/spec_helper.rb +0 -68
- data/examples/webmock/Gemfile +0 -6
- data/examples/webmock/Gemfile.lock +0 -50
- data/examples/webmock/json.rb +0 -37
- data/examples/webmock/text.rb +0 -39
data/.rubocop.yml
DELETED
@@ -1,203 +0,0 @@
|
|
1
|
-
AllCops:
|
2
|
-
TargetRubyVersion: 3.0
|
3
|
-
|
4
|
-
require:
|
5
|
-
- rubocop-rspec
|
6
|
-
- rubocop-rake
|
7
|
-
|
8
|
-
##
|
9
|
-
# LAYOUT COPS
|
10
|
-
##
|
11
|
-
|
12
|
-
Layout:
|
13
|
-
Enabled: false
|
14
|
-
|
15
|
-
Layout/LineLength:
|
16
|
-
Enabled: true
|
17
|
-
Max: 120
|
18
|
-
|
19
|
-
Layout/SpaceInsideBlockBraces:
|
20
|
-
Enabled: true
|
21
|
-
EnforcedStyle: space
|
22
|
-
SpaceBeforeBlockParameters: no_space
|
23
|
-
Layout/SpaceInsideHashLiteralBraces:
|
24
|
-
Enabled: true
|
25
|
-
EnforcedStyle: no_space
|
26
|
-
|
27
|
-
Layout/MultilineMethodCallIndentation:
|
28
|
-
Enabled: true
|
29
|
-
EnforcedStyle: indented
|
30
|
-
|
31
|
-
##
|
32
|
-
# STYLE COPS
|
33
|
-
##
|
34
|
-
|
35
|
-
Style:
|
36
|
-
Enabled: false
|
37
|
-
|
38
|
-
Style/TrailingCommaInArrayLiteral:
|
39
|
-
Enabled: true
|
40
|
-
EnforcedStyleForMultiline: consistent_comma
|
41
|
-
|
42
|
-
Style/TrailingCommaInHashLiteral:
|
43
|
-
Enabled: true
|
44
|
-
EnforcedStyleForMultiline: consistent_comma
|
45
|
-
|
46
|
-
Style/SpecialGlobalVars:
|
47
|
-
Enabled: true
|
48
|
-
EnforcedStyle: use_english_names
|
49
|
-
|
50
|
-
##
|
51
|
-
# NAMING COPS
|
52
|
-
##
|
53
|
-
|
54
|
-
Naming/BlockForwarding: # new in 1.24
|
55
|
-
Enabled: false
|
56
|
-
Naming/MethodParameterName:
|
57
|
-
Enabled: false
|
58
|
-
|
59
|
-
##
|
60
|
-
# SECURITY COPS
|
61
|
-
##
|
62
|
-
|
63
|
-
Security/CompoundHash: # new in 1.28
|
64
|
-
Enabled: true
|
65
|
-
Security/IoMethods: # new in 1.22
|
66
|
-
Enabled: true
|
67
|
-
|
68
|
-
##
|
69
|
-
# LINT COPS
|
70
|
-
##
|
71
|
-
|
72
|
-
Lint/SuppressedException:
|
73
|
-
AllowComments: true
|
74
|
-
Lint/AmbiguousAssignment: # new in 1.7
|
75
|
-
Enabled: true
|
76
|
-
Lint/AmbiguousOperatorPrecedence: # new in 1.21
|
77
|
-
Enabled: true
|
78
|
-
Lint/AmbiguousRange: # new in 1.19
|
79
|
-
Enabled: true
|
80
|
-
Lint/ConstantOverwrittenInRescue: # new in 1.31
|
81
|
-
Enabled: true
|
82
|
-
Lint/DeprecatedConstants: # new in 1.8
|
83
|
-
Enabled: true
|
84
|
-
Lint/DuplicateBranch: # new in 1.3
|
85
|
-
Enabled: true
|
86
|
-
IgnoreLiteralBranches: true
|
87
|
-
IgnoreConstantBranches: true
|
88
|
-
Lint/DuplicateMagicComment: # new in 1.37
|
89
|
-
Enabled: true
|
90
|
-
Lint/DuplicateMatchPattern: # new in 1.50
|
91
|
-
Enabled: true
|
92
|
-
Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
|
93
|
-
Enabled: true
|
94
|
-
Lint/EmptyBlock: # new in 1.1
|
95
|
-
Enabled: true
|
96
|
-
Lint/EmptyClass: # new in 1.3
|
97
|
-
Enabled: true
|
98
|
-
Lint/EmptyInPattern: # new in 1.16
|
99
|
-
Enabled: true
|
100
|
-
Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
|
101
|
-
Enabled: true
|
102
|
-
Lint/LambdaWithoutLiteralBlock: # new in 1.8
|
103
|
-
Enabled: true
|
104
|
-
Lint/MixedCaseRange: # new in 1.53
|
105
|
-
Enabled: true
|
106
|
-
Lint/NoReturnInBeginEndBlocks: # new in 1.2
|
107
|
-
Enabled: true
|
108
|
-
Lint/NonAtomicFileOperation: # new in 1.31
|
109
|
-
Enabled: true
|
110
|
-
Lint/NumberedParameterAssignment: # new in 1.9
|
111
|
-
Enabled: true
|
112
|
-
Lint/OrAssignmentToConstant: # new in 1.9
|
113
|
-
Enabled: true
|
114
|
-
Lint/RedundantDirGlobSort: # new in 1.8
|
115
|
-
Enabled: true
|
116
|
-
Lint/RedundantRegexpQuantifiers: # new in 1.53
|
117
|
-
Enabled: true
|
118
|
-
Lint/RefinementImportMethods: # new in 1.27
|
119
|
-
Enabled: true
|
120
|
-
Lint/RequireRangeParentheses: # new in 1.32
|
121
|
-
Enabled: true
|
122
|
-
Lint/RequireRelativeSelfPath: # new in 1.22
|
123
|
-
Enabled: true
|
124
|
-
Lint/SymbolConversion: # new in 1.9
|
125
|
-
Enabled: true
|
126
|
-
Lint/ToEnumArguments: # new in 1.1
|
127
|
-
Enabled: true
|
128
|
-
Lint/TripleQuotes: # new in 1.9
|
129
|
-
Enabled: true
|
130
|
-
Lint/UnexpectedBlockArity: # new in 1.5
|
131
|
-
Enabled: true
|
132
|
-
Lint/UnmodifiedReduceAccumulator: # new in 1.1
|
133
|
-
Enabled: true
|
134
|
-
Lint/UselessRescue: # new in 1.43
|
135
|
-
Enabled: true
|
136
|
-
Lint/UselessRuby2Keywords: # new in 1.23
|
137
|
-
Enabled: true
|
138
|
-
|
139
|
-
##
|
140
|
-
# METRICS COPS
|
141
|
-
##
|
142
|
-
|
143
|
-
Metrics:
|
144
|
-
Enabled: false
|
145
|
-
|
146
|
-
##
|
147
|
-
# GEMSPEC COPS
|
148
|
-
##
|
149
|
-
|
150
|
-
Gemspec/DeprecatedAttributeAssignment: # new in 1.30
|
151
|
-
Enabled: true
|
152
|
-
Gemspec/DevelopmentDependencies: # new in 1.44
|
153
|
-
Enabled: true
|
154
|
-
Gemspec/RequireMFA: # new in 1.23
|
155
|
-
Enabled: false
|
156
|
-
Gemspec/OrderedDependencies:
|
157
|
-
Enabled: false
|
158
|
-
|
159
|
-
##
|
160
|
-
# BUNDLER COPS
|
161
|
-
##
|
162
|
-
|
163
|
-
Bundler/OrderedGems:
|
164
|
-
Enabled: false
|
165
|
-
|
166
|
-
##
|
167
|
-
# RSPEC COPS
|
168
|
-
##
|
169
|
-
|
170
|
-
# documentation can be found in
|
171
|
-
# http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/<name>
|
172
|
-
RSpec:
|
173
|
-
Enabled: false
|
174
|
-
|
175
|
-
RSpec/HookArgument:
|
176
|
-
Enabled: true
|
177
|
-
EnforcedStyle: each
|
178
|
-
RSpec/MessageSpies:
|
179
|
-
Enabled: true
|
180
|
-
EnforcedStyle: receive
|
181
|
-
|
182
|
-
##
|
183
|
-
# CAPYBARA COPS
|
184
|
-
##
|
185
|
-
|
186
|
-
# cant remember installing capybara but whatever
|
187
|
-
Capybara:
|
188
|
-
Enabled: false
|
189
|
-
|
190
|
-
##
|
191
|
-
# FACTORYBOT COPS
|
192
|
-
##
|
193
|
-
|
194
|
-
# cant remember installing factorybot but whatever
|
195
|
-
FactoryBot:
|
196
|
-
Enabled: false
|
197
|
-
|
198
|
-
##
|
199
|
-
# RAKE COPS
|
200
|
-
##
|
201
|
-
|
202
|
-
Rake:
|
203
|
-
Enabled: true
|
data/.tool-versions
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
ruby 3.2.2
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,76 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
specdiff (0.3.0.pre.rc1)
|
5
|
-
diff-lcs (~> 1.5)
|
6
|
-
hashdiff (~> 1.0)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
ast (2.4.2)
|
12
|
-
diff-lcs (1.5.0)
|
13
|
-
hashdiff (1.0.1)
|
14
|
-
json (2.6.3)
|
15
|
-
language_server-protocol (3.17.0.3)
|
16
|
-
parallel (1.23.0)
|
17
|
-
parser (3.2.2.4)
|
18
|
-
ast (~> 2.4.1)
|
19
|
-
racc
|
20
|
-
racc (1.7.3)
|
21
|
-
rainbow (3.1.1)
|
22
|
-
rake (13.1.0)
|
23
|
-
regexp_parser (2.8.2)
|
24
|
-
rexml (3.2.6)
|
25
|
-
rspec (3.12.0)
|
26
|
-
rspec-core (~> 3.12.0)
|
27
|
-
rspec-expectations (~> 3.12.0)
|
28
|
-
rspec-mocks (~> 3.12.0)
|
29
|
-
rspec-core (3.12.2)
|
30
|
-
rspec-support (~> 3.12.0)
|
31
|
-
rspec-expectations (3.12.3)
|
32
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
33
|
-
rspec-support (~> 3.12.0)
|
34
|
-
rspec-mocks (3.12.6)
|
35
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
36
|
-
rspec-support (~> 3.12.0)
|
37
|
-
rspec-support (3.12.1)
|
38
|
-
rubocop (1.57.2)
|
39
|
-
json (~> 2.3)
|
40
|
-
language_server-protocol (>= 3.17.0)
|
41
|
-
parallel (~> 1.10)
|
42
|
-
parser (>= 3.2.2.4)
|
43
|
-
rainbow (>= 2.2.2, < 4.0)
|
44
|
-
regexp_parser (>= 1.8, < 3.0)
|
45
|
-
rexml (>= 3.2.5, < 4.0)
|
46
|
-
rubocop-ast (>= 1.28.1, < 2.0)
|
47
|
-
ruby-progressbar (~> 1.7)
|
48
|
-
unicode-display_width (>= 2.4.0, < 3.0)
|
49
|
-
rubocop-ast (1.30.0)
|
50
|
-
parser (>= 3.2.1.0)
|
51
|
-
rubocop-capybara (2.19.0)
|
52
|
-
rubocop (~> 1.41)
|
53
|
-
rubocop-factory_bot (2.24.0)
|
54
|
-
rubocop (~> 1.33)
|
55
|
-
rubocop-rake (0.6.0)
|
56
|
-
rubocop (~> 1.0)
|
57
|
-
rubocop-rspec (2.25.0)
|
58
|
-
rubocop (~> 1.40)
|
59
|
-
rubocop-capybara (~> 2.17)
|
60
|
-
rubocop-factory_bot (~> 2.22)
|
61
|
-
ruby-progressbar (1.13.0)
|
62
|
-
unicode-display_width (2.5.0)
|
63
|
-
|
64
|
-
PLATFORMS
|
65
|
-
x86_64-linux
|
66
|
-
|
67
|
-
DEPENDENCIES
|
68
|
-
rake (~> 13.0)
|
69
|
-
rspec (~> 3.0)
|
70
|
-
rubocop (~> 1.21)
|
71
|
-
rubocop-rake (~> 0.6.0)
|
72
|
-
rubocop-rspec (~> 2.25)
|
73
|
-
specdiff!
|
74
|
-
|
75
|
-
BUNDLED WITH
|
76
|
-
2.3.5
|
data/Rakefile
DELETED
Binary file
|
Binary file
|
data/examples/rspec/.rspec
DELETED
data/examples/rspec/Gemfile
DELETED
data/examples/rspec/Gemfile.lock
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ../..
|
3
|
-
specs:
|
4
|
-
specdiff (0.3.0.pre.rc1)
|
5
|
-
diff-lcs (~> 1.5)
|
6
|
-
hashdiff (~> 1.0)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
bigdecimal (3.1.7)
|
12
|
-
debug (1.9.1)
|
13
|
-
irb (~> 1.10)
|
14
|
-
reline (>= 0.3.8)
|
15
|
-
diff-lcs (1.5.1)
|
16
|
-
hashdiff (1.1.0)
|
17
|
-
io-console (0.7.2)
|
18
|
-
irb (1.12.0)
|
19
|
-
rdoc
|
20
|
-
reline (>= 0.4.2)
|
21
|
-
psych (5.1.2)
|
22
|
-
stringio
|
23
|
-
rdoc (6.6.2)
|
24
|
-
psych (>= 4.0.0)
|
25
|
-
reline (0.4.3)
|
26
|
-
io-console (~> 0.5)
|
27
|
-
rspec (3.13.0)
|
28
|
-
rspec-core (~> 3.13.0)
|
29
|
-
rspec-expectations (~> 3.13.0)
|
30
|
-
rspec-mocks (~> 3.13.0)
|
31
|
-
rspec-core (3.13.0)
|
32
|
-
rspec-support (~> 3.13.0)
|
33
|
-
rspec-expectations (3.13.0)
|
34
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
35
|
-
rspec-support (~> 3.13.0)
|
36
|
-
rspec-mocks (3.13.0)
|
37
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
38
|
-
rspec-support (~> 3.13.0)
|
39
|
-
rspec-support (3.13.1)
|
40
|
-
stringio (3.1.0)
|
41
|
-
|
42
|
-
PLATFORMS
|
43
|
-
x86_64-linux
|
44
|
-
|
45
|
-
DEPENDENCIES
|
46
|
-
bigdecimal
|
47
|
-
debug
|
48
|
-
rspec
|
49
|
-
specdiff!
|
50
|
-
|
51
|
-
BUNDLED WITH
|
52
|
-
2.3.5
|