Sha256: ca54146610d772bc66abb8d07dee7269b09c18c3251ad5dc9f671e1211d4fbaa

Contents?: true

Size: 1.73 KB

Versions: 3

Compression:

Stored size: 1.73 KB

Contents

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

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

desc 'Test the uploader gem.'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.libs << 'test/rails_test/test'
  t.pattern = 'test/rails_test/test/**/*_test.rb'
  t.verbose = true
end

desc 'Generate documentation for the uploader plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'Uploader'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README.rdoc')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

desc 'Translate this gem'
task :translate do
  file = File.join(File.dirname(__FILE__), 'config', 'locales', 'en.yml')
  system("babelphish -o -y #{file}")
end

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gemspec|
    gemspec.name = "uploader"
    gemspec.summary = "Uploadify, SWFUpload + Paperclip wrapped in an engine with love."
    gemspec.email = "justinball@gmail.com"
    gemspec.homepage = "http://github.com/jbasdf/uploader"
    gemspec.description = "Uploader gem that makes it simple add multiple file uploads to your Rails project using SWFUpload, Uploadify and Paperclip"
    gemspec.authors = ["Justin Ball", "Joel Duffin", "David South"]
    gemspec.files.include %w( test/rails_test/db/schema.rb )
    gemspec.rubyforge_project = 'uploader'
    gemspec.add_dependency "mime-types"
    gemspec.add_dependency "rack"
    gemspec.add_dependency "paperclip"
    gemspec.add_dependency "aws-s3"
  end
  Jeweler::GemcutterTasks.new
  Jeweler::RubyforgeTasks.new do |rubyforge|
    rubyforge.doc_task = "rdoc"
  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
uploader-3.1.0 Rakefile
uploader-3.0.2 Rakefile
uploader-3.0.1 Rakefile