Fix Rubocop errors (#214)
* Fix for google-style 0.3.0 change to Style/WordArray. * Update google-style dependency to 0.3.
This commit is contained in:
parent
f6e8355edd
commit
63381e4d9c
2
Gemfile
2
Gemfile
|
@ -8,7 +8,7 @@ group :development do
|
||||||
gem "coveralls", "~> 0.7"
|
gem "coveralls", "~> 0.7"
|
||||||
gem "fakefs", "~> 0.6"
|
gem "fakefs", "~> 0.6"
|
||||||
gem "fakeredis", "~> 0.5"
|
gem "fakeredis", "~> 0.5"
|
||||||
gem "google-style", "~> 0.2"
|
gem "google-style", "~> 0.3"
|
||||||
gem "logging", "~> 2.0"
|
gem "logging", "~> 2.0"
|
||||||
gem "rack-test", "~> 0.6"
|
gem "rack-test", "~> 0.6"
|
||||||
gem "rake", "~> 10.0"
|
gem "rake", "~> 10.0"
|
||||||
|
|
|
@ -79,7 +79,7 @@ module Google
|
||||||
# JSON key.
|
# JSON key.
|
||||||
def self.read_json_key json_key_io
|
def self.read_json_key json_key_io
|
||||||
json_key = MultiJson.load json_key_io.read
|
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|
|
wanted.each do |key|
|
||||||
raise "the json is missing the #{key} field" unless json_key.key? key
|
raise "the json is missing the #{key} field" unless json_key.key? key
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue