carrierwave-google_drive 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  module Carrierwave
2
2
  module GoogleDrive
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -1,5 +1,6 @@
1
1
  # encoding: utf-8
2
2
  require "google_drive"
3
+ require "open-uri"
3
4
 
4
5
  module CarrierWave
5
6
  module Storage
@@ -59,6 +60,10 @@ module CarrierWave
59
60
  "https://docs.google.com/uc?&id=#{@resource_id}"
60
61
  end
61
62
 
63
+ def read
64
+ open(url).read
65
+ end
66
+
62
67
  private
63
68
  def file
64
69
  @file || begin
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierwave-google_drive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: