Skip to content

Commit a471532

Browse files
committed
add task to install a gem from the local git checkout
1 parent b67eb2b commit a471532

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Rakefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
require 'rubygems'
12
require 'rspec/core/rake_task'
3+
require_relative 'lib/unitypods/version'
4+
25
RSpec::Core::RakeTask.new
36
task :default => :spec
7+
8+
desc "Build the gem"
9+
task :build do
10+
system "gem build unitypods.gemspec"
11+
end
12+
13+
desc "Build and install the gem"
14+
task :install_local => :build do
15+
system "gem install -l unitypods-#{Unitypods::VERSION}.gem"
16+
end

0 commit comments

Comments
 (0)