[Groonga-commit] ranguba/chupa-text at d8b3982 [master] Support RubyGems

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Dec 31 22:17:28 JST 2013


Kouhei Sutou	2013-12-31 22:17:28 +0900 (Tue, 31 Dec 2013)

  New Revision: d8b39821f96afe9c8ed1abe7f9debdd5c8a3e8f3
  https://github.com/ranguba/chupa-text/commit/d8b39821f96afe9c8ed1abe7f9debdd5c8a3e8f3

  Message:
    Support RubyGems

  Added files:
    .yardopts
    Gemfile
    Rakefile
    chupa-text.gemspec

  Added: .yardopts (+5 -0) 100644
===================================================================
--- /dev/null
+++ .yardopts    2013-12-31 22:17:28 +0900 (cc34422)
@@ -0,0 +1,5 @@
+--output-dir doc/reference/en
+--markup markdown
+--markup-provider redcarpet
+-
+doc/text/*

  Added: Gemfile (+21 -0) 100644
===================================================================
--- /dev/null
+++ Gemfile    2013-12-31 22:17:28 +0900 (55a892c)
@@ -0,0 +1,21 @@
+# -*- mode: ruby; coding: utf-8 -*-
+#
+# Copyright (C) 2013  Kouhei Sutou <kou �� clear-code.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+source "http://rubygems.org/"
+
+gemspec

  Added: Rakefile (+46 -0) 100644
===================================================================
--- /dev/null
+++ Rakefile    2013-12-31 22:17:28 +0900 (cf782d5)
@@ -0,0 +1,46 @@
+# -*- mode: ruby; coding: utf-8 -*-
+#
+# Copyright (C) 2013  Kouhei Sutou <kou �� clear-code.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+task :default => :test
+
+require "pathname"
+
+require "rubygems"
+require "bundler/gem_helper"
+require "packnga"
+
+base_dir = Pathname(__FILE_).dirname
+
+helper = Bundler::GemHelper.new(base_dir.to_s)
+def helper.version_tag
+  version
+end
+
+helper.install
+spec = helper.gemspec
+
+Packnga::DocumentTask.new(spec) do
+end
+
+Packnga::ReleaseTask.new(spec) do
+end
+
+desc "Run tests"
+task :test do
+  ruby("test/run-test.rb")
+end

  Added: chupa-text.gemspec (+56 -0) 100644
===================================================================
--- /dev/null
+++ chupa-text.gemspec    2013-12-31 22:17:28 +0900 (f9ddd6b)
@@ -0,0 +1,56 @@
+# -*- mode: ruby; coding: utf-8 -*-
+#
+# Copyright (C) 2013  Kouhei Sutou <kou �� clear-code.com>
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+
+require "pathname"
+
+base_dir = Pathname(__FILE__).dirname
+lib_dir = base_dir + "lib"
+$LOAD_PATH.unshift(lib_dir.to_s)
+
+require "chupa-text/version"
+
+clean_white_space = lambda do |entry|
+  entry.gsub(/(\A\n+|\n+\z)/, '') + "\n"
+end
+
+Gem::Specification.new do |spec|
+  spec.name = "chupa-text"
+  spec.version = ChupaText::VERSION
+  spec.homepage = "http://ranguba.org/#about-chupa-text"
+  spec.authors = ["Kouhei Sutou"]
+  spec.email = ["kou �� clear-code.com"]
+  readme = File.read("README.md", :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.license = "LGPLv2.1 or later"
+  spec.files = ["README.md", "Rakefile", "Gemfile", "#{spec.name}.gemspec"]
+  spec.files += [".yardopts"]
+  spec.files += Dir.glob("lib/**/*.rb")
+  spec.files += Dir.glob("doc/text/*")
+  spec.test_files += Dir.glob("test/**/*")
+  Dir.chdir("bin") do
+    spec.executables = Dir.glob("*")
+  end
+
+  spec.add_development_dependency("bundler")
+  spec.add_development_dependency("rake")
+  spec.add_development_dependency("test-unit")
+  spec.add_development_dependency("packnga")
+  spec.add_development_dependency("redcarpet")
+end
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index