aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-05-05 02:57:06 -0700
committerCarl Lerche <carllerche@mac.com>2010-05-05 02:57:06 -0700
commitfe6687403b71abaff827b85ca872368561a819c9 (patch)
treebd489273b0e7f5a2619287d27ddc86af32fe6fa8 /lib
parent37ee98cefb3cf6b45d4e97f5c4a1c8753e2833e5 (diff)
downloadbundler-fe6687403b71abaff827b85ca872368561a819c9.tar.gz
No more Definition#remote_specs
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/definition.rb8
-rw-r--r--lib/bundler/installer.rb8
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb
index 92c2df21..cdcf7ce3 100644
--- a/lib/bundler/definition.rb
+++ b/lib/bundler/definition.rb
@@ -32,12 +32,12 @@ module Bundler
end
end
- def specs
- @specs ||= resolve(:local_specs, index)
+ def resolve_remotely!
+ @specs = resolve_remote_specs
end
- def remote_specs
- @remote_specs ||= resolve_remote_specs
+ def specs
+ @specs ||= resolve(:local_specs, index)
end
def index
diff --git a/lib/bundler/installer.rb b/lib/bundler/installer.rb
index eb2ab7a0..aaf911d8 100644
--- a/lib/bundler/installer.rb
+++ b/lib/bundler/installer.rb
@@ -14,6 +14,10 @@ module Bundler
return
end
+ # Since we are installing, we can resolve the definition
+ # using remote specs
+ @definition.resolve_remotely!
+
# Ensure that BUNDLE_PATH exists
FileUtils.mkdir_p(Bundler.bundle_path)
@@ -38,9 +42,5 @@ module Bundler
lock
end
-
- def specs
- @definition.remote_specs
- end
end
end