kcar RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Eric Wong <e@80x24.org>
To: kcar-public@bogomips.org
Subject: [PATCH] gemspec: remove olddoc dev dependency
Date: Sat,  8 Apr 2017 00:54:09 +0000	[thread overview]
Message-ID: <20170408005409.6798-1-e@80x24.org> (raw)

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


                 reply	other threads:[~2017-04-08  0:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/kcar/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170408005409.6798-1-e@80x24.org \
    --to=e@80x24.org \
    --cc=kcar-public@bogomips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).