forked from andersondias/delayed_job_mailer
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
93 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.DS_Store | ||
coverage | ||
pkg | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,28 +5,56 @@ require 'rake/rdoctask' | |
gem 'rspec-rails', '>= 1.0.0' | ||
require 'spec/rake/spectask' | ||
|
||
desc 'Default: run specs.' | ||
NAME = "delayed_job_mailer" | ||
SUMMARY = %Q{Send emails asynchronously using delayed_job.} | ||
HOMEPAGE = "https://github.com/andersondias/#{NAME}" | ||
AUTHOR = "Anderson Dias" | ||
EMAIL = "[email protected]" | ||
SUPPORT_FILES = %w(README) | ||
|
||
begin | ||
gem 'technicalpickles-jeweler', '>= 1.2.1' | ||
require 'jeweler' | ||
Jeweler::Tasks.new do |gem| | ||
gem.name = NAME | ||
gem.summary = SUMMARY | ||
gem.description = SUMMARY | ||
gem.homepage = HOMEPAGE | ||
gem.author = AUTHOR | ||
gem.email = EMAIL | ||
|
||
gem.require_paths = %w{lib} | ||
gem.files = SUPPORT_FILES << %w(MIT-LICENSE Rakefile) << Dir.glob(File.join('{generators,lib,test,rails}', '**', '*')) | ||
gem.executables = %w() | ||
gem.extra_rdoc_files = SUPPORT_FILES | ||
end | ||
rescue LoadError | ||
puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s https://gems.github.com" | ||
end | ||
|
||
desc %Q{Default: Run specs for "#{NAME}".} | ||
task :default => :spec | ||
|
||
spec_files = Rake::FileList["spec/**/*_spec.rb"] | ||
SPEC_FILES = Rake::FileList[File.join('spec', '**', '*_spec.rb')] | ||
|
||
desc %Q{Run specs for "#{NAME}".} | ||
Spec::Rake::SpecTask.new do |t| | ||
t.spec_files = spec_files | ||
t.spec_opts = ["-c"] | ||
t.spec_files = SPEC_FILES | ||
t.spec_opts = ['-c'] | ||
end | ||
|
||
desc "Generate code coverage" | ||
desc %Q{Generate code coverage for "#{NAME}".} | ||
Spec::Rake::SpecTask.new(:coverage) do |t| | ||
t.spec_files = spec_files | ||
t.spec_files = SPEC_FILES | ||
t.rcov = true | ||
t.rcov_opts = ['--exclude', 'spec,/var/lib/gems'] | ||
end | ||
|
||
desc 'Generate documentation for the delayed job plugin.' | ||
desc %Q{Generate documentation for "#{NAME}".} | ||
Rake::RDocTask.new(:rdoc) do |rdoc| | ||
rdoc.rdoc_dir = 'rdoc' | ||
rdoc.title = 'DelayedJob Mailer' | ||
rdoc.options << '--line-numbers' << '--inline-source' | ||
rdoc.rdoc_files.include('README') | ||
rdoc.rdoc_files.include('lib/**/*.rb') | ||
end | ||
rdoc.title = NAME | ||
rdoc.options << '--line-numbers' << '--inline-source' << '--charset=UTF-8' | ||
rdoc.rdoc_files.include(SUPPORT_FILES) | ||
rdoc.rdoc_files.include(File.join('lib', '**', '*.rb')) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Generated by jeweler | ||
# DO NOT EDIT THIS FILE | ||
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec` | ||
# -*- encoding: utf-8 -*- | ||
|
||
Gem::Specification.new do |s| | ||
s.name = %q{delayed_job_mailer} | ||
s.version = "0.1.0" | ||
|
||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | ||
s.authors = ["Anderson Dias"] | ||
s.date = %q{2009-09-10} | ||
s.description = %q{Send emails asynchronously using delayed_job.} | ||
s.email = %q{[email protected]} | ||
s.extra_rdoc_files = [ | ||
"MIT-LICENSE", | ||
"README", | ||
"Rakefile", | ||
"lib/delayed_job_mailer.rb", | ||
"rails/init.rb" | ||
] | ||
s.files = [ | ||
"MIT-LICENSE", | ||
"README", | ||
"Rakefile", | ||
"lib/delayed_job_mailer.rb", | ||
"rails/init.rb" | ||
] | ||
s.has_rdoc = true | ||
s.homepage = %q{https://github.com/andersondias/delayed_job_mailer} | ||
s.rdoc_options = ["--charset=UTF-8"] | ||
s.require_paths = ["lib"] | ||
s.rubygems_version = %q{1.3.1} | ||
s.summary = %q{Send emails asynchronously using delayed_job.} | ||
s.test_files = [ | ||
"spec/delayed_job_mailer_spec.rb", | ||
"spec/spec_helper.rb" | ||
] | ||
|
||
if s.respond_to? :specification_version then | ||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION | ||
s.specification_version = 2 | ||
|
||
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then | ||
else | ||
end | ||
else | ||
end | ||
end |