Sha256: fd47255fed57c1b0254ab4111e97e58a7df393106b01ea95c522b1066fc4c539
Contents?: true
Size: 1.28 KB
Versions: 1
Compression:
Stored size: 1.28 KB
Contents
lib = File.expand_path('lib', File.dirname(__FILE__)) $:.unshift lib unless $:.include?(lib) require 'rubygems' require 'rake' require 'rake/clean' require 'rake/testtask' require 'flexunit' ############################################################################# # # Standard tasks # ############################################################################# Rake::TestTask.new(:test) do |t| t.libs << "test/unit" t.test_files = FileList["test/unit/*_test.rb"] t.verbose = true end CLEAN.add '*.gem' ############################################################################# # # Packaging tasks # ############################################################################# task :release do puts "" print "Are you sure you want to relase FlexUnit #{FlexUnit::VERSION}? [y/N] " exit unless STDIN.gets.index(/y/i) == 0 unless `git branch` =~ /^\* master$/ puts "You must be on the master branch to release!" exit! end # Build gem and upload sh "gem build flexunit.gemspec" sh "gem push flexunit-#{FlexUnit::VERSION}.gem" sh "rm flexunit-#{FlexUnit::VERSION}.gem" # Commit sh "git commit --allow-empty -a -m 'v#{FlexUnit::VERSION}'" sh "git tag v#{FlexUnit::VERSION}" sh "git push origin master" sh "git push origin v#{FlexUnit::VERSION}" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flexunit-0.0.9.pre | Rakefile |