diff options
author | Erick Sasse <esasse@gmail.com> | 2015-07-17 22:55:44 -0300 |
---|---|---|
committer | Erick Sasse <esasse@gmail.com> | 2015-07-19 11:50:38 -0300 |
commit | 48d2dc5aa17b3f81905daad87e0b79131dd0d2b8 (patch) | |
tree | 21a9b07b71a1ce5093afc96c44b8f84a40f0fce6 /lib/bundler/definition.rb | |
parent | 77c9dd8fbe602c05040d7f2df3ff7decb08eb53e (diff) | |
download | bundler-48d2dc5aa17b3f81905daad87e0b79131dd0d2b8.tar.gz |
Fix Style/SpaceAfterComma
Diffstat (limited to 'lib/bundler/definition.rb')
-rw-r--r-- | lib/bundler/definition.rb | 10 |
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) |