Sha256: 0f09769e5d7e59cb5167c5360af602b719c088259b99e503ad62d3736aa5eb8c

Contents?: true

Size: 649 Bytes

Versions: 1

Compression:

Stored size: 649 Bytes

Contents

require 'rubygems'
require 'pathname'

require 'rake'
require 'rake/testtask'
require 'rspec/core/rake_task'
require 'rubygems/package_task'
task :default   => :all_tests
task :all_tests => [:test, :spec]

Rake::TestTask.new(:test) do |t|
  $: << File.dirname(__FILE__) + '/lib'
  t.pattern = 'test/*.rb'
  #t.verbose = true
  #t.warning = true
end

RSpec::Core::RakeTask.new(:spec)

spec = Gem::Specification.load(Pathname.glob('*.gemspec').first.to_s)
Gem::PackageTask.new(spec).define

desc "Push gem to rubygems.org"
task :push => :gem do
  sh "git tag v#{Ting::VERSION}"
  sh "git push --tags"
  sh "gem push pkg/hexp-#{Ting::VERSION}.gem"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ting-0.9.0 Rakefile