regurgitator RubyGem user+dev discussion/patches/pulls/bug/help
 help / color / mirror / code / Atom feed
* [PATCH] gemspec: remove olddoc dependency
@ 2017-06-13  0:19 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2017-06-13  0:19 UTC (permalink / raw)
  To: regurgitator-public

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-13  0:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-13  0:19 [PATCH] gemspec: remove olddoc dependency Eric Wong

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).