Sha256: e904be9087dbe6bf48816d76162f1db2860f17d917a6829329b3a0bc2c116239

Contents?: true

Size: 1.09 KB

Versions: 2

Compression:

Stored size: 1.09 KB

Contents

unless ver = File.read("README.md").scan(/^\s*[\*\-]\s*version:{1,2}\s*(.+)/i).flatten[-1]
  raise "バージョン情報が README.md に見つかりません"
end

verfile = "lib/extlz4/version.rb"
LIB << verfile

file verfile => "README.md" do |*args|
  File.binwrite args[0].name, <<-VERSION_FILE
module LZ4
  VERSION = "#{ver}"
end
  VERSION_FILE
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
unofficial ruby bindings for LZ4 <https://github.com/lz4/lz4>.
EOS
  s.homepage = "https://github.com/dearblue/ruby-extlz4"
  s.license = "BSD-2-Clause"
  s.author = "dearblue"
  s.email = "dearblue@users.noreply.github.com"

  s.add_development_dependency "rake", "~> 1.12", ">= 1.12.3"
  s.add_development_dependency "test-unit", "~> 3.2", ">= 3.2.7"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
extlz4-0.3.1 gemstub.rb
extlz4-0.3 gemstub.rb