* [PATCH] gemspec: remove olddoc dev dependency
@ 2017-04-08 0:54 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2017-04-08 0:54 UTC (permalink / raw)
To: kcar-public
We'll no longer depend on olddoc for development,
relieving potential developers of one dependency.
---
kcar.gemspec | 20 +++++++++-----------
1 file changed, 9 insertions(+), 11 deletions(-)
diff --git a/kcar.gemspec b/kcar.gemspec
index ebabf06..124222e 100644
--- a/kcar.gemspec
+++ b/kcar.gemspec
@@ -1,22 +1,20 @@
-ENV["VERSION"] or abort "VERSION= must be specified"
-manifest = File.readlines('.manifest').map! { |x| x.chomp! }
-require 'olddoc'
-extend Olddoc::Gemspec
-name, summary, title = readme_metadata
+manifest = File.exist?('.manifest') ?
+ IO.readlines('.manifest').map!(&:chomp!) : `git ls-files`.split("\n")
Gem::Specification.new do |s|
s.name = %q{kcar}
- s.version = ENV["VERSION"].dup
- s.homepage = Olddoc.config['rdoc_url']
+ s.version = (ENV['VERSION'] || '0.6.0').dup
+ s.homepage = 'https://bogomips.org/kcar/'
s.authors = ["kcar hackers"]
- s.description = readme_description
+ s.description = File.read('README').split("\n\n")[1]
s.email = %q{kcar-public@bogomips.org}
- s.extra_rdoc_files = extra_rdoc_files(manifest)
+ s.extra_rdoc_files = IO.readlines('.document').map!(&:chomp!).keep_if do |f|
+ File.exist?(f)
+ end
s.files = manifest
- s.summary = summary
+ s.summary = 'bytestream to Rack response converter'
s.test_files = Dir['test/test_*.rb']
s.extensions = %w(ext/kcar/extconf.rb)
- s.add_development_dependency('olddoc', '~> 1.0')
s.add_development_dependency('test-unit', '~> 3.0')
# Note: To avoid ambiguity, we intentionally avoid the SPDX-compatible
--
EW
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-04-08 0:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-08 0:54 [PATCH] gemspec: remove olddoc dev dependency Eric Wong
Code repositories for project(s) associated with this public inbox
https://yhbt.net/kcar.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).