Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 206
- Log:
Initial import of Gullery, an open source photo gallery:
http://nubyonrails.com/pages/gullery
- Author:
- rool
- Date:
- Sun May 20 19:05:59 +0100 2007
- Size:
- 1826 Bytes
1 | require 'rake' |
2 | require 'rake/testtask' |
3 | require 'rake/rdoctask' |
4 | require 'rake/packagetask' |
5 | require 'rake/gempackagetask' |
6 | |
7 | $:.unshift(File.dirname(__FILE__) + "/lib") |
8 | require 'mini_magick' |
9 | |
10 | PKG_NAME = 'mini_magick' |
11 | PKG_VERSION = MiniMagick::VERSION |
12 | PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" |
13 | |
14 | desc 'Default: run unit tests.' |
15 | task :default => :test |
16 | |
17 | desc "Clean generated files" |
18 | task :clean do |
19 | rm FileList['test/output/*.png'] |
20 | rm_rf 'pkg' |
21 | rm_rf 'doc' |
22 | end |
23 | |
24 | desc 'Test the mini_magick plugin.' |
25 | Rake::TestTask.new(:test) do |t| |
26 | t.libs << 'lib' |
27 | t.pattern = 'test/**/*_test.rb' |
28 | t.verbose = true |
29 | end |
30 | |
31 | desc 'Generate documentation for the mini_magick plugin.' |
32 | Rake::RDocTask.new(:rdoc) do |rdoc| |
33 | rdoc.rdoc_dir = 'rdoc' |
34 | rdoc.title = 'MiniMagick' |
35 | rdoc.options << '--line-numbers --inline-source' |
36 | rdoc.rdoc_files.include('README') |
37 | rdoc.rdoc_files.include('lib/**/*.rb') |
38 | end |
39 | |
40 | |
41 | # Create compressed packages |
42 | spec = Gem::Specification.new do |s| |
43 | s.platform = Gem::Platform::RUBY |
44 | s.name = PKG_NAME |
45 | s.summary = "Manipulate images with minimal use of memory." |
46 | s.description = %q{Uses command-line ImageMagick tools to resize, rotate, and mogrify images.} |
47 | s.version = PKG_VERSION |
48 | |
49 | s.author = "Corey Johnson" |
50 | s.email = "probablycorey@gmail.com" |
51 | s.rubyforge_project = PKG_NAME |
52 | s.homepage = "http://journal.gleepglop.com" |
53 | |
54 | s.has_rdoc = true |
55 | s.requirements << 'none' |
56 | s.require_path = 'lib' |
57 | s.autorequire = 'mini_magick' |
58 | |
59 | s.files = [ "Rakefile", "README", "MIT-LICENSE" ] |
60 | s.files = s.files + Dir.glob( "lib/**/*" ).delete_if { |item| item.include?( "\.svn" ) } |
61 | s.files = s.files + Dir.glob( "test/**/*" ).delete_if { |item| item.include?( "\.svn" ) || item.include?("\.png") } |
62 | end |
63 | |
64 | Rake::GemPackageTask.new(spec) do |p| |
65 | p.gem_spec = spec |
66 | p.need_tar = true |
67 | p.need_zip = true |
68 | end |