From 2b3cb2c448f9a7ce6132d2d0423c0d1cf627a0d3 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Wed, 3 May 2017 21:04:01 +0200 Subject: Make script_host.rb rubocop-clean Fix the following issues according to rubocop: runtime/autoload/provider/script_host.rb:2:11: C: Prefer single-quoted strings when you don't need string interpolation or special symbols. require "neovim/ruby_provider" ^^^^^^^^^^^^^^^^^^^^^^ runtime/autoload/provider/script_host.rb:5:5: C: Prefer single-quoted strings when you don't need string interpolation or special symbols. "Your neovim RubyGem is missing or out of date. " + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ runtime/autoload/provider/script_host.rb:5:55: C: Use \ instead of + or << to concatenate those strings. "Your neovim RubyGem is missing or out of date. " + runtime/autoload/provider/script_host.rb:6:5: C: Prefer single-quoted strings when you don't need string interpolation or special symbols. "Install the latest version using `gem install neovim`." ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This commit assumes Ruby 2.0.0+. --- runtime/autoload/provider/script_host.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/runtime/autoload/provider/script_host.rb b/runtime/autoload/provider/script_host.rb index 1dade766c7..a1c58bde85 100644 --- a/runtime/autoload/provider/script_host.rb +++ b/runtime/autoload/provider/script_host.rb @@ -1,8 +1,6 @@ begin - require "neovim/ruby_provider" + require 'neovim/ruby_provider' rescue LoadError - warn( - "Your neovim RubyGem is missing or out of date. " + - "Install the latest version using `gem install neovim`." - ) + warn('Your neovim RubyGem is missing or out of date.', + 'Install the latest version using `gem install neovim`.') end -- cgit