Skip to content
Browse files

Allow use of local repositories or gems for Bundler deps

  • Loading branch information...
1 parent 602d744 commit 732be07903414e6a96dfe83cd44f49d0af52e5bd @spicycode spicycode committed
Showing with 6 additions and 1 deletion.
  1. +6 −1 Gemfile
View
7 Gemfile
@@ -1,7 +1,12 @@
source "http://rubygems.org"
%w[rspec-core rspec-expectations rspec-mocks].each do |lib|
- gem lib, :path => File.expand_path("../../#{lib}", __FILE__)
+ library_path = File.expand_path("../../#{lib}", __FILE__)
+ if File.exist?(library_path)
+ gem lib, :path => library_path
+ else
+ gem lib
+ end
end
gem "rake"

0 comments on commit 732be07

Please sign in to comment.
Something went wrong with that request. Please try again.