forked from dejan/auto_html
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
48 lines (41 loc) · 1.43 KB
/
Rakefile
File metadata and controls
48 lines (41 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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