diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2017-05-03 21:04:01 +0200 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2017-05-03 22:24:51 +0200 |
commit | 2b3cb2c448f9a7ce6132d2d0423c0d1cf627a0d3 (patch) | |
tree | 33f71d71cdd0a5a92f0552a68cac4a29b6c9ac7c | |
parent | 53b38251bb0bfdb1d002b09001417e708d85e422 (diff) | |
download | rneovim-2b3cb2c448f9a7ce6132d2d0423c0d1cf627a0d3.tar.gz rneovim-2b3cb2c448f9a7ce6132d2d0423c0d1cf627a0d3.tar.bz2 rneovim-2b3cb2c448f9a7ce6132d2d0423c0d1cf627a0d3.zip |
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+.
-rw-r--r-- | runtime/autoload/provider/script_host.rb | 8 |
1 files 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 |