Skip to content

Commit

Permalink
Upgrade devtools to 0.1.12 and fix reek smells
Browse files Browse the repository at this point in the history
  • Loading branch information
backus committed Sep 25, 2016
1 parent 6a7be22 commit 8f96b7e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
9 changes: 7 additions & 2 deletions lib/mutant/env/bootstrap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,22 @@ def env
Env.new(
actor_env: Actor::Env.new(Thread),
config: config,
integration: @integration,
integration: integration,
matchable_scopes: matchable_scopes,
mutations: subjects.flat_map(&:mutations),
parser: parser,
selector: Selector::Expression.new(@integration),
selector: Selector::Expression.new(integration),
subjects: subjects
)
end

private

# Configured mutant integration
#
# @return [Mutant::Integration]
attr_reader :integration

# Scope name from scoping object
#
# @param [Class, Module] scope
Expand Down
2 changes: 2 additions & 0 deletions lib/mutant/reporter/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ class CLI < self
# @param [IO] output
#
# @return [Reporter::CLI]
#
# :reek:ManualDispatch
def self.build(output)
tput = Tput.detect
tty = output.respond_to?(:tty?) && output.tty?
Expand Down
7 changes: 6 additions & 1 deletion lib/mutant/zombifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ def self.call(*args)

private

# Original require method
#
# @return [Method]
attr_reader :original

# Run zombifier
#
# @return [undefined]
Expand All @@ -61,7 +66,7 @@ def include?(logical_name)
# true if successful and false if feature already loaded
def require(logical_name)
logical_name = logical_name.to_s
loaded = @original.call(logical_name)
loaded = original.call(logical_name)
return loaded unless include?(logical_name)
@zombified << logical_name
zombify(find(logical_name))
Expand Down
2 changes: 1 addition & 1 deletion mutant.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency('concord', '~> 0.1.5')
gem.add_runtime_dependency('regexp_parser', '~> 0.3.6')

gem.add_development_dependency('devtools', '= 0.1.10')
gem.add_development_dependency('devtools', '~> 0.1.12')
gem.add_development_dependency('bundler', '~> 1.10')
gem.add_development_dependency('ffi', '~> 1.9.6')
end

0 comments on commit 8f96b7e

Please sign in to comment.