Sha256: 3e205fc98751763e612b7b7b64ff72e382d228718eb92a1f9e39e325ff3e86b6

Contents?: true

Size: 1.97 KB

Versions: 1

Compression:

Stored size: 1.97 KB

Contents

# -*- ruby -*-
#
# Copyright (C) 2019  Sutou Kouhei <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

clean_white_space = lambda do |entry|
  entry.gsub(/(\A\n+|\n+\z)/, '') + "\n"
end

Gem::Specification.new do |spec|
  spec.name = "chupa-text-decomposer-abiword"
  spec.version = "1.0.0"
  spec.homepage = "https://github.com/ranguba/chupa-text-decomposer-abiword"
  spec.authors = ["Sutou Kouhei"]
  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 = description.split(/\n\n+/, 2).first
  spec.description = description
  spec.license = "LGPL-2.1+"
  spec.files = ["#{spec.name}.gemspec"]
  spec.files += ["README.md", "LICENSE.txt", "Rakefile", "Gemfile"]
  spec.files += [".yardopts"]
  spec.files += Dir.glob("lib/**/*.rb")
  spec.files += Dir.glob("doc/text/*")
  spec.files += Dir.glob("test/**/*")

  spec.add_runtime_dependency("chupa-text")
  spec.add_runtime_dependency("chupa-text-decomposer-pdf")

  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("kramdown")
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chupa-text-decomposer-abiword-1.0.0 chupa-text-decomposer-abiword.gemspec