From e7b51468ecb138c59afba66f190c5fcf1b5282fc Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 2 Dec 2016 01:18:39 +0000 Subject: gemspec: support rdoc 5.x 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. --- lib/rdoc/discover.rb | 2 +- olddoc.gemspec | 5 ++++- 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 -- cgit v1.2.3-24-ge0c7