This repository has been archived by the owner on Aug 26, 2019. It is now read-only.
forked from adamwiggins/rush
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Rakefile
56 lines (44 loc) · 1.5 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
52
53
54
55
56
require 'rake'
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "rush2"
s.summary = "A Ruby replacement for bash+ssh."
s.description = "A Ruby replacement for bash+ssh, providing both an interactive shell and a library. Manage both local and remote unix systems from a single client."
s.author = "Sergei Smagin"
s.email = "smaginsergey1310@gmail.com"
s.homepage = "https://github.com/s-mage/rush"
s.licenses = ['MIT']
s.executables = [ "rush", "rushd" ]
s.has_rdoc = true
s.files = FileList["[A-Z]*", "{bin,lib,spec}/**/*"]
end
Jeweler::GemcutterTasks.new
######################################################
require 'rspec/core/rake_task'
desc "Run all specs"
RSpec::Core::RakeTask.new('spec') do |t|
t.pattern = 'spec/*_spec.rb'
end
desc "Print specdocs"
RSpec::Core::RakeTask.new(:doc) do |t|
t.pattern = 'spec/*_spec.rb'
t.rspec_opts = ["--format", "specdoc", "--dry-run"]
end
desc "Run all examples with RCov"
RSpec::Core::RakeTask.new('rcov') do |t|
t.pattern = 'spec/*_spec.rb'
t.rcov = true
t.rcov_opts = ['--exclude', 'examples']
end
task :default => :spec
######################################################
require 'rdoc/task'
Rake::RDocTask.new do |t|
t.rdoc_dir = 'rdoc'
t.title = "rush, a Ruby replacement for bash+ssh"
t.options << '--line-numbers' << '--inline-source' << '-A cattr_accessor=object'
t.options << '--charset' << 'utf-8'
t.rdoc_files.include('README.rdoc')
t.rdoc_files.include('lib/rush.rb')
t.rdoc_files.include('lib/rush/*.rb')
end