From 63381e4d9c0aab4985310e92902e6983a3f56ee1 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Tue, 7 May 2019 12:13:17 -0600 Subject: [PATCH] Fix Rubocop errors (#214) * Fix for google-style 0.3.0 change to Style/WordArray. * Update google-style dependency to 0.3. --- Gemfile | 2 +- lib/googleauth/user_refresh.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 136e757..93840b8 100755 --- a/Gemfile +++ b/Gemfile @@ -8,7 +8,7 @@ group :development do gem "coveralls", "~> 0.7" gem "fakefs", "~> 0.6" gem "fakeredis", "~> 0.5" - gem "google-style", "~> 0.2" + gem "google-style", "~> 0.3" gem "logging", "~> 2.0" gem "rack-test", "~> 0.6" gem "rake", "~> 10.0" diff --git a/lib/googleauth/user_refresh.rb b/lib/googleauth/user_refresh.rb index 0fb9abc..f3c4fda 100644 --- a/lib/googleauth/user_refresh.rb +++ b/lib/googleauth/user_refresh.rb @@ -79,7 +79,7 @@ module Google # JSON key. def self.read_json_key json_key_io json_key = MultiJson.load json_key_io.read - wanted = %w[client_id client_secret refresh_token] + wanted = ["client_id", "client_secret", "refresh_token"] wanted.each do |key| raise "the json is missing the #{key} field" unless json_key.key? key end