From dd101259f05ba6ec703f14cf21887a1aa8c66065 Mon Sep 17 00:00:00 2001 From: muratayusuke Date: Wed, 19 Jun 2013 15:41:53 +0000 Subject: [PATCH] don't run rubocode on ruby 1.8.7 --- Rakefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index a98e260..52d2dfd 100644 --- a/Rakefile +++ b/Rakefile @@ -42,7 +42,9 @@ RSpec::Core::RakeTask.new(:rcov) do |spec| end task :rubocop do - system('rubocop') + if RUBY_VERSION >= '1.9.2' + raise unless system('rubocop') + end end task :test do