Sha256: 5148cff005578f98379ce661bdd341d21dc1c9f0023af90f91b07d0a42e6303b

Contents?: true

Size: 1.07 KB

Versions: 3

Compression:

Stored size: 1.07 KB

Contents

# -*- 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-oauth.gemspec`
  `mkdir -p pkg`
  `mv gmail_oauth-*.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_oauth-#{Gmail.version}.gem`
end

desc "Perform installation via rubygems"
task :install => :build do
  `gem install pkg/gmail_oauth-#{Gmail.version}.gem`
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gmail_oauth-0.1.3 Rakefile
gmail_oauth-0.1.2 Rakefile
gmail_oauth-0.1.1 Rakefile