Fix indeterminism from include_context condition
It looks like this guard clause was causing issues that led to the build sometimes failing with super: no superclass method `expression' this change fixes this issue. This change also locks devtools to 0.1.10 and parser to 2.3.1.2. New reek smells have been released which need to be addressed in a followup. The newer parser version also requires an update to the warnings file.
This commit is contained in:
parent
fe414f99a0
commit
6a7be22493
2 changed files with 5 additions and 5 deletions
|
@ -21,7 +21,7 @@ Gem::Specification.new do |gem|
|
|||
|
||||
gem.required_ruby_version = '>= 2.1'
|
||||
|
||||
gem.add_runtime_dependency('parser', '~> 2.3.0', '>= 2.3.0.2')
|
||||
gem.add_runtime_dependency('parser', '= 2.3.1.2')
|
||||
gem.add_runtime_dependency('ast', '~> 2.2')
|
||||
gem.add_runtime_dependency('diff-lcs', '~> 1.2')
|
||||
gem.add_runtime_dependency('parallel', '~> 1.3')
|
||||
|
@ -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.4')
|
||||
gem.add_development_dependency('devtools', '= 0.1.10')
|
||||
gem.add_development_dependency('bundler', '~> 1.10')
|
||||
gem.add_development_dependency('ffi', '~> 1.9.6')
|
||||
end
|
||||
|
|
|
@ -70,9 +70,9 @@ module RegexpSpec
|
|||
|
||||
include_context 'regexp transformation'
|
||||
|
||||
return if regexp.encoding.name.eql?('ASCII-8BIT')
|
||||
|
||||
include_context 'regexp round trip'
|
||||
unless regexp.encoding.name.eql?('ASCII-8BIT')
|
||||
include_context 'regexp round trip'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue