forked from pivotalexperimental/clock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
28 lines (25 loc) · 944 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
28
require 'rake'
require 'rspec'
require 'rspec/core'
require 'rspec/core/rake_task'
task :default => :spec
desc "Run all specs in spec directory (excluding plugin specs)"
RSpec::Core::RakeTask.new do |t|
t.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"]
t.pattern = 'spec/**/*_spec.rb'
end
begin
require "jeweler"
Jeweler::Tasks.new do |gem|
gem.name = "clock"
gem.summary = "A wrapper for Ruby's Time object that includes a mock for manipulating time in tests"
gem.description = "Works exactly like Ruby's standard Time object, but in test mode adds some nice methods for setting or manually advancing time."
gem.email = "[email protected]"
gem.homepage = "http://github.com/pivotal/clock"
gem.authors = ["Pivotal Labs"]
gem.files = Dir["{lib}/**/*"]
gem.add_dependency "rails", '~> 3.0.0'
end
rescue
puts "Jeweler or one of its dependencies is not installed."
end