Permalink
Browse files

Rollback to earlier approach to including other libs.

  • Loading branch information...
1 parent c8eae9f commit 957b3685e6789b1f6b8319ff6fe1483578674fff @dchelimsky dchelimsky committed Feb 5, 2011
Showing with 7 additions and 4 deletions.
  1. +7 −4 Gemfile
View
@@ -1,10 +1,13 @@
source "http://rubygems.org"
### rspec libs
-gem "rspec-core", :path => "."
-%w[rspec-expectations rspec-mocks].each do |dependency|
- path = "../#{dependency}"
- gem dependency, :path => (path if File.exist?(path))
+%w[rspec-core rspec-expectations rspec-mocks].each do |lib|
+ library_path = File.expand_path("../../#{lib}", __FILE__)
+ if File.exist?(library_path)
+ gem lib, :path => library_path
+ else
+ gem lib
+ end
end
### dev dependencies

0 comments on commit 957b368

Please sign in to comment.