Skip to content

Commit

Permalink
Release 1.1.3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinrutherford committed Jul 25, 2009
1 parent d29087d commit 4ce1012
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions History.txt
Expand Up @@ -25,6 +25,7 @@
* Now reports an error for corrupt config files
* Empty config files are ignored


== 1.1.3 2009-05-19

=== Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion lib/reek.rb
@@ -1,5 +1,5 @@
$:.unshift File.dirname(__FILE__)

module Reek # :doc:
VERSION = '1.1.3.11'
VERSION = '1.1.3.12'
end
6 changes: 5 additions & 1 deletion lib/reek/adapters/source.rb
Expand Up @@ -27,9 +27,13 @@ def syntax_tree
#
class SourceFile < Source

def self.lines(file)
IO.readlines(file.path)
end

def initialize(file)
@file = file
super(@file.lines.to_a.join, @file.path)
super(SourceFile.lines(@file).join, @file.path)
end

def configure(sniffer)
Expand Down
4 changes: 2 additions & 2 deletions reek.gemspec
Expand Up @@ -2,11 +2,11 @@

Gem::Specification.new do |s|
s.name = %q{reek}
s.version = "1.1.3.11"
s.version = "1.1.3.12"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Kevin Rutherford"]
s.date = %q{2009-07-23}
s.date = %q{2009-07-25}
s.default_executable = %q{reek}
s.description = %q{Code smell detector for Ruby}
s.email = ["kevin@rutherford-software.com"]
Expand Down
1 change: 1 addition & 0 deletions spec/reek/smells/long_parameter_list_spec.rb
Expand Up @@ -61,6 +61,7 @@ def abc(argx,yep,zero,argm) f(3);false end
end

it 'should only report long param list' do
pending('test requires ParseTree') unless ObjectSource.can_parse_objects?
InnerTest.should reek_only_of(:LongParameterList, /abc/)
end
end
Expand Down

0 comments on commit 4ce1012

Please sign in to comment.