forked from notahat/time_travel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
25 lines (23 loc) · 770 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
require 'rake'
require 'spec/rake/spectask'
require 'rake/rdoctask'
desc "Run all the specs for the time_travel plugin."
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
t.spec_opts = ['--colour']
t.rcov = true
t.rcov_opts = ["--exclude \"spec/*,gems/*\""]
end
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "time_travel"
gemspec.summary = "A Rails plugin that makes it easy to write tests or specs for time-dependent code"
gemspec.email = "[email protected]"
gemspec.homepage = "http://github.com/notahat/time_travel"
gemspec.authors = ["Pete Yandell"]
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler not available. Install it with: sudo gem install jeweler"
end