aboutsummaryrefslogtreecommitdiff
path: root/vendor/supply_drop/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/supply_drop/Rakefile')
-rw-r--r--vendor/supply_drop/Rakefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/vendor/supply_drop/Rakefile b/vendor/supply_drop/Rakefile
new file mode 100644
index 0000000..666b6a4
--- /dev/null
+++ b/vendor/supply_drop/Rakefile
@@ -0,0 +1,24 @@
+require 'rake/testtask'
+
+Rake::TestTask.new do |t|
+ t.test_files = FileList['test/*_test.rb']
+end
+
+task :default => :test
+
+desc "clean"
+task :clean do
+ rm_f Dir.glob("*.gem")
+end
+
+namespace :gem do
+ desc "build the gem"
+ task :build => :clean do
+ sh "gem build supply_drop.gemspec"
+ end
+
+ desc "push the gem"
+ task :push => :build do
+ sh "gem push #{Dir.glob("*.gem").first}"
+ end
+end