regurgitator RubyGem user+dev discussion/patches/pulls/bug/help
 help / color / mirror / code / Atom feed
From: Eric Wong <e@80x24.org>
To: <regurgitator-public@bogomips.org>
Subject: [PATCH] gemspec: remove olddoc dependency
Date: Tue, 13 Jun 2017 00:19:00 +0000	[thread overview]
Message-ID: <20170613001900.23618-1-e@80x24.org> (raw)

This should reduce installation time and size for potential
developers.
---
 regurgitator.gemspec | 27 +++++++++++----------------
 1 file changed, 11 insertions(+), 16 deletions(-)

diff --git a/regurgitator.gemspec b/regurgitator.gemspec
index 9d21979..cf3d092 100644
--- a/regurgitator.gemspec
+++ b/regurgitator.gemspec
@@ -1,29 +1,24 @@
 # -*- encoding: binary -*-
-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{regurgitator}
-  s.version = ENV["VERSION"].dup
-
-  s.authors = ["Regurgitators"]
-  s.description = readme_description
-  s.email = %q{e@80x24.org}
-  s.extra_rdoc_files = extra_rdoc_files(manifest)
+  s.version = (ENV['VERSION'].dup || '0.8.0')
+  s.authors = ['regurgitator hackers']
+  s.description = File.read('README').split("\n\n")[1]
+  s.email = %q{regurgitator-public@bogomips.org}
+  s.extra_rdoc_files = IO.readlines('.document').map!(&:chomp!).keep_if do |f|
+    File.exist?(f)
+  end
   s.files = manifest
-  s.homepage = Olddoc.config['rdoc_url']
-  s.summary = summary
+  s.homepage = 'https://bogomips.org/regurgitator/'
+  s.summary = 'regurgitator - read-only Rack endpoints for MogileFS'
   s.test_files = Dir["test/test_*.rb"]
-
   s.add_dependency("rack", ['~> 2.0'])
   s.add_dependency("sequel", ["~> 4.0"])
   s.add_dependency("http_spew", ['~> 0.5'])
   s.add_dependency("rpatricia", ["~> 1.0"])
-  s.add_development_dependency('olddoc', "~> 1.0")
-
   s.required_ruby_version = '>= 2.1'
   s.licenses = %w(GPL-2.0+)
 end
-- 
EW


                 reply	other threads:[~2017-06-13  0:19 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/regurgitator/

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

  git send-email \
    --in-reply-to=20170613001900.23618-1-e@80x24.org \
    --to=e@80x24.org \
    --cc=regurgitator-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/regurgitator.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).