-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathRakefile
27 lines (25 loc) · 882 Bytes
/
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
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "nestegg"
gemspec.summary = "Nested exceptions for ruby"
gemspec.description = "Module to add a 'cause' field to exceptions and automatically chains exceptions on re-raise"
gemspec.email = "[email protected]"
gemspec.homepage = "http://github.com/loganb/nestegg"
gemspec.authors = ["John D. Hume", "Logan Bowers", "Matt Scilipoti"]
end
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
return
end
begin
require 'spec/rake/spectask'
rescue LoadError
puts 'To use rspec for testing you must install rspec gem:'
puts '$ sudo gem install rspec'
exit
end
Spec::Rake::SpecTask.new do |t|
t.spec_opts = ['--options', "spec/spec.opts"]
t.spec_files = FileList['spec/**/*_spec.rb']
end