Skip to content

Commit

Permalink
Better way of conditionally running bundle install
Browse files Browse the repository at this point in the history
  • Loading branch information
glv committed Mar 16, 2010
1 parent b022c8e commit 2def45c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
4 changes: 0 additions & 4 deletions Gemfile
Original file line number Original file line Diff line number Diff line change
@@ -1,7 +1,3 @@
source :gemcutter

# path File.expand_path('../vendor/gems', __FILE__)

gem 'rspec', '>= 2.0.0.beta.3' gem 'rspec', '>= 2.0.0.beta.3'


group :test do group :test do
Expand Down
7 changes: 3 additions & 4 deletions Gemfile.lock
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ specs:
version: 1.2.3 version: 1.2.3
- rspec-mocks: - rspec-mocks:
version: 2.0.0.beta.3 version: 2.0.0.beta.3
hash: 52c8426bd6633bf8e04b51a60c771b9cdce632ef hash: 1dad17200ea062bfc31bce785603f49c9a6ccf6c
sources: sources: []
- Rubygems:
uri: http://gemcutter.org
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ def rcr?
ENV['RUN_CODE_RUN'] == 'true' ENV['RUN_CODE_RUN'] == 'true'
end end


system("bundle install --disable-shared-gems") if rcr? system("bundle check || bundle install --disable-shared-gems")


begin begin
# Try to require the preresolved locked set of gems. # Try to require the preresolved locked set of gems.
Expand Down
Binary file added vendor/cache/rake-0.8.7.gem
Binary file not shown.

0 comments on commit 2def45c

Please sign in to comment.