Skip to content

Commit 60963b2

Browse files
committed
Merge pull request #509 from humzashah/minor-code-improvements
replaced '.map{|_,o| o}' on hash with '.values'
2 parents f0c2166 + 9b3b6ec commit 60963b2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ end
1515
group :test do
1616
gem 'childlabor'
1717
gem 'coveralls', '>= 0.5.7'
18+
gem 'addressable', '~> 2.3.6', :platforms => [:ruby_18]
1819
gem 'webmock', '>= 1.20'
1920
gem 'mime-types', '~> 1.25', :platforms => [:jruby, :ruby_18]
2021
gem 'rspec', '>= 3'

lib/thor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def command_help(shell, command_name)
174174
shell.say "Usage:"
175175
shell.say " #{banner(command)}"
176176
shell.say
177-
class_options_help(shell, nil => command.options.map { |_, o| o })
177+
class_options_help(shell, nil => command.options.values)
178178
if command.long_description
179179
shell.say "Description:"
180180
shell.print_wrapped(command.long_description, :indent => 2)

0 commit comments

Comments
 (0)