-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
51 lines (41 loc) · 1.51 KB
/
Rakefile
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
42
43
44
45
46
47
48
49
50
51
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
require 'rake/clean'
require 'rake/packagetask'
require 'rspec/core/rake_task'
require 'rspec'
require 'rubygems'
require 'rubygems/package_task'
require 'tbm'
CLEAN.include( 'coverage', 'pkg' )
desc '"spec" (run RSpec)'
task :default => :spec
desc "Run RSpec on spec/*"
RSpec::Core::RakeTask.new
desc "Generate code coverage"
RSpec::Core::RakeTask.new(:coverage) do |t|
t.rcov = true
t.rcov_opts = ['--exclude', 'spec,/gems/,/rubygems/', '--text-report']
end
spec = Gem::Specification.new do |spec|
# Basics
spec.name = 'tbm'
spec.version = TBM::VERSION
spec.date = TBM::RELEASE_DATE
spec.summary = 'Manages SSH Tunnels by creating an SSH connection and forwarding ports based on named targets defined in configuration.'
spec.description = 'The "Tunnel Boring Machine" is meant to bore ssh tunnels through the internet to your desired destination simply and repeatedly, as often as you need them. This is a tool for someone who needs SSH tunnels frequently.'
spec.add_dependency( 'net-ssh', '>= 2.6.2' )
# Files
spec.executables << 'tbm'
spec.files = Dir['{lib,spec}/**/*.rb', 'bin/*', 'Rakefile', 'README.md', 'UNLICENSE']
# Documentation
spec.has_rdoc = true
# About
spec.author = 'Geoffrey Wiseman'
spec.email = '[email protected]'
spec.homepage = 'https://github.com/geoffreywiseman/tunnel-boring-machine'
spec.license = 'UNLICENSE'
end
Gem::PackageTask.new( spec ) do |pkg|
pkg.need_tar_gz = true
pkg.need_zip = true
end