Browse files

Merge pull request #18 from stympy/patch-1

Be a little more flexible in pulling out the key
  • Loading branch information...
2 parents abd8a8e + 735140c commit 3e255c9c618f477c5e0ac9d2dc6b9f05ce06d91f @gimite gimite committed May 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/google_spreadsheet.rb
View
2 lib/google_spreadsheet.rb
@@ -377,7 +377,7 @@ def initialize(session, worksheets_feed_url, title = nil) #:nodoc:
# Key of the spreadsheet.
def key
if !(@worksheets_feed_url =~
- %r{^https?://spreadsheets.google.com/feeds/worksheets/(.*)/private/full$})
+ %r{^https?://spreadsheets.google.com/feeds/worksheets/(.*)/private/(full|values)$})
raise(GoogleSpreadsheet::Error,
"worksheets feed URL is in unknown format: #{@worksheets_feed_url}")
end

0 comments on commit 3e255c9

Please sign in to comment.