lib/datapimp/sources/google_spreadsheet.rb in datapimp-1.2.8 vs lib/datapimp/sources/google_spreadsheet.rb in datapimp-1.2.9

- old
+ new

@@ -7,10 +7,10 @@ :name def initialize name, options={} @options = options - if name.is_a?(GoogleDrive::Spreadsheet) + if defined?(::GoogleDrive) && name.is_a?(GoogleDrive::Spreadsheet) @spreadsheet = name @name = @spreadsheet.title @key = @spreadsheet.key end