Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

63 lines (51 sloc) 1.688 kb
$LOAD_PATH.unshift File.join(File.dirname(__FILE__))
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), 'test')
require "bundler/setup"
require 'rake/testtask'
Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = FileList['test/**/*test.rb']
t.verbose = true
end
begin
require 'rspec/core/rake_task'
desc "Run specs"
RSpec::Core::RakeTask.new
rescue LoadError
puts "Spec task can't be loaded. `gem install rspec`"
end
task :default => [:test, :spec]
begin
require 'jeweler'
$LOAD_PATH.unshift File.dirname(__FILE__) + '/lib'
require 'fakefs/version'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "fakefs"
gemspec.summary = "A fake filesystem. Use it in your tests."
gemspec.email = "chris@ozmm.org"
gemspec.homepage = "http://github.com/defunkt/fakefs"
gemspec.description = "A fake filesystem. Use it in your tests."
gemspec.authors = ["Chris Wanstrath", "Scott Taylor", "Jeff Hodges", "Pat Nakajima"]
gemspec.has_rdoc = false
gemspec.version = FakeFS::Version.to_s
end
rescue LoadError
puts "Jeweler not available."
puts "Install it with: gem install jeweler"
end
desc "Build a gem"
task :gem => [ :gemspec, :build ]
desc "Push a new version to Gemcutter"
task :publish => [ :gemspec, :build ] do
abort("Tests failed!") unless system("rake test")
system "git tag v#{FakeFS::Version}"
system "git push origin v#{FakeFS::Version}"
system "git push origin master"
system "gem push pkg/fakefs-#{FakeFS::Version}.gem"
system "git clean -fd"
exec "rake pages"
end
desc "Update contributors"
task :update_contributors do
sh "git-rank-contributors > CONTRIBUTORS"
end
Jump to Line
Something went wrong with that request. Please try again.