Skip to content

Commit

Permalink
Add task to install dev build locally
Browse files Browse the repository at this point in the history
  • Loading branch information
lance committed Apr 23, 2012
1 parent 495870f commit ec8ab5d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ require 'bundler/setup'
require 'rspec/core/rake_task'
require 'awestruct/version'

GEMFILE = "awestruct-#{Awestruct::VERSION}.gem"

task :default => :build

if !defined?(RSpec)
Expand All @@ -22,5 +24,10 @@ end

desc "Release the gem to rubygems"
task :release => :build do
system "gem push awestruct-#{Awestruct::VERSION}.gem"
system "gem push #{GEMFILE}"
end

desc "Build and install the gem locally (for testing)"
task :install => :build do
system "gem install -l -f #{GEMFILE}"
end
1 change: 1 addition & 0 deletions awestruct.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ spec = Gem::Specification.new do |s|
s.add_dependency 'json', '~> 1.6.6'
s.add_dependency 'notifier', '~> 0.1.4'
s.add_dependency 'git', '~> 1.2.5'
s.add_dependency 'sprockets', '~> 2.4.0'

s.add_development_dependency 'rspec', '~> 2.9'
s.add_development_dependency 'rake', '~> 0.9.2'
Expand Down

0 comments on commit ec8ab5d

Please sign in to comment.