about summary refs log tree commit homepage
path: root/posix_mq.gemspec
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-03-20 19:35:01 +0000
committerEric Wong <e@80x24.org>2017-03-20 19:35:31 +0000
commit6c1222c373ef0152fb807f212595476e2377f74e (patch)
tree56413a848133dc922c6174123b242771a0517059 /posix_mq.gemspec
parentf70f5101ac040d7da3ec67c3a7c1664bb9d5193c (diff)
downloadruby_posix_mq-6c1222c373ef0152fb807f212595476e2377f74e.tar.gz
This should make it easier for distros to pick this
up without picking up olddoc, too.

We will still use olddoc for generating the website since it
reduces bandwidth costs, and for generating NEWS for our own
builds.
Diffstat (limited to 'posix_mq.gemspec')
-rw-r--r--posix_mq.gemspec22
1 files changed, 12 insertions, 10 deletions
diff --git a/posix_mq.gemspec b/posix_mq.gemspec
index 58a0fb6..116f0ed 100644
--- a/posix_mq.gemspec
+++ b/posix_mq.gemspec
@@ -1,23 +1,25 @@
 # -*- 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
+ENV["VERSION"] ||= '2.3.0'
+if File.exist?('.manifest')
+  manifest = IO.readlines('.manifest').map!(&:chomp!)
+else
+  manifest = `git ls-files`.split("\n")
+end
 
 Gem::Specification.new do |s|
   s.name = %q{posix_mq}
   s.version = ENV["VERSION"].dup
   s.authors = ["Ruby POSIX MQ hackers"]
-  s.description = readme_description
+  s.description = File.read('README').split("\n\n")[1]
   s.email = %q{ruby-posix-mq@bogomips.org}
   s.executables = %w(posix-mq-rb)
   s.extensions = %w(ext/posix_mq/extconf.rb)
-  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.homepage = Olddoc.config['rdoc_url']
-  s.summary = summary
+  s.homepage = 'https://bogomips.org/ruby_posix_mq/'
+  s.summary = 'POSIX message queues for Ruby'
   s.test_files = manifest.grep(%r{\Atest/test_.*\.rb\z})
-  s.add_development_dependency(%q<olddoc>, "~> 1.0")
   s.licenses = %w(GPL-2.0 LGPL-3.0+)
 end