Sha256: b17f5525623c7029bdfe1f1f2f8b457515b7f0dacb6434b382df4a997193f4e0
Contents?: true
Size: 1.63 KB
Versions: 1
Compression:
Stored size: 1.63 KB
Contents
# encoding: utf-8 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' require 'rake/rdoctask' require 'rspec/core/rake_task' NAME = "roadie" EXTRA_RDOC_FILES = %w[README.textile] Jeweler::Tasks.new do |t| t.name = NAME t.summary = %{Making HTML emails comfortable for the Rails rockstars} t.email = "magnus.bergmark@gmail.com" t.homepage = "http://github.com/Mange/roadie" t.description = %{Roadie tries to make sending HTML emails a little less painful in Rails 3 by inlining stylesheets and rewrite relative URLs for you.} t.author = "Magnus Bergmark" t.require_path = 'lib' t.files = %w(Rakefile) + EXTRA_RDOC_FILES + Dir.glob(File.join(*%w[{lib,spec} ** *]).to_s) t.extra_rdoc_files = EXTRA_RDOC_FILES # dependencies defined in Gemfile end Jeweler::RubygemsDotOrgTasks.new desc "Generate documentation for the #{NAME} plugin." Rake::RDocTask.new(:rdoc) do |t| t.rdoc_dir = 'rdoc' t.title = NAME t.options << '--line-numbers' << '--inline-source' t.rdoc_files.include(EXTRA_RDOC_FILES) t.rdoc_files.include('lib/**/*.rb') end desc "Run plugin specs for #{NAME}." RSpec::Core::RakeTask.new('spec') do |t| t.pattern = 'spec/**/*_spec.rb' t.rspec_opts = ["-c"] end desc "Run plugin specs for #{NAME} with specdoc formatting and colors" RSpec::Core::RakeTask.new('specdoc') do |t| t.pattern = 'spec/**/*_spec.rb' t.rspec_opts = ["--format specdoc", "-c"] end desc "Default: Run specs." task :default => :spec
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roadie-1.0.0.pre1 | Rakefile |