From 6cf713eaa3855892c027ffa0113c8be3876195b0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 15 Feb 2010 00:35:24 -0800 Subject: [PATCH] add gemspec --- io_splice.gemspec | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 io_splice.gemspec diff --git a/io_splice.gemspec b/io_splice.gemspec new file mode 100644 index 0000000..5d1d1d0 --- /dev/null +++ b/io_splice.gemspec @@ -0,0 +1,38 @@ +# -*- encoding: binary -*- + +ENV["VERSION"] or abort "VERSION= must be specified" +manifest = File.readlines('.manifest').map! { |x| x.chomp! } +test_files = manifest.grep(%r{\Atest/test_.*\.rb\z}) + +Gem::Specification.new do |s| + s.name = %q{io_splice} + s.version = ENV["VERSION"] + + s.authors = ["io_splice hackers"] + s.date = Time.now.utc.strftime('%Y-%m-%d') + s.description = File.read("README").split(/\n\n/)[1] + s.email = %q{ruby.io.splice@librelist.com} + s.extensions = %w(ext/io_splice/extconf.rb) + + s.extra_rdoc_files = File.readlines('.document').map! do |x| + x.chomp! + if File.directory?(x) + manifest.grep(%r{\A#{x}/}) + elsif File.file?(x) + x + else + nil + end + end.flatten.compact + + s.files = manifest + s.homepage = %q{http://bogomips.org/ruby_io_splice/} + s.summary = %q{zero-copy pipe I/O for Linux and Ruby} + s.rdoc_options = [ "-Na", "-t", "io_splice - #{s.summary}" ] + s.require_paths = %w(lib) + s.rubyforge_project = %q{qrp} + + s.test_files = test_files + + # s.licenses = %w(LGPLv3) # accessor not compatible with older RubyGems +end -- 2.11.4.GIT