| 1 |
# -*- mode: ruby; coding: utf-8 -*- |
| 2 |
# |
| 3 |
# Copyright (C) 2017 Yasuhiro Horimoto <[email protected]> |
| 4 |
# |
| 5 |
# This library is free software; you can redistribute it and/or |
| 6 |
# modify it under the terms of the GNU Lesser General Public |
| 7 |
# License as published by the Free Software Foundation; either |
| 8 |
# version 2.1 of the License, or (at your option) any later version. |
| 9 |
# |
| 10 |
# This library is distributed in the hope that it will be useful, |
| 11 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
# Lesser General Public License for more details. |
| 14 |
# |
| 15 |
# You should have received a copy of the GNU Lesser General Public |
| 16 |
# License along with this library; if not, write to the Free Software |
| 17 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 |
|
| 19 |
lib = File.expand_path('../lib', __FILE__) |
| 20 |
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) |
| 21 |
require 'groonga-log/version' |
| 22 |
|
| 23 |
clean_white_space = lambda do |entry| |
| 24 |
entry.gsub(/(\A\n+|\n+\z)/, '') + "\n" |
| 25 |
end |
| 26 |
|
| 27 |
Gem::Specification.new do |spec| |
| 28 |
spec.name = "groonga-log" |
| 29 |
spec.version = GroongaLog::VERSION |
| 30 |
|
| 31 |
spec.authors = ["Horimoto Yasuhiro"] |
| 32 |
spec.email = ["[email protected]"] |
| 33 |
|
| 34 |
readme = File.read("README.md", :encoding => "UTF-8") |
| 35 |
entries = readme.split(/^\#\#\s(.*)$/) |
| 36 |
description = clean_white_space.call(entries[entries.index("Description") + 1]) |
| 37 |
spec.summary, spec.description, = description.split(/\n\n+/, 3) |
| 38 |
|
| 39 |
spec.files = `git ls-files -z`.split("\x0").reject do |f| |
| 40 |
f.match(%r{^(test|spec|features)/}) |
| 41 |
end |
| 42 |
|
| 43 |
spec.homepage = "https://github.com/groonga/groonga-log" |
| 44 |
spec.licenses = ["LGPLv2.1+"] |
| 45 |
spec.require_paths = ["lib"] |
| 46 |
|
| 47 |
spec.add_development_dependency "bundler", "~> 1.13" |
| 48 |
spec.add_development_dependency "rake", "~> 10.0" |
| 49 |
|
| 50 |
spec.add_development_dependency("test-unit") |
| 51 |
spec.add_development_dependency("test-unit-notify") |
| 52 |
end |