Skip to content

Commit

Permalink
Gemified with jeweler.
Browse files Browse the repository at this point in the history
  • Loading branch information
grimen committed Sep 10, 2009
1 parent dd59cbf commit d89bf47
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 13 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
coverage
pkg
*~
52 changes: 40 additions & 12 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
49 changes: 49 additions & 0 deletions delayed_job_mailer.gemspec
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
1 change: 0 additions & 1 deletion init.rb

This file was deleted.

0 comments on commit d89bf47

Please sign in to comment.