-
Notifications
You must be signed in to change notification settings - Fork 1
/
gemstub.rb
29 lines (22 loc) · 882 Bytes
/
gemstub.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
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.osdn.me"
s.add_development_dependency "rake", "~> 0"
s.add_development_dependency "test-unit", "~> 3.3"
end