summaryrefslogtreecommitdiff
path: root/lib/bundler/index.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-07-18 16:42:16 -0600
committerAndre Arko <andre@arko.net>2015-07-18 16:44:56 -0600
commit14a7eb25ee03c9fb4ecf3e4c6b1f44a8267a413a (patch)
tree080c4590629671f0bf0fc23225b9b4b5e5e16e95 /lib/bundler/index.rb
parent6537566d7179d3aee3451ece710cbe79ced95d4c (diff)
downloadbundler-14a7eb25ee03c9fb4ecf3e4c6b1f44a8267a413a.tar.gz
Fix Style/SpaceInsideBlockBraces
closes #3850
Diffstat (limited to 'lib/bundler/index.rb')
-rw-r--r--lib/bundler/index.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/bundler/index.rb b/lib/bundler/index.rb
index 5091d0a18d..9385ff1227 100644
--- a/lib/bundler/index.rb
+++ b/lib/bundler/index.rb
@@ -16,16 +16,16 @@ module Bundler
def initialize
@sources = []
@cache = {}
- @specs = Hash.new { |h,k| h[k] = Hash.new }
- @all_specs = Hash.new { |h,k| h[k] = [] }
+ @specs = Hash.new {|h,k| h[k] = Hash.new }
+ @all_specs = Hash.new {|h,k| h[k] = [] }
end
def initialize_copy(o)
super
@sources = @sources.dup
@cache = {}
- @specs = Hash.new { |h,k| h[k] = Hash.new }
- @all_specs = Hash.new { |h,k| h[k] = [] }
+ @specs = Hash.new {|h,k| h[k] = Hash.new }
+ @all_specs = Hash.new {|h,k| h[k] = [] }
o.specs.each do |name, hash|
@specs[name] = hash.dup
@@ -56,7 +56,7 @@ module Bundler
# about, returning all of the results.
def search(query, base = nil)
results = local_search(query, base)
- seen = Set.new(results.map { |spec| [spec.name, spec.version, spec.platform] })
+ seen = Set.new(results.map {|spec| [spec.name, spec.version, spec.platform] })
@sources.each do |source|
source.search(query, base).each do |spec|
@@ -165,7 +165,7 @@ module Bundler
only_prerelease = specs.all? {|spec| spec.version.prerelease? }
unless wants_prerelease || only_prerelease
- found.reject! { |spec| spec.version.prerelease? }
+ found.reject! {|spec| spec.version.prerelease? }
end
found