Permalink
Browse files

RDoc no longer supports 1.8.6

  • Loading branch information...
chrisk committed May 14, 2013
1 parent e87a2f4 commit 97232cad8829e7eb3009f7ad57e20e58d3d7ceea
Showing with 17 additions and 12 deletions.
  1. +12 −9 Rakefile
  2. +5 −3 fakeweb.gemspec
View
@@ -65,13 +65,16 @@ task :clean do
end
end
-
-require 'sdoc'
-require 'rdoc/task'
-Rake::RDocTask.new do |rdoc|
- rdoc.title = "FakeWeb 1.3.0 API Documentation"
- rdoc.main = "README.rdoc"
- rdoc.rdoc_dir = "doc"
- rdoc.options += %w(--format sdoc --show-hash --charset utf-8 --github)
- rdoc.rdoc_files.include("README.rdoc", "CHANGELOG", "LICENSE.txt", "lib/*.rb")
+if RUBY_VERSION >= "1.8.7"
+ require 'sdoc'
+ require 'rdoc/task'
+ Rake::RDocTask.new do |rdoc|
+ rdoc.title = "FakeWeb 1.3.0 API Documentation"
+ rdoc.main = "README.rdoc"
+ rdoc.rdoc_dir = "doc"
+ rdoc.options += %w(--format sdoc --show-hash --charset utf-8 --github)
+ rdoc.rdoc_files.include("README.rdoc", "CHANGELOG", "LICENSE.txt", "lib/*.rb")
+ end
+else
+ warn "Warning: RDoc requires ruby >= 1.8.7; doc tasks disabled"
end
View
@@ -40,17 +40,18 @@ Gem::Specification.new do |s|
# 1.8.7+; both times, 1.8.6-compatibility was restored for the
# next release.
s.add_development_dependency "rake", [">= 0.8.7", "!= 0.9.1", "!= 0.9.6", "!= 10.0.3"]
+
else
# Otherwise, prefer up-to-date dev tools
s.add_development_dependency "mocha", ["~> 0.13.3"] + broken_mocha_spec
s.add_development_dependency "rake", ["~> 10.0"]
- # ZenTest (for autotest) wants at least RubyGems 1.8, which
- # doesn't support 1.8.6.
+ # ZenTest (autotest) wants at least RubyGems 1.8, which is 1.8.7+
+ # only, as is RDoc, the main dependency of sdoc.
s.add_development_dependency "ZenTest", ["~> 4.9"]
+ s.add_development_dependency "sdoc"
end
- s.add_development_dependency "sdoc"
if RUBY_VERSION >= "1.9.0"
s.add_development_dependency "simplecov", ["~> 0.7"]
@@ -62,6 +63,7 @@ Gem::Specification.new do |s|
s.add_development_dependency "json", ["~> 1.7"]
end
+
if RUBY_PLATFORM == "java"
s.add_development_dependency "jruby-openssl", ["~> 0.8"]
end

0 comments on commit 97232ca

Please sign in to comment.