Sha256: de7f841dfa9b2242c0acb2b3dbe8bd099c0d0ace7004fa0729dda0cdfdcbe7cb

Contents?: true

Size: 1.67 KB

Versions: 1

Compression:

Stored size: 1.67 KB

Contents

require 'rubygems'
require 'rake'

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gem|
    gem.name = "gmail-client"
    gem.summary = %Q{A client to use GMail for sending email.}
    gem.email = "alexmchale@gmail.com"
    gem.homepage = "http://github.com/alexmchale/gmail-client"
    gem.authors = ["Alex McHale"]
    # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
  end
rescue LoadError
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
end

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = 'gmail-client'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README*')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.libs << 'lib' << 'test'
  test.pattern = 'test/**/*_test.rb'
  test.verbose = false
end

begin
  require 'rcov/rcovtask'
  Rcov::RcovTask.new do |test|
    test.libs << 'test'
    test.pattern = 'test/**/*_test.rb'
    test.verbose = true
  end
rescue LoadError
  task :rcov do
    abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
  end
end

task :verify_committed do
  abort "This project has not been fully committed." unless `git status | grep "nothing to commit"` != ''
end

task :patch => [ :verify_committed, :test, "version:bump:patch", :release, :build, :install ]
task :minor => [ :verify_committed, :test, "version:bump:minor", :release, :build, :install ]
task :major => [ :verify_committed, :test, "version:bump:major", :release, :build, :install ]

task :default => :test

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alexmchale-gmail-client-0.3.0 Rakefile