mirror of
https://github.com/ViViDboarder/abuse-the-force.git
synced 2024-11-23 14:36:27 +00:00
Add gem build and install to Rakefile
Now install with: rake install
This commit is contained in:
parent
09068f2607
commit
c14df49aec
@ -72,6 +72,13 @@ Must have ruby 1.9 and gem installed
|
|||||||
|
|
||||||
git clone git://github.com/ViViDboarder/abuse-the-force.git
|
git clone git://github.com/ViViDboarder/abuse-the-force.git
|
||||||
cd abuse-the-force
|
cd abuse-the-force
|
||||||
|
|
||||||
|
If you have Rake
|
||||||
|
|
||||||
|
rake install
|
||||||
|
|
||||||
|
Or you can do it with `gem`
|
||||||
|
|
||||||
gem build abusetheforce.gemspec
|
gem build abusetheforce.gemspec
|
||||||
gem install abusetheforce-X.X.X.gem # make sure the proper version is present
|
gem install abusetheforce-X.X.X.gem # make sure the proper version is present
|
||||||
|
|
||||||
|
14
Rakefile
14
Rakefile
@ -1,8 +1,18 @@
|
|||||||
|
$:.push File.expand_path('../lib', __FILE__)
|
||||||
require 'rake/testtask'
|
require 'rake/testtask'
|
||||||
|
require 'abusetheforce/version'
|
||||||
|
|
||||||
Rake::TestTask.new do |t|
|
Rake::TestTask.new do |t|
|
||||||
t.libs << 'test'
|
t.libs << 'test'
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Run tests"
|
task :default => :build
|
||||||
task :default => :test
|
|
||||||
|
desc "Build the gem"
|
||||||
|
task :build do
|
||||||
|
system "gem build abusetheforce.gemspec"
|
||||||
|
end
|
||||||
|
|
||||||
|
task :install => [:build] do
|
||||||
|
system "gem install abusetheforce-#{AbuseTheForce::VERSION}.gem"
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user