We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bf7c34 commit 42075f8Copy full SHA for 42075f8
Rakefile
@@ -8,13 +8,13 @@ load 'tasks/compile.rake'
8
load 'tasks/generate.rake'
9
load 'tasks/benchmarks.rake'
10
11
-# TODO: remove when we end support for < 1.9.3
12
-begin
+# TODO: remove engine check when rubinius stops crashing on RuboCop
+# TODO: remove defined?(Encoding) when we end support for < 1.9.3
13
+if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ruby' && defined?(Encoding)
14
require 'rubocop/rake_task'
15
RuboCop::RakeTask.new
16
task :default => [:spec, :rubocop]
-
17
-rescue LoadError
+else
18
warn 'RuboCop is not available'
19
task :default => :spec
20
end
0 commit comments