about summary refs log tree commit homepage
path: root/kcar.gemspec
diff options
context:
space:
mode:
Diffstat (limited to 'kcar.gemspec')
-rw-r--r--kcar.gemspec20
1 files 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