From 2ccab7b59323a75aeb329abdd1d600bb7d4072dd Mon Sep 17 00:00:00 2001 From: Bob Aman Date: Thu, 24 May 2012 15:29:58 +0300 Subject: [PATCH] Moving require so that client only gets loaded if the task requires it. --- tasks/wiki.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/wiki.rake b/tasks/wiki.rake index 4e7f2aca8..12bfe4bf0 100644 --- a/tasks/wiki.rake +++ b/tasks/wiki.rake @@ -1,4 +1,3 @@ -require 'google/api_client' require 'rake' require 'rake/clean' @@ -18,6 +17,7 @@ the following Google APIs. WIKI preferred_apis = {} + require 'google/api_client' client = Google::APIClient.new for api in client.discovered_apis if !preferred_apis.has_key?(api.name)