diff --git a/lib/mutant.rb b/lib/mutant.rb index e104a1bc..fef56af5 100644 --- a/lib/mutant.rb +++ b/lib/mutant.rb @@ -12,7 +12,6 @@ require 'digest/sha1' require 'inflecto' require 'parser' require 'parser/current' -require 'parser-node-list' require 'unparser' require 'ice_nine' require 'diff/lcs' diff --git a/lib/parser-node-list.rb b/lib/parser-node-list.rb deleted file mode 100644 index 8bbf2701..00000000 --- a/lib/parser-node-list.rb +++ /dev/null @@ -1,26 +0,0 @@ -# encoding: UTF-8 - -# Monkeypatch on parser with a list of allowed nodes. -# Will be pushed upstream once turning out to be correct. -module Parser - module Meta - NODE_TYPES = - %w( - true false nil int float str dstr str - sym dsym xstr regopt regexp array splat - array pair kwsplat hash irange erange self - lvar ivar cvar gvar const defined? lvasgn - ivasgn cvasgn gvasgn casgn mlhs masgn op_asgn - op_asgn and_asgn ensure rescue arg_expr - or_asgn and_asgn or_asgn back_ref nth_ref - match_with_lvasgn match_current_line - module class sclass def defs undef alias args - cbase arg optarg restarg blockarg block_pass args def kwarg kwoptarg - kwrestarg send super zsuper yield block send - and not or if when case while until while_post - until_post for break next redo return resbody - kwbegin begin retry preexe postexe iflipflop eflipflop - shadowarg - ).map(&:to_sym).to_set.freeze - end # Meta -end # Parser diff --git a/mutant.gemspec b/mutant.gemspec index 69ed0894..de8c8c6f 100644 --- a/mutant.gemspec +++ b/mutant.gemspec @@ -23,7 +23,7 @@ Gem::Specification.new do |gem| gem.required_ruby_version = '>= 1.9.3' - gem.add_runtime_dependency('parser', '~> 2.1.4') + gem.add_runtime_dependency('parser', '~> 2.1.6') gem.add_runtime_dependency('morpher', '~> 0.0.1') gem.add_runtime_dependency('procto', '~> 0.0.2') gem.add_runtime_dependency('abstract_type', '~> 0.0.7') diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 678419d5..19813314 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -17,7 +17,7 @@ if ENV['COVERAGE'] == 'true' add_filter 'vendor' add_filter 'test_app' - minimum_coverage 89.79 # TODO: raise this to 100, then mutation test + minimum_coverage 89.77 # TODO: raise this to 100, then mutation test end end