Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add #{engine}_check.rb for coverage cleanup

  • Loading branch information...
commit c9e21cd9fe3e44d90af26a34d654889bd69d057c 1 parent b4338d5
@quix authored
View
2  lib/pure/pure_private/extractor.rb
@@ -30,7 +30,7 @@ def engine=(engine)
else
begin
name = "extractor_#{engine}"
- require "pure/pure_private/#{name}"
+ require "pure/pure_private/#{name}_check"
@engine = PurePrivate.const_get(to_camel_case(name))
rescue LoadError
raise PurePrivate::NotImplementedError,
View
5 lib/pure/pure_private/extractor_parameters_check.rb
@@ -0,0 +1,5 @@
+
+# rcov fun
+has_parameters = Method.instance_methods.include?(:parameters)
+require('pure/pure_private/extractor_parameters') if has_parameters
+raise LoadError unless has_parameters
View
2  lib/pure/pure_private/extractor_ripper_check.rb
@@ -0,0 +1,2 @@
+
+require('ripper') and require('pure/pure_private/extractor_ripper')
View
2  lib/pure/pure_private/extractor_ruby_parser_check.rb
@@ -0,0 +1,2 @@
+
+require('ruby_parser') and require('pure/pure_private/extractor_ruby_parser')
Please sign in to comment.
Something went wrong with that request. Please try again.