summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-03-16 12:23:40 +0900
committerHiroshi SHIBATA <[email protected]>2023-03-17 18:50:55 +0900
commitf4d1f660d0c60072813fa46b0e704561ff8e20fe ()
treea897e6e65e76c734637fbe37b9a48c148975b034
parentae81ff0c9b120d1d2ee4b0d1400cf1358c81f86f (diff)
[rubygems/rubygems] util/rubocop -A --only Layout/SpaceInsideRangeLiteral
https://.com/rubygems/rubygems/commit/426dd97a31
-rw-r--r--lib/rubygems/spec_fetcher.rb6
1 files changed, 3 insertions, 3 deletions
@@ -91,9 +91,9 @@ class Gem::SpecFetcher
list.each do |source, specs|
if dependency.name.is_a?(String) && specs.respond_to?(:bsearch)
- start_index = (0 ... specs.length).bsearch {|i| specs[i].name >= dependency.name }
- end_index = (0 ... specs.length).bsearch {|i| specs[i].name > dependency.name }
- specs = specs[start_index ... end_index] if start_index && end_index
end
found[source] = specs.select do |tup|