Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ source "https://rubygems.org"

group :development do
gem "rspec_junit_formatter"
gem "rdoc"

platforms :jruby do
gem "rbs", ">= 4.1.0.pre.2" # Use the java-platform gem so JRuby does not build the C extension
platforms :ruby do
gem "rdoc"
end
end

Expand Down
19 changes: 12 additions & 7 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,17 @@ end

task default: :spec

require "rdoc/task"
Rake::RDocTask.new do |rdoc|
version = File.exist?("VERSION") ? File.read("VERSION") : ""
begin
require "rdoc/task"
rescue LoadError
# The Gemfile bundles rdoc only on platforms :ruby; skip the RDoc task without it
else
Rake::RDocTask.new do |rdoc|
version = File.exist?("VERSION") ? File.read("VERSION") : ""

rdoc.rdoc_dir = "doc"
rdoc.title = "ruby-plsql #{version}"
rdoc.rdoc_files.include("README*")
rdoc.rdoc_files.include("lib/**/*.rb")
rdoc.rdoc_dir = "doc"
rdoc.title = "ruby-plsql #{version}"
rdoc.rdoc_files.include("README*")
rdoc.rdoc_files.include("lib/**/*.rb")
end
end
Loading