-
Notifications
You must be signed in to change notification settings - Fork 5
/
simp-build-helpers.gemspec
36 lines (30 loc) · 1.26 KB
/
simp-build-helpers.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'simp/build/helpers/version'
Gem::Specification.new do |gem|
gem.name = "simp-build-helpers"
gem.version = Simp::Build::Helpers::VERSION
gem.summary = %q{SIMP build helpers}
gem.description = %q{Provides helper methods for building SIMP}
gem.license = "Apache-2.0"
gem.authors = ["Chris Tessmer"]
gem.email = "simp@simp-project.org"
gem.homepage = "https://github.com/simp/rubygem-simp-build-helpers"
gem.files = `git ls-files`.split($/)
`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']
gem.add_development_dependency 'bundler', '~> 2'
gem.add_development_dependency 'rake', '~> 13'
gem.add_development_dependency 'rspec', '~> 3.0'
gem.add_development_dependency 'yard', '~> 0.9'
end