From d1fe3c2277958e80269936d2bf053efaa47c9bb9 Mon Sep 17 00:00:00 2001 From: Sergio Gomes Date: Tue, 6 Aug 2013 18:46:11 +0100 Subject: [PATCH] Small fixes to client secrets: - Load automatically with a "require 'google/api_client'" - Allow for signet >= 0.4.0 --- lib/google/api_client.rb | 1 + lib/google/api_client/client_secrets.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/google/api_client.rb b/lib/google/api_client.rb index f3d1f521a..7a87e9fbc 100644 --- a/lib/google/api_client.rb +++ b/lib/google/api_client.rb @@ -31,6 +31,7 @@ require 'google/api_client/media' require 'google/api_client/service_account' require 'google/api_client/batch' require 'google/api_client/gzip' +require 'google/api_client/client_secrets' require 'google/api_client/railtie' if defined?(Rails::Railtie) module Google diff --git a/lib/google/api_client/client_secrets.rb b/lib/google/api_client/client_secrets.rb index 73968081b..93b0046a8 100644 --- a/lib/google/api_client/client_secrets.rb +++ b/lib/google/api_client/client_secrets.rb @@ -146,7 +146,7 @@ module Google end def to_authorization - gem 'signet', '~> 0.4.0' + gem 'signet', '>= 0.4.0' require 'signet/oauth_2/client' # NOTE: Do not rely on this default value, as it may change new_authorization = Signet::OAuth2::Client.new