summaryrefslogtreecommitdiff
path: root/test/rubygems/helper.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-16 12:57:49 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-17 18:50:55 +0900
commit5211900d37573a82c1bdf7cb2354937cc4022ae1 (patch)
tree4951c15df9b302437b4ff173fe30fb5e211bd1fb /test/rubygems/helper.rb
parentb304cf324aed40977665ddcfcec7cc992feb949b (diff)
downloadruby-5211900d37573a82c1bdf7cb2354937cc4022ae1.tar.gz
util/rubocop -A --only Style/SymbolProc
Diffstat (limited to 'test/rubygems/helper.rb')
-rw-r--r--test/rubygems/helper.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/rubygems/helper.rb b/test/rubygems/helper.rb
index cfca3d3fb2..ada24c0d10 100644
--- a/test/rubygems/helper.rb
+++ b/test/rubygems/helper.rb
@@ -1051,16 +1051,14 @@ Also, a list:
unless Gem::RemoteFetcher === @fetcher
v = Gem.marshal_version
- specs = all.map {|spec| spec.name_tuple }
+ specs = all.map(&:name_tuple)
s_zip = util_gzip Marshal.dump Gem::NameTuple.to_basic specs
- latest_specs = latest.map do |spec|
- spec.name_tuple
- end
+ latest_specs = latest.map(&:name_tuple)
l_zip = util_gzip Marshal.dump Gem::NameTuple.to_basic latest_specs
- prerelease_specs = prerelease.map {|spec| spec.name_tuple }
+ prerelease_specs = prerelease.map(&:name_tuple)
p_zip = util_gzip Marshal.dump Gem::NameTuple.to_basic prerelease_specs
@fetcher.data["#{@gem_repo}specs.#{v}.gz"] = s_zip