forked from timrogers/airports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
airports.gemspec
41 lines (34 loc) · 1.6 KB
/
airports.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
37
38
39
40
41
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'airports/version'
Gem::Specification.new do |spec|
spec.name = "airports"
spec.version = Airports::VERSION
spec.authors = ["Tim Rogers"]
spec.email = ["me@timrogers.co.uk"]
spec.summary = %q{Access data on airports from around the world}
spec.description = %q{Access data on airports from around the world}
spec.homepage = "https://github.com/timrogers/airports"
spec.license = "MIT"
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
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.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.required_ruby_version = '>= 2.1'
spec.add_development_dependency "bundler", "~> 1.10"
spec.add_development_dependency "rake", "~> 10.0", ">= 10.0"
spec.add_development_dependency "rspec", "~> 3.3.0", ">= 3.3.0"
spec.add_development_dependency "rspec-its", "~> 1.2.0", ">= 1.2.0"
spec.add_development_dependency "pry", "~> 0.10.3", ">= 0.10.3"
end