Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename repository to bundle in sources

  • Loading branch information...
commit 028d412a6dec4a7c4d2e525cd123db6e75b1370b 1 parent 12c740f
Carlhuda authored
Showing with 6 additions and 6 deletions.
  1. +2 −2 lib/bundler/bundle.rb
  2. +4 −4 lib/bundler/source.rb
View
4 lib/bundler/bundle.rb
@@ -33,7 +33,7 @@ def install(options = {})
# TODO: clean this up
sources.each do |s|
- s.repository = self
+ s.bundle = self
s.local = options[:cached]
end
@@ -88,7 +88,7 @@ def prune(options = {})
dependencies, sources = @environment.gem_dependencies, @environment.sources
sources.each do |s|
- s.repository = self
+ s.bundle = self
s.local = true
end
View
8 lib/bundler/source.rb
@@ -4,7 +4,7 @@ class GitSourceError < StandardError ; end
# Represents a source of rubygems. Initially, this is only gem repositories, but
# eventually, this will be git, svn, HTTP
class Source
- attr_accessor :repository, :local
+ attr_accessor :bundle, :local
def initialize(options) ; end
@@ -50,7 +50,7 @@ class RubygemsRetardation < StandardError; end
def download(spec)
Bundler.logger.info "Downloading #{spec.full_name}.gem"
- destination = repository.path
+ destination = bundle.path
unless destination.writable?
raise RubygemsRetardation, "destination: #{destination} is not writable"
@@ -125,7 +125,7 @@ def to_s
def download(spec)
gemfile = Pathname.new(spec.loaded_from)
gemfile = gemfile.dirname.join('..', 'cache', "#{spec.full_name}.gem")
- repository.cache(gemfile)
+ bundle.cache(gemfile)
end
private
@@ -298,7 +298,7 @@ def initialize(options)
def location
# TMP HAX to get the *.gemspec reading to work
- repository.path.join('dirs', File.basename(@uri, '.git'))
+ bundle.path.join('dirs', File.basename(@uri, '.git'))
end
def gems
Please sign in to comment.
Something went wrong with that request. Please try again.