Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added Rakefile for easy pushing

  • Loading branch information...
commit 737db3f8df4950e7aef651fd0b96df3fd5b6d3dd 1 parent 4e6e1e1
@seejohnrun seejohnrun authored
Showing with 19 additions and 0 deletions.
  1. +19 −0 Rakefile
View
19 Rakefile
@@ -0,0 +1,19 @@
+require 'rspec/core/rake_task'
+require File.dirname(__FILE__) + '/lib/argh/version'
+
+task :build => :test do
+ system "gem build argh.gemspec"
+end
+
+task :release => :build do
+ # tag and push
+ system "git tag v#{Argh::VERSION}"
+ system "git push origin --tags"
+ # push the gem
+ system "gem push argh-#{Argh::VERSION}.gem"
+end
+
+RSpec::Core::RakeTask.new(:test) do |t|
+ t.pattern = 'spec/**/*_spec.rb'
+ fail_on_error = true # be explicit
+end
Please sign in to comment.
Something went wrong with that request. Please try again.