Skip to content

Commit 45ba8d9

Browse files
committed
Local changes to cross-compile the 0.4.1 gem
1 parent bba4018 commit 45ba8d9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Rakefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ load 'tasks/generate.rake'
99
load 'tasks/benchmarks.rake'
1010

1111
# TODO: remove when we end support for < 1.9.3
12-
if RUBY_VERSION =~ /1.8/
13-
task :default => :spec
14-
else
12+
begin
1513
require 'rubocop/rake_task'
1614
RuboCop::RakeTask.new
17-
1815
task :default => [:spec, :rubocop]
16+
17+
rescue LoadError
18+
warn 'RuboCop is not available'
19+
task :default => :spec
1920
end

0 commit comments

Comments
 (0)