-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
48 lines (42 loc) · 1.63 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
# encoding: utf-8
require 'rubygems'
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rake'
require 'yard'
YARD::Rake::YardocTask.new('doc') do |t|
t.files = ['lib/runnable.rb', 'lib/runnable/command_parser.rb', 'lib/runnable/gnu.rb', 'lib/runnable/extended.rb']
t.options = ['-m','markdown', '-r' , 'README.markdown']
end
require 'cucumber'
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = ["./features"]
end
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = ["--format doc", "--color"]
end
require 'jeweler'
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
gem.name = 'runnable'
gem.homepage = 'http://github.com/nosolosoftware/runnable'
gem.license = 'GPL-3'
gem.summary = %Q{A Ruby gem for execute and control system commands}
gem.description = %Q{Convert a executable command in a Ruby-like class you are able to start, define params and send signals (like kill, or stop)}
gem.authors = ['Rafael García', 'Luis Ciudad', 'Pedro Navajas', 'Javier Aranda']
# dependencies defined in Gemfile
# Files not included
['Gemfile', 'Rakefile', 'examples_helpers/**/*', 'features/**/*', 'spec/**/*'].each do |d|
gem.files.exclude d
end
end
Jeweler::RubygemsDotOrgTasks.new