From: Eric Wong <e@80x24.org> To: raindrops-public@bogomips.org Subject: [PATCH] build: avoid olddoc for building the RubyGem Date: Thu, 23 Mar 2017 02:19:17 +0000 [thread overview] Message-ID: <20170323021917.22484-1-e@80x24.org> (raw) This should make it easier for distros to pick this 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. --- raindrops.gemspec | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/raindrops.gemspec b/raindrops.gemspec index 7be8050..0a4e414 100644 --- a/raindrops.gemspec +++ b/raindrops.gemspec @@ -1,30 +1,26 @@ # -*- encoding: binary -*- -ENV["VERSION"] or abort "VERSION= must be specified" -manifest = File.readlines('.manifest').map! { |x| x.chomp! } +manifest = File.exist?('.manifest') ? + IO.readlines('.manifest').map!(&:chomp!) : `git ls-files`.split("\n") test_files = manifest.grep(%r{\Atest/test_.*\.rb\z}) -require 'olddoc' -extend Olddoc::Gemspec -name, summary, title = readme_metadata Gem::Specification.new do |s| s.name = %q{raindrops} - s.version = ENV["VERSION"].dup - + s.version = (ENV["VERSION"] ||= '0.17.0').dup s.authors = ["raindrops hackers"] - s.description = readme_description + s.description = File.read('README').split("\n\n")[1] s.email = %q{raindrops-public@bogomips.org} s.extensions = %w(ext/raindrops/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/raindrops/' + s.summary = 'real-time stats for preforking Rack servers' s.required_ruby_version = '>= 1.9.3' s.test_files = test_files s.add_development_dependency('aggregate', '~> 0.2') s.add_development_dependency('test-unit', '~> 3.0') s.add_development_dependency('posix_mq', '~> 2.0') s.add_development_dependency('rack', [ '>= 1.2', '< 3.0' ]) - s.add_development_dependency('olddoc', '~> 1.0') - s.licenses = %w(LGPL-2.1+) end -- EW
reply other threads:[~2017-03-23 2: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/raindrops/ * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20170323021917.22484-1-e@80x24.org \ --to=e@80x24.org \ --cc=raindrops-public@bogomips.org \ --subject='Re: [PATCH] build: avoid olddoc for building the RubyGem' \ /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
Code repositories for project(s) associated with this inbox: ../../raindrops.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).