* [PATCH] gemspec: support rdoc 5.x
@ 2016-12-02 21:14 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2016-12-02 21:14 UTC (permalink / raw)
To: olddoc-public
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-12-02 21:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-02 21:14 [PATCH] gemspec: support rdoc 5.x Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/olddoc.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).