Sha256: 51667cfc963c553ff269b52ab1152740d3a6561af2765c7931e97422f1eaf87f

Contents?: true

Size: 1.43 KB

Versions: 3

Compression:

Stored size: 1.43 KB

Contents

require 'rake/testtask'

desc 'Default: run tests'
task :default => :test

desc 'Test AutoHtml'
Rake::TestTask.new(:test) do |t|
  t.pattern = 'test/**/*_test.rb'
end

desc 'Test with recent versions of Rails'
task :test_with_recent do
  versions = ['2.3.6', '3.0.0.rc']
  versions.each do |v|
    puts "\n###### TESTING WITH RAILS #{v}"
    ENV['RAILS_VERSION'] = v
    Rake::Task['test'].execute
  end
end

desc 'Test with versions of Rails available on the system'
task :test_with_installed do
  versions = `gem list rails | grep rails`.gsub("rails (", "").chop.split(', ')
  exclude = []
  (versions-exclude).each do |v|
    puts "\n###### TESTING WITH RAILS #{v}"
    ENV['RAILS_VERSION'] = v
    Rake::Task['test'].execute
  end
end


begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "auto_html"
    gem.summary = %{Automatically transforms urls (via domain) and includes the destination resource (Vimeo, YouTube movie, image, ...) in your document}
    gem.email = "desimic@gmail.com"
    gem.homepage = "http://github.com/dejan/auto_html"
    gem.description = "Automatically transforms urls (via domain) and includes the destination resource (Vimeo, YouTube movie, image, ...) in your document"
    gem.authors = ["Dejan Simic"]
    gem.files.exclude 'test.sqlite3'
    gem.has_rdoc = false
  end
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
auto_html-1.3.3 Rakefile
auto_html-1.3.2 Rakefile
auto_html-1.3.1 Rakefile