From bb7800cf7721d5ecc833121ab73fc0a894eec7c6 Mon Sep 17 00:00:00 2001 From: Andre Richter Date: Sun, 8 Nov 2020 23:50:20 +0100 Subject: [PATCH] Update rubocop version --- Gemfile | 2 +- utils/devtool.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 74f76ccc..1d0293f3 100644 --- a/Gemfile +++ b/Gemfile @@ -10,5 +10,5 @@ group :uart do end group :development do - gem 'rubocop', '>= 0.90.0', require: false + gem 'rubocop', '>= 1.2.0', require: false end diff --git a/utils/devtool.rb b/utils/devtool.rb index 9a4952ca..fed35763 100755 --- a/utils/devtool.rb +++ b/utils/devtool.rb @@ -292,11 +292,11 @@ tool = DevTool.new cmd = ARGV[0] commands = tool.public_methods(false).sort -if !commands.include?(cmd&.to_sym) +if commands.include?(cmd&.to_sym) + tool.public_send(cmd) +else puts "Usage: ./#{__FILE__.split('/').last} COMMAND [optional list of folders]" puts puts 'Commands:' commands.each { |m| puts " #{m}" } -else - tool.public_send(cmd) end