Sha256: 873f3fcde6b65a3089eb9827d49182a87c6a20702943c1283d2bad84b73201a3

Contents?: true

Size: 1.46 KB

Versions: 2

Compression:

Stored size: 1.46 KB

Contents

# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'forgitter/version'

Gem::Specification.new do |spec|
  spec.name          = 'forgitter'
  spec.version       = Forgitter::VERSION
  spec.authors       = ['Addie Drake']
  spec.email         = ['addie@v0gel.io']
  spec.summary       = %q{Forgitter is a .gitignore generator.}
  spec.description   = %q{Forgitter is a .gitignore generator. It is based on the ignorefiles found at https://github.com/github/gitignore.}
  spec.homepage      = ''
  spec.license       = 'MIT'

  spec.files         = `git ls-files -z`.split("\x0")
  spec.executables   = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
  spec.test_files    = spec.files.grep(%r{^(test|spec|features)/})
  spec.require_paths = ['lib']

  gem_dir = File.expand_path(File.dirname(__FILE__)) + '/'
  `git submodule --quiet foreach pwd`.split($\).each do |submodule_path|
    Dir.chdir(submodule_path) do
      submodule_relative_path = submodule_path.sub gem_dir, ''
      # issue git ls-files in submodule's directory and
      # prepend the submodule path to create absolute file paths
      `git ls-files`.split($\).each do |filename|
        spec.files << "#{submodule_relative_path}/#{filename}"
      end
    end
  end

  spec.add_development_dependency 'bundler'
  spec.add_development_dependency 'gem-release'
  spec.add_development_dependency 'pry-byebug'
  spec.add_development_dependency 'rake'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
forgitter-0.1.1 forgitter.gemspec
forgitter-0.1.0 forgitter.gemspec