-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathextpp.gemspec
31 lines (27 loc) · 1.04 KB
/
extpp.gemspec
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
30
31
# -*- ruby -*-
clean_white_space = lambda do |entry|
entry.gsub(/(\A\n+|\n+\z)/, '') + "\n"
end
require_relative "lib/extpp/version"
Gem::Specification.new do |spec|
spec.name = "extpp"
spec.version = ExtPP::VERSION
spec.homepage = "https://github.com/red-data-tools/extpp"
spec.authors = ["Kouhei Sutou"]
spec.email = ["[email protected]"]
readme = File.read("README.md")
readme.force_encoding("UTF-8")
entries = readme.split(/^\#\#\s(.*)$/)
description = clean_white_space.call(entries[entries.index("Description") + 1])
spec.summary, spec.description, = description.split(/\n\n+/, 3)
spec.licenses = ["BSD-2-Clause"]
spec.files = ["README.md", "Rakefile"]
spec.files += ["LICENSE.txt"]
spec.files += Dir.glob("lib/**/*.rb")
spec.files += Dir.glob("include/**/*.hpp")
spec.files += Dir.glob("doc/text/**/*.*")
spec.files += Dir.glob("sample/hello/{Rakefile,extconf.rb,hello.cpp}")
spec.add_development_dependency("bundler")
spec.add_development_dependency("rake")
spec.add_development_dependency("test-unit")
end