Upgrade devtools to 0.1.12 and fix reek smells
This commit is contained in:
parent
6a7be22493
commit
8f96b7ec69
4 changed files with 16 additions and 4 deletions
9
lib/mutant/env/bootstrap.rb
vendored
9
lib/mutant/env/bootstrap.rb
vendored
|
@ -56,17 +56,22 @@ module Mutant
|
|||
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
|
||||
|
|
|
@ -9,6 +9,8 @@ module Mutant
|
|||
# @param [IO] output
|
||||
#
|
||||
# @return [Reporter::CLI]
|
||||
#
|
||||
# :reek:ManualDispatch
|
||||
def self.build(output)
|
||||
tput = Tput.detect
|
||||
tty = output.respond_to?(:tty?) && output.tty?
|
||||
|
|
|
@ -38,6 +38,11 @@ module Mutant
|
|||
|
||||
private
|
||||
|
||||
# Original require method
|
||||
#
|
||||
# @return [Method]
|
||||
attr_reader :original
|
||||
|
||||
# Run zombifier
|
||||
#
|
||||
# @return [undefined]
|
||||
|
@ -61,7 +66,7 @@ module Mutant
|
|||
# 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))
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue