Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 59 lines (51 sloc) 1.671 kB
10a8e57 @stephenb Initial commit to sendgrid.
authored
1 require 'rubygems'
2 require 'rake'
3
4 begin
5 require 'jeweler'
6 Jeweler::Tasks.new do |gem|
7 gem.name = "sendgrid"
c18d0e6 @stephenb this thing should be pretty effing close to working now.
authored
8 gem.summary = %Q{A gem that allows simple integration of ActionMailer with SendGrid (http://sendgrid.com)}
9 gem.description = %Q{This gem allows simple integration between ActionMailer and SendGrid.
10 SendGrid is an email deliverability API that is affordable and has lots of bells and whistles.}
10a8e57 @stephenb Initial commit to sendgrid.
authored
11 gem.email = "stephenrb@gmail.com"
12 gem.homepage = "http://github.com/stephenb/sendgrid"
13 gem.authors = ["Stephen Blankenship"]
bad5afa @stephenb Updated to support Rails 3's ActionMailer
authored
14 gem.add_dependency "json"
10a8e57 @stephenb Initial commit to sendgrid.
authored
15 # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16 end
17 Jeweler::GemcutterTasks.new
18 rescue LoadError
19 puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
20 end
21
22 require 'rake/testtask'
23 Rake::TestTask.new(:test) do |test|
24 test.libs << 'lib' << 'test'
25 test.pattern = 'test/**/*_test.rb'
26 test.verbose = true
27 end
28
29 begin
30 require 'rcov/rcovtask'
31 Rcov::RcovTask.new do |test|
32 test.libs << 'test'
33 test.pattern = 'test/**/*_test.rb'
34 test.verbose = true
35 end
36 rescue LoadError
37 task :rcov do
38 abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
39 end
40 end
41
42 task :test => :check_dependencies
43
44 task :default => :test
45
46 require 'rake/rdoctask'
47 Rake::RDocTask.new do |rdoc|
48 if File.exist?('VERSION')
49 version = File.read('VERSION')
50 else
51 version = ""
52 end
53
54 rdoc.rdoc_dir = 'rdoc'
55 rdoc.title = "sendgrid #{version}"
56 rdoc.rdoc_files.include('README*')
57 rdoc.rdoc_files.include('lib/**/*.rb')
58 end
Something went wrong with that request. Please try again.