Sha256: e06d90993bd00a4cc17015c8474e58b1987a0c43fa290e07d12deac2334d770c
Contents?: true
Size: 1.92 KB
Versions: 1
Compression:
Stored size: 1.92 KB
Contents
require 'rubygems' require 'bundler' Bundler.setup require 'rspec/core/rake_task' begin require 'jeweler' Jeweler::Tasks.new do |s| s.name = "email_spec" s.platform = Gem::Platform::RUBY s.authors = ['Ben Mabey', 'Aaron Gibralter', 'Mischa Fierer'] s.email = "ben@benmabey.com" s.homepage = "http://github.com/bmabey/email-spec/" s.summary = "Easily test email in rspec and cucumber" s.bindir = "bin" s.description = s.summary s.require_path = "lib" s.files = %w(History.txt install.rb MIT-LICENSE.txt README.rdoc Rakefile) + Dir["lib/**/*"] + Dir["rails_generators/**/*"] s.test_files = Dir["spec/**/*"] + Dir["examples/**/*"] # rdoc s.has_rdoc = true s.extra_rdoc_files = %w(README.rdoc MIT-LICENSE.txt) s.rubyforge_project = 'email-spec' end rescue LoadError puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" end begin require 'cucumber/rake/task' Cucumber::Rake::Task.new(:features) rescue LoadError task :features do abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber" end end require 'rspec/core/rake_task' RSpec::Core::RakeTask.new namespace :example_app do RSpec::Core::RakeTask.new do |spec| desc "Specs for Example app" spec.pattern = './examples/rails_root/spec/**/*_spec.rb' end end task :default => [:features, :spec, 'example_app:spec'] desc "Cleans the project of any tmp file that should not be included in the gemspec." task :clean do FileUtils.rm_f('examples/rails_root/features/step_definitions/email_steps.rb') FileUtils.rm_rf('examples/rails_root/log') FileUtils.rm_rf('examples/rails_root/vendor') %w[*.sqlite3 *.log].each do |pattern| `find . -name "#{pattern}" -delete` end end desc "Cleans the dir and builds the gem" task :prep => [:clean, :gemspec, :build]
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
path-email_spec-0.6.2 | Rakefile |