Sha256: 1d32bb215a89e2521e8a5f00d94aade893e42d4c70c1253f397fd915c73a7a4d
Contents?: true
Size: 649 Bytes
Versions: 3
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/ting-#{Ting::VERSION}.gem" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ting-0.12.0 | Rakefile |
ting-0.11.0 | Rakefile |
ting-0.10.0 | Rakefile |