Sha256: 543046ee72aa273d72e59cb2023698bacce3e0a48fe6704a9e3cafb9372fc239

Contents?: true

Size: 1.24 KB

Versions: 12

Compression:

Stored size: 1.24 KB

Contents

desc "Run tests"
task :test do
  Dir['test/**/*_test.rb'].each { |file| require file }
end

task :default => :test

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"]
    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

begin
  require 'sdoc_helpers'
rescue LoadError
  puts "sdoc support not enabled. Please gem install sdoc-helpers."
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

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/fakefs-0.2.1/Rakefile
vim-jar-0.1.2 bundler/ruby/1.8/gems/fakefs-0.2.1/Rakefile
vim-jar-0.1.1 bundler/ruby/1.8/gems/fakefs-0.2.1/Rakefile
vim-jar-0.1.0 bundler/ruby/1.8/gems/fakefs-0.2.1/Rakefile
vim-jar-0.0.3 bundler/ruby/1.8/gems/fakefs-0.2.1/Rakefile
vim-jar-0.0.2 bundler/ruby/1.8/gems/fakefs-0.2.1/Rakefile
vim-jar-0.0.1 bundler/ruby/1.8/gems/fakefs-0.2.1/Rakefile
simple-templater-0.0.1.3 vendor/fakefs/Rakefile
simple-templater-0.0.1.2 vendor/fakefs/Rakefile
simple-templater-0.0.1.1 vendor/fakefs/Rakefile
simple-templater-0.0.1 vendor/fakefs/Rakefile
fakefs-0.2.1 Rakefile