reek 1.6.4 → 1.6.5
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/CHANGELOG +4 -0
- data/lib/reek/source/sexp_extensions.rb +6 -0
- data/lib/reek/version.rb +1 -1
- data/spec/reek/smells/nested_iterators_spec.rb +24 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58079e4892a1374d06df30942d7a17939eb533b5
|
4
|
+
data.tar.gz: 1b28d1592133b408e3c0de0515ad048ae3cb0904
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f2c936c1502ac82d7e4e81ee1d2f0376b36d696ab333ffc393c51912169e40f2e3de5cd8e7bd79883c80a7aa9ccc2c749daf4631610605e2e26e8df093cb3ca
|
7
|
+
data.tar.gz: ba2caa28bc80c87377f93b1998da255799dc6c51b970583c3caf31a44d39a64713fe01e3da33a099cfdba889d95b8757b0e5edcd67e8012f10eba1d3ec590533
|
data/CHANGELOG
CHANGED
data/lib/reek/version.rb
CHANGED
@@ -187,13 +187,13 @@ describe NestedIterators do
|
|
187
187
|
|
188
188
|
context 'when a smell is reported' do
|
189
189
|
before :each do
|
190
|
-
src =
|
191
|
-
def fred()
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
end
|
196
|
-
EOS
|
190
|
+
src = <<-EOS
|
191
|
+
def fred()
|
192
|
+
nothing.each do |item|
|
193
|
+
again.each {|thing| item }
|
194
|
+
end
|
195
|
+
end
|
196
|
+
EOS
|
197
197
|
ctx = CodeContext.new(nil, src.to_reek_source.syntax_tree)
|
198
198
|
@warning = @detector.examine_context(ctx)[0]
|
199
199
|
end
|
@@ -205,4 +205,21 @@ EOS
|
|
205
205
|
expect(@warning.lines).to eq([3])
|
206
206
|
end
|
207
207
|
end
|
208
|
+
|
209
|
+
context 'super recieves a block' do
|
210
|
+
before :each do
|
211
|
+
src = <<-EOS
|
212
|
+
def super_call_with_block
|
213
|
+
super do |k|
|
214
|
+
nothing.each { |thing| item }
|
215
|
+
end
|
216
|
+
end
|
217
|
+
EOS
|
218
|
+
|
219
|
+
ctx = CodeContext.new(nil, src.to_reek_source.syntax_tree)
|
220
|
+
@warning = @detector.examine_context(ctx)[0]
|
221
|
+
end
|
222
|
+
|
223
|
+
it_should_behave_like 'common fields set correctly'
|
224
|
+
end
|
208
225
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reek
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Rutherford
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-02-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: parser
|