summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands/specification_command.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-03-16 10:46:45 +0900
committerHiroshi SHIBATA <[email protected]>2023-03-17 18:50:55 +0900
commit05208c3875a12a188e14328ffbd5b2eb21824f24 (patch)
tree659dc072793f13810edd33ab818b2eeb6d994e77 /lib/rubygems/commands/specification_command.rb
parent7ab4ede4f5ec23d9eac6868176d99ad63df46978 (diff)
[rubygems/rubygems] util/rubocop -A --only Lint/UnusedBlockArgument
https://github.com/rubygems/rubygems/commit/d8efd919db
Diffstat (limited to 'lib/rubygems/commands/specification_command.rb')
-rw-r--r--lib/rubygems/commands/specification_command.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rubygems/commands/specification_command.rb b/lib/rubygems/commands/specification_command.rb
index 0bb24c2415..5cdf5966d2 100644
--- a/lib/rubygems/commands/specification_command.rb
+++ b/lib/rubygems/commands/specification_command.rb
@@ -20,19 +20,19 @@ class Gem::Commands::SpecificationCommand < Gem::Command
add_prerelease_option
add_option("--all", "Output specifications for all versions of",
- "the gem") do |value, options|
+ "the gem") do |_value, options|
options[:all] = true
end
- add_option("--ruby", "Output ruby format") do |value, options|
+ add_option("--ruby", "Output ruby format") do |_value, options|
options[:format] = :ruby
end
- add_option("--yaml", "Output YAML format") do |value, options|
+ add_option("--yaml", "Output YAML format") do |_value, options|
options[:format] = :yaml
end
- add_option("--marshal", "Output Marshal format") do |value, options|
+ add_option("--marshal", "Output Marshal format") do |_value, options|
options[:format] = :marshal
end