From b4c37949dc19a383e199ff3a7992526dd36cacf7 Mon Sep 17 00:00:00 2001 From: Bob Aman Date: Wed, 5 Jan 2011 01:09:57 +0000 Subject: [PATCH] Command line client no longer checks for an exact match on the buzz scopes. git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@108 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef --- bin/google-api | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/google-api b/bin/google-api index f34ebba04..b7f2f4f24 100755 --- a/bin/google-api +++ b/bin/google-api @@ -232,8 +232,8 @@ HTML scope = options[:scope] # Special cases case scope - when "https://www.googleapis.com/auth/buzz", - "https://www.googleapis.com/auth/buzz.readonly" + when /https:\/\/www\.googleapis\.com\/auth\/buzz/, + /https:\/\/www\.googleapis\.com\/auth\/buzz\.readonly/ oauth_client.authorization_uri = 'https://www.google.com/buzz/api/auth/OAuthAuthorizeToken?' + "domain=#{oauth_client.client_credential_key}&" +