Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (38 sloc) 1.074 kb
# -*- ruby -*-
$:.unshift(File.expand_path('../lib', __FILE__))
require 'gmail/version'
require 'rspec/core/rake_task'
require 'rake/rdoctask'
RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = 'spec/**/*_spec.rb'
t.rspec_opts = %q[-c -b]
end
RSpec::Core::RakeTask.new(:rcov) do |t|
t.rcov = true
t.rspec_opts = %q[-c -b]
t.rcov_opts = %q[-T -x "spec"]
end
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "Gmail #{Gmail.version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
task :default => :spec
desc "Build current version as a rubygem"
task :build do
`gem build gmail.gemspec`
`mkdir -p pkg`
`mv gmail-*.gem pkg/`
end
desc "Relase current version to rubygems.org"
task :release => :build do
`git tag -am "Version bump to #{Gmail.version}" v#{Gmail.version}`
`git push origin master`
`git push origin master --tags`
`gem push pkg/gmail-#{Gmail.version}.gem`
end
desc "Perform installation via rubygems"
task :install => :build do
`gem install pkg/gmail-#{Gmail.version}.gem`
end
Jump to Line
Something went wrong with that request. Please try again.