-
Notifications
You must be signed in to change notification settings - Fork 0
/
whatmask.gemspec
executable file
·37 lines (31 loc) · 1.31 KB
/
whatmask.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
# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'whatmask/version'
Gem::Specification.new do |gem|
gem.name = "whatmask"
gem.version = Whatmask::VERSION
gem.summary = %q{netmask calculator}
gem.description = %q{A ruby adaptation of whatmask http://www.laffeycomputer.com/whatmask.html}
gem.license = "LGPL-3.0-or-later"
gem.authors = ["Mike Gee"]
gem.email = "[email protected]"
gem.homepage = "https://github.com/geezyx/whatmask"
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.3'
gem.add_development_dependency 'rake', '~> 13.0.6'
gem.add_development_dependency 'rspec', '~> 3.12'
gem.add_development_dependency 'rubygems-tasks', '~> 0.2'
gem.add_development_dependency 'yard', '~> 0.9'
end