aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/definition.rb
diff options
context:
space:
mode:
authorErick Sasse <esasse@gmail.com>2015-07-17 22:55:44 -0300
committerErick Sasse <esasse@gmail.com>2015-07-19 11:50:38 -0300
commit48d2dc5aa17b3f81905daad87e0b79131dd0d2b8 (patch)
tree21a9b07b71a1ce5093afc96c44b8f84a40f0fce6 /lib/bundler/definition.rb
parent77c9dd8fbe602c05040d7f2df3ff7decb08eb53e (diff)
downloadbundler-48d2dc5aa17b3f81905daad87e0b79131dd0d2b8.tar.gz
Fix Style/SpaceAfterComma
Diffstat (limited to 'lib/bundler/definition.rb')
-rw-r--r--lib/bundler/definition.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb
index 7ebad15e..3abbd3c8 100644
--- a/lib/bundler/definition.rb
+++ b/lib/bundler/definition.rb
@@ -364,9 +364,9 @@ module Bundler
deleted.concat deleted_deps.map {|d| "* #{pretty_dep(d)}" }
end
- both_sources = Hash.new {|h,k| h[k] = [] }
- @dependencies.each {|d| both_sources[d.name][0] = d }
- @locked_deps.each {|d| both_sources[d.name][1] = d.source }
+ both_sources = Hash.new { |h, k| h[k] = [] }
+ @dependencies.each { |d| both_sources[d.name][0] = d }
+ @locked_deps.each { |d| both_sources[d.name][1] = d.source }
both_sources.each do |name, (dep, lock_source)|
if (dep.nil? && !lock_source.nil?) || (!dep.nil? && !lock_source.nil? && !lock_source.can_lock?(dep))
@@ -454,8 +454,8 @@ module Bundler
def converge_locals
locals = []
- Bundler.settings.local_overrides.map do |k,v|
- spec = @dependencies.find {|s| s.name == k }
+ Bundler.settings.local_overrides.map do |k, v|
+ spec = @dependencies.find { |s| s.name == k }
source = spec && spec.source
if source && source.respond_to?(:local_override!)
source.unlock! if @unlock[:gems].include?(spec.name)