unless ver = File.read("README.md").scan(/^\s*[\*\-]\s*version:{1,2}\s*(.+)/i).flatten[-1] raise "バージョン情報が README.md に見つかりません" end unmatch = %r(\bcontrib/lz4/(?:Makefile|appveyor\.yml|contrib|doc|examples|lib/Makefile|lib/dll|programs|tests|visual)(?:$|/)) DOC.reject! { |e| e =~ unmatch } contrib = FileList["contrib/**/*"] contrib.reject! { |e| e =~ unmatch } EXTRA.concat(contrib) GEMSTUB = Gem::Specification.new do |s| s.name = "extlz4" s.version = ver s.summary = "ruby bindings for LZ4" s.description = <. EOS s.homepage = "https://github.com/dearblue/ruby-extlz4" s.license = "BSD-2-Clause" s.author = "dearblue" s.email = "dearblue@users.osdn.me" s.add_development_dependency "rake", "~> 0" s.add_development_dependency "test-unit", "~> 3.3" end