Sha256: e8f3ea5d8c6115333121531312a091c15a6a6d98636f0c90adc592253fdf3b43

Contents?: true

Size: 1.58 KB

Versions: 1

Compression:

Stored size: 1.58 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      = 'https://github.com/addiedx44/forgitter'
  spec.license       = 'MIT'
  spec.metadata      = { 'source_code_uri' => 'https://github.com/addiedx44/forgitter' }

  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

1 entries across 1 versions & 1 rubygems

Version Path
forgitter-0.1.4 forgitter.gemspec