forked from sergeantxp/attacheable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
44 lines (31 loc) · 1.08 KB
/
Rakefile
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
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/gempackagetask'
spec = Gem::Specification.new do |s|
s.name = 'attacheable'
s.version = '1.6'
s.summary = 'Library to handle image uploads'
s.autorequire = 'attacheable'
s.author = "Max Lapshin"
s.email = "[email protected]"
s.description = "Fork of attachment_fu. It differs in following ways:
1. Can work with merb uploads
2. can create thumbnails on fly
3. goes with Mongrel handler, that autocreate thumbnails on demand
4. works only with file system (and does it better, than attachment_fu)
5. create only one row in table for one image. No separate rows for each thumbnail."
s.rubyforge_project = "attacheable"
s.has_rdoc = false
s.files = FileList["**/**"].exclude(".git").to_a
end
Rake::GemPackageTask.new(spec) do |package|
package.gem_spec = spec
end
task :default => [ :test ]
desc "Run all tests (requires BlueCloth, RedCloth and Rails for integration tests)"
Rake::TestTask.new("test") { |t|
t.libs << "test"
t.pattern = 'test/*_test.rb'
t.verbose = true
}