Skip to content

Commit 5fd7539

Browse files
author
=
committed
update Rakefile for jruby
1 parent 697b1c3 commit 5fd7539

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Rakefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class RakeCrc32
7070

7171
end
7272

73-
require 'yard'
73+
require 'yard' if RUBY_ENGINE == 'ruby'
7474

7575
# Import the rake tasks
7676
import 'tasks/manifest.rake'
@@ -254,8 +254,10 @@ task :stress do
254254
end
255255
end
256256

257-
YARD::Rake::YardocTask.new do |t|
258-
t.options = ['--protected'] # See all options by typing 'yardoc --help'
257+
if RUBY_ENGINE == 'ruby'
258+
YARD::Rake::YardocTask.new do |t|
259+
t.options = ['--protected'] # See all options by typing 'yardoc --help'
260+
end
259261
end
260262

261263
task :release => [:require_version, :git_checkout_master, :build, :spec, :manifest, :version, :install_crc, :gem]

0 commit comments

Comments
 (0)