gdocs4ruby 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
1
  #=CHANGELOG
2
+ #==version 0.1.1
3
+ #* Added support for arbitrary file types (i.e. uploaded pdfs)
2
4
  #==version 0.1.0
3
5
  #* Initial Version
@@ -386,6 +386,8 @@ module GDocs4Ruby
386
386
  doc = Folder.new(service)
387
387
  when 'presentation'
388
388
  doc = Presentation.new(service)
389
+ else
390
+ doc = obj
389
391
  end
390
392
  doc.load(ele.to_s)
391
393
  doc
@@ -95,9 +95,13 @@ FOLDER_LIST_FEED = "http://docs.google.com/feeds/documents/private/full/-/folder
95
95
  doc = Spreadsheet.new(self)
96
96
  when 'presentation'
97
97
  doc = Presentation.new(self)
98
+ else
99
+ doc = BaseObject.new(self)
100
+ end
101
+ if doc
102
+ doc.load(ele.to_s)
103
+ contents << doc
98
104
  end
99
- doc.load(ele.to_s)
100
- contents << doc
101
105
  end
102
106
  return contents
103
107
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gdocs4ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Reich