Skip to content

Commit

Permalink
Merge "Install remote gem before vendoring"
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhoo authored and Gerrit Code Review committed Jun 29, 2012
2 parents dd44cea + ff32f00 commit 3d65834
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Rakefile
Expand Up @@ -60,7 +60,6 @@ namespace "bundler" do
else
if File.directory? gname
Dir.chdir(gname) { yield if block_given? }
`mv #{File.join(gname,gname)}*.gem .`
else
abort
end
Expand All @@ -69,13 +68,12 @@ namespace "bundler" do
end

exec_in_gem_dir(working_dir, gem_name) do
`git fetch #{repo} #{refspec} && git checkout FETCH_HEAD && gem build #{gem_name}.gemspec`
`git fetch #{repo} #{refspec} && git checkout FETCH_HEAD && gem build #{gem_name}.gemspec && gem install #{gem_name}*.gem`
end

exec_in_svc_dir do |dir|
`cp #{File.join(working_dir, "#{gem_name}*.gem")} vendor/cache`
prune_git('Gemfile', gem_name)
sh 'bundle install --local'
sh 'bundle install'
end

FileUtils.rm_rf(working_dir)
Expand Down

0 comments on commit 3d65834

Please sign in to comment.