forked from dmakhmutov/rack-logstash
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
35 lines (26 loc) · 688 Bytes
/
Rakefile
File metadata and controls
35 lines (26 loc) · 688 Bytes
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
exec(*(["bundle", "exec", $PROGRAM_NAME] + ARGV)) if ENV['BUNDLE_GEMFILE'].nil?
Bundler.setup(:default, :development)
task :default => :test
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
Bundler::GemHelper.install_tasks
task :release do
sh "git release"
end
require 'yard'
YARD::Rake::YardocTask.new :doc do |yardoc|
yardoc.files = %w{lib/**/*.rb - README.md}
end
desc "Run guard"
task :guard do
sh "guard --clear"
end
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new :test do |t|
t.pattern = "spec/**/*_spec.rb"
end