Rakefile in whoop-1.0.0 vs Rakefile in whoop-1.0.1
- old
+ new
@@ -2,9 +2,28 @@
require "bundler/gem_tasks"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
+GEM_NAME = "whoop"
+GEM_VERSION = Whoop::VERSION
require "standard/rake"
+require "bump/tasks"
task default: %i[spec standard]
+
+task :build do
+ system "gem build #{GEM_NAME}.gemspec"
+end
+
+task install: :build do
+ system "gem install #{GEM_NAME}-#{GEM_VERSION}.gem"
+end
+
+task publish: :build do
+ system "gem push #{GEM_NAME}-#{GEM_VERSION}.gem"
+end
+
+task :clean do
+ system "rm *.gem"
+end