lib/bundler/definition.rb in bundler-1.6.0.rc2 vs lib/bundler/definition.rb in bundler-1.6.0
- old
+ new
@@ -436,11 +436,11 @@
locals << [ source, source.local_override!(v) ]
end
end
locals.any? do |source, changed|
- changed || specs_changed?(source) { |o| source.class === o.class && source.uri == o.uri }
+ changed || specs_changed?(source) { |o| source.class == o.class && source.uri == o.uri }
end
end
def converge_paths
@sources.any? do |source|
@@ -453,13 +453,13 @@
def converge_sources
changes = false
# Get the Rubygems source from the Gemfile.lock
- locked_gem = @locked_sources.find { |s| Source::Rubygems === s }
+ locked_gem = @locked_sources.find { |s| s.kind_of?(Source::Rubygems) }
# Get the Rubygems source from the Gemfile
- actual_gem = @sources.find { |s| Source::Rubygems === s }
+ actual_gem = @sources.find { |s| s.kind_of?(Source::Rubygems) }
# If there is a Rubygems source in both
if locked_gem && actual_gem
# Merge the remotes from the Gemfile into the Gemfile.lock
changes = changes | locked_gem.replace_remotes(actual_gem)