Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Gemified with jeweler.

  • Loading branch information...
commit d89bf47d8c37ee0b1c4f8f3a1871bdcb8ccdc726 1 parent dd59cbf
Jonas Grimfelt grimen authored
4 .gitignore
... ... @@ -0,0 +1,4 @@
  1 +.DS_Store
  2 +coverage
  3 +pkg
  4 +*~
52 Rakefile
@@ -5,28 +5,56 @@ require 'rake/rdoctask'
5 5 gem 'rspec-rails', '>= 1.0.0'
6 6 require 'spec/rake/spectask'
7 7
8   -desc 'Default: run specs.'
  8 +NAME = "delayed_job_mailer"
  9 +SUMMARY = %Q{Send emails asynchronously using delayed_job.}
  10 +HOMEPAGE = "http://github.com/andersondias/#{NAME}"
  11 +AUTHOR = "Anderson Dias"
  12 +EMAIL = "andersondaraujo@gmail.com"
  13 +SUPPORT_FILES = %w(README)
  14 +
  15 +begin
  16 + gem 'technicalpickles-jeweler', '>= 1.2.1'
  17 + require 'jeweler'
  18 + Jeweler::Tasks.new do |gem|
  19 + gem.name = NAME
  20 + gem.summary = SUMMARY
  21 + gem.description = SUMMARY
  22 + gem.homepage = HOMEPAGE
  23 + gem.author = AUTHOR
  24 + gem.email = EMAIL
  25 +
  26 + gem.require_paths = %w{lib}
  27 + gem.files = SUPPORT_FILES << %w(MIT-LICENSE Rakefile) << Dir.glob(File.join('{generators,lib,test,rails}', '**', '*'))
  28 + gem.executables = %w()
  29 + gem.extra_rdoc_files = SUPPORT_FILES
  30 + end
  31 +rescue LoadError
  32 + puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
  33 +end
  34 +
  35 +desc %Q{Default: Run specs for "#{NAME}".}
9 36 task :default => :spec
10 37
11   -spec_files = Rake::FileList["spec/**/*_spec.rb"]
  38 +SPEC_FILES = Rake::FileList[File.join('spec', '**', '*_spec.rb')]
12 39
  40 +desc %Q{Run specs for "#{NAME}".}
13 41 Spec::Rake::SpecTask.new do |t|
14   - t.spec_files = spec_files
15   - t.spec_opts = ["-c"]
  42 + t.spec_files = SPEC_FILES
  43 + t.spec_opts = ['-c']
16 44 end
17 45
18   -desc "Generate code coverage"
  46 +desc %Q{Generate code coverage for "#{NAME}".}
19 47 Spec::Rake::SpecTask.new(:coverage) do |t|
20   - t.spec_files = spec_files
  48 + t.spec_files = SPEC_FILES
21 49 t.rcov = true
22 50 t.rcov_opts = ['--exclude', 'spec,/var/lib/gems']
23 51 end
24 52
25   -desc 'Generate documentation for the delayed job plugin.'
  53 +desc %Q{Generate documentation for "#{NAME}".}
26 54 Rake::RDocTask.new(:rdoc) do |rdoc|
27 55 rdoc.rdoc_dir = 'rdoc'
28   - rdoc.title = 'DelayedJob Mailer'
29   - rdoc.options << '--line-numbers' << '--inline-source'
30   - rdoc.rdoc_files.include('README')
31   - rdoc.rdoc_files.include('lib/**/*.rb')
32   -end
  56 + rdoc.title = NAME
  57 + rdoc.options << '--line-numbers' << '--inline-source' << '--charset=UTF-8'
  58 + rdoc.rdoc_files.include(SUPPORT_FILES)
  59 + rdoc.rdoc_files.include(File.join('lib', '**', '*.rb'))
  60 +end
49 delayed_job_mailer.gemspec
... ... @@ -0,0 +1,49 @@
  1 +# Generated by jeweler
  2 +# DO NOT EDIT THIS FILE
  3 +# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
  4 +# -*- encoding: utf-8 -*-
  5 +
  6 +Gem::Specification.new do |s|
  7 + s.name = %q{delayed_job_mailer}
  8 + s.version = "0.1.0"
  9 +
  10 + s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
  11 + s.authors = ["Anderson Dias"]
  12 + s.date = %q{2009-09-10}
  13 + s.description = %q{Send emails asynchronously using delayed_job.}
  14 + s.email = %q{andersondaraujo@gmail.com}
  15 + s.extra_rdoc_files = [
  16 + "MIT-LICENSE",
  17 + "README",
  18 + "Rakefile",
  19 + "lib/delayed_job_mailer.rb",
  20 + "rails/init.rb"
  21 + ]
  22 + s.files = [
  23 + "MIT-LICENSE",
  24 + "README",
  25 + "Rakefile",
  26 + "lib/delayed_job_mailer.rb",
  27 + "rails/init.rb"
  28 + ]
  29 + s.has_rdoc = true
  30 + s.homepage = %q{http://github.com/andersondias/delayed_job_mailer}
  31 + s.rdoc_options = ["--charset=UTF-8"]
  32 + s.require_paths = ["lib"]
  33 + s.rubygems_version = %q{1.3.1}
  34 + s.summary = %q{Send emails asynchronously using delayed_job.}
  35 + s.test_files = [
  36 + "spec/delayed_job_mailer_spec.rb",
  37 + "spec/spec_helper.rb"
  38 + ]
  39 +
  40 + if s.respond_to? :specification_version then
  41 + current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
  42 + s.specification_version = 2
  43 +
  44 + if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
  45 + else
  46 + end
  47 + else
  48 + end
  49 +end
1  init.rb
... ... @@ -1 +0,0 @@
1   -require 'delayed_job_mailer'

0 comments on commit d89bf47

Please sign in to comment.
Something went wrong with that request. Please try again.