grimen-delayed_job_mailer 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -2,59 +2,77 @@
2
2
  require 'rake'
3
3
  require 'rake/rdoctask'
4
4
 
5
- gem 'rspec-rails', '>= 1.0.0'
6
- require 'spec/rake/spectask'
5
+ begin
6
+ require 'spec/rake/spectask'
7
+ rescue LoadError
8
+ begin
9
+ gem 'rspec-rails', '>= 1.0.0'
10
+ require 'spec/rake/spectask'
11
+ rescue LoadError
12
+ puts "RSpec - or one of it's dependencies - is not available. Install it with: sudo gem install rspec-rails"
13
+ end
14
+ end
7
15
 
8
- NAME = "delayed_job_mailer"
16
+ NAME = "grimen-delayed_job_mailer"
9
17
  SUMMARY = %Q{Send emails asynchronously using delayed_job.}
10
- HOMEPAGE = "http://github.com/andersondias/#{NAME}"
18
+ HOMEPAGE = "http://github.com/grimen/#{NAME}"
11
19
  AUTHOR = "Anderson Dias"
12
20
  EMAIL = "andersondaraujo@gmail.com"
13
21
  SUPPORT_FILES = %w(README)
14
22
 
15
23
  begin
16
- gem 'technicalpickles-jeweler', '>= 1.2.1'
24
+ gem 'jeweler', '>= 1.2.1'
17
25
  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
26
+
27
+ Jeweler::Tasks.new do |gemspec|
28
+ gemspec.name = NAME
29
+ gemspec.summary = SUMMARY
30
+ gemspec.description = SUMMARY
31
+ gemspec.homepage = HOMEPAGE
32
+ gemspec.author = AUTHOR
33
+ gemspec.email = EMAIL
34
+
35
+ gemspec.autorequire = NAME
36
+ gemspec.require_paths = %w{lib}
37
+ gemspec.files = SUPPORT_FILES << %w(MIT-LICENSE Rakefile) << Dir.glob(File.join(*%w[{lib,spec} ** *]).to_s)
38
+ gemspec.extra_rdoc_files = SUPPORT_FILES
25
39
 
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
40
+ gemspec.add_dependency 'actionmailer', '>= 1.2.3'
41
+ gemspec.add_dependency 'activesupport', '>= 1.2.3'
42
+
43
+ gemspec.add_development_dependency 'rspec-rails', '>= 1.2.6'
30
44
  end
45
+
46
+ Jeweler::GemcutterTasks.new
31
47
  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"
48
+ puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install jeweler -s http://gemcutter.org"
33
49
  end
34
50
 
35
51
  desc %Q{Default: Run specs for "#{NAME}".}
36
52
  task :default => :spec
37
53
 
38
- SPEC_FILES = Rake::FileList[File.join('spec', '**', '*_spec.rb')]
39
-
40
- desc %Q{Run specs for "#{NAME}".}
41
- Spec::Rake::SpecTask.new do |t|
42
- t.spec_files = SPEC_FILES
43
- t.spec_opts = ['-c']
44
- end
45
-
46
- desc %Q{Generate code coverage for "#{NAME}".}
47
- Spec::Rake::SpecTask.new(:coverage) do |t|
48
- t.spec_files = SPEC_FILES
49
- t.rcov = true
50
- t.rcov_opts = ['--exclude', 'spec,/var/lib/gems']
51
- end
52
-
53
54
  desc %Q{Generate documentation for "#{NAME}".}
54
55
  Rake::RDocTask.new(:rdoc) do |rdoc|
55
56
  rdoc.rdoc_dir = 'rdoc'
56
57
  rdoc.title = NAME
57
58
  rdoc.options << '--line-numbers' << '--inline-source' << '--charset=UTF-8'
58
59
  rdoc.rdoc_files.include(SUPPORT_FILES)
59
- rdoc.rdoc_files.include(File.join('lib', '**', '*.rb'))
60
+ rdoc.rdoc_files.include(File.join(*%w[lib ** *.rb]))
61
+ end
62
+
63
+ SPEC_FILES = Rake::FileList[File.join(*%w[spec ** *_spec.rb])]
64
+
65
+ if defined?(Spec)
66
+ desc %Q{Run specs for "#{NAME}".}
67
+ Spec::Rake::SpecTask.new do |t|
68
+ t.spec_files = SPEC_FILES
69
+ t.spec_opts = ['-c']
70
+ end
71
+
72
+ desc %Q{Generate code coverage for "#{NAME}".}
73
+ Spec::Rake::SpecTask.new(:coverage) do |t|
74
+ t.spec_files = SPEC_FILES
75
+ t.rcov = true
76
+ t.rcov_opts = ['--exclude', 'spec,/var/lib/gems']
77
+ end
60
78
  end
@@ -1,5 +1,5 @@
1
1
  # coding: utf-8
2
- require File.dirname(__FILE__) + '/spec_helper'
2
+ require File.join(File.dirname(__FILE__), *%w[spec_helper])
3
3
 
4
4
  require 'rubygems'
5
5
  gem 'actionmailer', '>= 1.0.0'
@@ -1,5 +1,5 @@
1
1
  # coding: utf-8
2
- $: << File.dirname(__FILE__) + '/../lib'
2
+ $: << File.expand_path(File.join(File.dirname(__FILE__), *%w[.. lib]))
3
3
 
4
4
  require 'rubygems'
5
5
  require 'spec'
metadata CHANGED
@@ -1,18 +1,47 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grimen-delayed_job_mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anderson Dias
8
- autorequire:
8
+ autorequire: grimen-delayed_job_mailer
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-11 00:00:00 -07:00
12
+ date: 2009-11-23 00:00:00 +01:00
13
13
  default_executable:
14
- dependencies: []
15
-
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: actionmailer
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.2.3
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: activesupport
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 1.2.3
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: rspec-rails
37
+ type: :development
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 1.2.6
44
+ version:
16
45
  description: Send emails asynchronously using delayed_job.
17
46
  email: andersondaraujo@gmail.com
18
47
  executables: []
@@ -24,16 +53,19 @@ extra_rdoc_files:
24
53
  - README
25
54
  - Rakefile
26
55
  - lib/delayed_job_mailer.rb
27
- - rails/init.rb
56
+ - spec/delayed_job_mailer_spec.rb
57
+ - spec/spec_helper.rb
28
58
  files:
29
59
  - MIT-LICENSE
30
60
  - README
31
61
  - Rakefile
32
62
  - lib/delayed_job_mailer.rb
33
- - rails/init.rb
34
- has_rdoc: false
35
- homepage: http://github.com/andersondias/delayed_job_mailer
36
- licenses:
63
+ - spec/delayed_job_mailer_spec.rb
64
+ - spec/spec_helper.rb
65
+ has_rdoc: true
66
+ homepage: http://github.com/grimen/grimen-delayed_job_mailer
67
+ licenses: []
68
+
37
69
  post_install_message:
38
70
  rdoc_options:
39
71
  - --charset=UTF-8
@@ -1,2 +0,0 @@
1
- # coding: utf-8
2
- require File.expand_path(File.join(File.dirname(__FILE__), *%w(.. lib delayed_job_mailer)))