Sha256: 87906ac2168f56353a081d5efcdde20d549edee6c683db165e05082fbf7744ed

Contents?: true

Size: 1.11 KB

Versions: 7

Compression:

Stored size: 1.11 KB

Contents

# encoding: utf-8
#!/usr/bin/env rake
require "bundler/gem_tasks"
require 'rake'

require 'rspec/core'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
  spec.pattern = FileList['spec/**/*_spec.rb']
end

require 'reek/rake/task'
Reek::Rake::Task.new do |t|
  t.fail_on_error = true
  t.verbose = false
  t.source_files = 'lib/**/*.rb'
end

require 'roodi'
require 'roodi_task'
RoodiTask.new do |t|
  t.verbose = false
end

task :default => :spec

namespace :test do
  desc 'Test against all supported Rails versions'
  task :all do
    %w(3.0.x 3.1.x 3.2.x 4.0.x).each do |version|
      sh "BUNDLE_GEMFILE='gemfiles/Gemfile.rails-#{version}' bundle --quiet"
      sh "BUNDLE_GEMFILE='gemfiles/Gemfile.rails-#{version}' bundle exec rspec spec"
    end
  end
end

require 'rdoc/task'
require File.expand_path('../lib/sanitize_email/version', __FILE__)
Rake::RDocTask.new do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = "SanitizeEmail #{SanitizeEmail::VERSION}"
  rdoc.options << '--line-numbers'
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

Bundler::GemHelper.install_tasks

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sanitize_email-1.1.4 Rakefile
sanitize_email-1.1.3 Rakefile
sanitize_email-1.1.2 Rakefile
sanitize_email-1.1.1 Rakefile
sanitize_email-1.1.0 Rakefile
sanitize_email-1.0.11 Rakefile
sanitize_email-1.0.10 Rakefile