about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-12-02 01:18:39 +0000
committerEric Wong <e@80x24.org>2016-12-02 21:13:44 +0000
commite7b51468ecb138c59afba66f190c5fcf1b5282fc (patch)
tree67265b6c7c005c7b23b2fe5ff5ec644993f88ddd
parentf978d2071407399c783a045c30dba7823ea45ec5 (diff)
downloadolddoc-e7b51468ecb138c59afba66f190c5fcf1b5282fc.tar.gz
rdoc 5.x does not introduce incompatible changes outside
of dropping Ruby 1.8 support.  We never actually supported
Ruby 1.8, either(*), so formalize that in the gemspec while
we're at it.
-rw-r--r--lib/rdoc/discover.rb2
-rw-r--r--olddoc.gemspec5
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/rdoc/discover.rb b/lib/rdoc/discover.rb
index 9450f42..30c5ae2 100644
--- a/lib/rdoc/discover.rb
+++ b/lib/rdoc/discover.rb
@@ -1,6 +1,6 @@
 # :stopdoc:
 begin
-  gem 'rdoc', '~> 4.1'
+  gem 'rdoc', [ '>= 4.2', '< 6.0' ]
   require_relative '../olddoc'
 rescue Gem::LoadError
 end unless defined?(Olddoc)
diff --git a/olddoc.gemspec b/olddoc.gemspec
index d059955..a09ffe0 100644
--- a/olddoc.gemspec
+++ b/olddoc.gemspec
@@ -15,8 +15,11 @@ Gem::Specification.new do |s|
   s.description = readme_description
   s.email = 'e@80x24.org'
   s.files = manifest
-  s.add_dependency('rdoc', '~> 4.2')
+
+  # works fine with RDoc 5.x
+  s.add_dependency('rdoc', ['>= 4.2', '< 6.0'])
   s.add_dependency('builder', '~> 3.2')
+  s.required_ruby_version = '>= 1.9.3'
   s.homepage = Olddoc.config['rdoc_url']
   s.licenses = 'GPL-3.0+'
 end