diff options
author | Eric Wong <e@yhbt.net> | 2020-02-22 00:52:46 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-02-22 00:52:46 +0000 |
commit | 49ed15352154348e649f3093fc6845e4e72eedba (patch) | |
tree | ba09beb3160b2c5028c0222e3bc6993d72ecad63 | |
parent | 75eb508d64df7448feb123d7b6897815f12b9cd4 (diff) | |
download | local-openid-49ed15352154348e649f3093fc6845e4e72eedba.tar.gz |
gemspec: remove olddoc dependency
It should be possible to build gems w/o olddoc (but updating the website still requires it).
-rw-r--r-- | local-openid.gemspec | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/local-openid.gemspec b/local-openid.gemspec index 5f9ce88..9c483ed 100644 --- a/local-openid.gemspec +++ b/local-openid.gemspec @@ -1,23 +1,19 @@ -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{local-openid} - s.version = ENV["VERSION"].dup - + s.version = (ENV['VERSION'] || '0.4.1').dup s.authors = ["Eric Wong"] - s.description = readme_description + s.description = File.read('README').split("\n\n")[1] s.email = %q{e@80x24.org} s.executables = %w(local-openid) - - 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.rubyforge_project = %q{qrp} + s.homepage = 'https://yhbt.net/local-openid' + s.summary = 'Single User, Ephemeral OpenID Provider' s.add_dependency(%q<rack>, ["~> 1.3"]) s.add_dependency(%q<sinatra>, ["~> 1.0"]) s.add_dependency(%q<ruby-openid>, ["~> 2.1.7"]) |