epub-cfi.gemspec 1.47 KB
Newer Older
KitaitiMakoto's avatar
KitaitiMakoto committed
1 2 3 4 5 6 7 8
# -*- encoding: utf-8 -*-

lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'epub/cfi/version'

Gem::Specification.new do |gem|
  gem.name          = "epub-cfi"
9
  gem.version       = EPUB::CFI::VERSION
KitaitiMakoto's avatar
KitaitiMakoto committed
10 11 12 13 14
  gem.summary       = %q{EPUB CFI parser and builder}
  gem.description   = %q{Parser and builder implementation for EPUB CFI defined at http://www.idpf.org/epub/linking/cfi/}
  gem.license       = "LGPL"
  gem.authors       = ["KITAITI Makoto"]
  gem.email         = "KitaitiMakoto@gmail.com"
KitaitiMakoto's avatar
KitaitiMakoto committed
15
  gem.homepage      = "https://gitlab.com/KitaitiMakoto/epub-cfi"
KitaitiMakoto's avatar
KitaitiMakoto committed
16

17
  gem.files         = `git ls-files`.split($/) << "lib/epub/cfi/parser.tab.rb"
KitaitiMakoto's avatar
KitaitiMakoto committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31

  `git submodule --quiet foreach --recursive pwd`.split($/).each do |submodule|
    submodule.sub!("#{Dir.pwd}/",'')

    Dir.chdir(submodule) do
      `git ls-files`.split($/).map do |subpath|
        gem.files << File.join(submodule,subpath)
      end
    end
  end
  gem.executables   = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
  gem.test_files    = gem.files.grep(%r{^(test|spec|features)/})
  gem.require_paths = ['lib']

32
  gem.add_development_dependency "racc"
33 34 35
  gem.add_development_dependency 'rake'
  gem.add_development_dependency 'rubygems-tasks'
  gem.add_development_dependency 'yard'
36 37
  gem.add_development_dependency "test-unit"
  gem.add_development_dependency "test-unit-notify"
38
  gem.add_development_dependency "pretty_backtrace"
39
  gem.add_development_dependency "simplecov"
KitaitiMakoto's avatar
KitaitiMakoto committed
40
end