From 820ebb2a9297a33452260a07c7ef2c96cedf4ed7 Mon Sep 17 00:00:00 2001 From: Jacob Evelyn Date: Thu, 16 May 2019 09:12:28 -0400 Subject: [PATCH] Pin RuboCop version for Travis tests --- .travis.yml | 2 +- friends.gemspec | 2 +- lib/friends/introvert.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index abb136c..df11172 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ matrix: - rvm: 2.6 script: - bundle exec rake test - - gem install --no-document rubocop && rubocop + - gem install --no-document rubocop -v 0.67 && rubocop env: - CODE_COVERAGE=true branches: diff --git a/friends.gemspec b/friends.gemspec index 05b2119..a32a221 100644 --- a/friends.gemspec +++ b/friends.gemspec @@ -13,7 +13,7 @@ Gem::Specification.new do |spec| spec.email = ["jacobevelyn@gmail.com"] spec.summary = "Spend time with the people you care about." spec.description = "Spend time with the people you care about. "\ - "Introvert-tested. Extrovert-approved." + "Introvert-tested. Extrovert-approved." spec.homepage = "https://github.com/JacobEvelyn/friends" spec.license = "MIT" spec.post_install_message = Friends::POST_INSTALL_MESSAGE diff --git a/lib/friends/introvert.rb b/lib/friends/introvert.rb index 3bb8109..13645ac 100644 --- a/lib/friends/introvert.rb +++ b/lib/friends/introvert.rb @@ -710,8 +710,8 @@ def parse_line!(line, line_num:, state:) begin instance_variable_get("@#{stage.id}") << stage.klass.deserialize(line) - rescue => e # rubocop:disable Style/RescueStandardError - bad_line(e, line_num) + rescue => ex # rubocop:disable Style/RescueStandardError + bad_line(ex, line_num) end state