From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 5220E1FC96 for ; Fri, 2 Dec 2016 21:14:28 +0000 (UTC) From: Eric Wong To: Subject: [PATCH] gemspec: support rdoc 5.x Date: Fri, 2 Dec 2016 21:14:28 +0000 Message-Id: <20161202211428.18494-1-e@80x24.org> List-Id: 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 -- EW