Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 49 lines (43 sloc) 1.457 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 48 49
require 'rubygems'
require 'bundler'
begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts "Run `bundle install` to install missing gems"
  exit e.status_code
end
require 'rake'

require 'jeweler'
Jeweler::Tasks.new do |gem|
  gem.name = "dragonfly"
  gem.email = "mark@new-bamboo.co.uk"
  gem.summary = %Q{Ideal gem for handling attachments in Rails, Sinatra and Rack applications.}
  gem.description = %Q{Dragonfly is a framework that enables on-the-fly processing for any content type.
It is especially suited to image handling. Its uses range from image thumbnails to standard attachments to on-demand text generation.}
  gem.homepage = "http://github.com/markevans/dragonfly"
  gem.license = "MIT"
  gem.authors = ["Mark Evans"]
end
Jeweler::RubygemsDotOrgTasks.new

require 'rspec/core'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
  spec.pattern = FileList['spec/**/*_spec.rb']
end

RSpec::Core::RakeTask.new(:rcov) do |spec|
  spec.pattern = 'spec/**/*_spec.rb'
  spec.rcov = true
end

require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features)

task :default => [:spec, :features]

require 'yard'
YARD::Rake::YardocTask.new do |t|
  t.files = ['lib/**/*.rb']
  t.options = []
end
YARD::Rake::YardocTask.new 'yard:changed' do |t|
  t.files = `git status | grep '.rb' | grep modified | grep -v yard | cut -d' ' -f4`.split
  t.options = []
end
Something went wrong with that request. Please try again.