grntest 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/grntest.gemspec ADDED
@@ -0,0 +1,53 @@
1
+ # -*- mode: ruby; coding: utf-8 -*-
2
+ #
3
+ # Copyright (C) 2012 Kouhei Sutou <kou@clear-code.com>
4
+ #
5
+ # This program is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # This program 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
13
+ # GNU General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU General Public License
16
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
17
+
18
+ clean_white_space = lambda do |entry|
19
+ entry.gsub(/(\A\n+|\n+\z)/, '') + "\n"
20
+ end
21
+
22
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "lib"))
23
+ require "grntest/version"
24
+
25
+ Gem::Specification.new do |spec|
26
+ spec.name = "grntest"
27
+ spec.version = Grntest::VERSION
28
+ spec.homepage = "https://github.com/groonga/grntest"
29
+ spec.authors = ["Kouhei Sutou", "Haruka Yoshihara"]
30
+ spec.email = ["kou@clear-code.com", "yoshihara@clear-code.com"]
31
+ readme = File.read("README.md")
32
+ readme.force_encoding("UTF-8") if readme.respond_to?(:force_encoding)
33
+ entries = readme.split(/^\#\#\s(.*)$/)
34
+ description = clean_white_space.call(entries[entries.index("Description") + 1])
35
+ spec.summary, spec.description, = description.split(/\n\n+/, 3)
36
+ spec.license = "GPLv3 or later"
37
+ spec.files = ["README.md", "Rakefile", "Gemfile", "#{spec.name}.gemspec"]
38
+ spec.files += Dir.glob("lib/**/*.rb")
39
+ spec.files += Dir.glob("doc/text/*")
40
+ spec.test_files += Dir.glob("test/**/*")
41
+ Dir.chdir("bin") do
42
+ spec.executables = Dir.glob("*")
43
+ end
44
+
45
+ spec.add_dependency("json")
46
+ spec.add_dependency("msgpack")
47
+
48
+ spec.add_development_dependency("bundler")
49
+ spec.add_development_dependency("rake")
50
+ spec.add_development_dependency("test-unit")
51
+ spec.add_development_dependency("packnga")
52
+ spec.add_development_dependency("redcarpet")
53
+ end