lib/fog/google/storage.rb in fog-1.15.0 vs lib/fog/google/storage.rb in fog-1.16.0
- old
+ new
@@ -142,11 +142,10 @@
def self.reset
@data = nil
end
def initialize(options={})
- require 'mime/types'
@google_storage_access_key_id = options[:google_storage_access_key_id]
end
def data
self.class.data[@google_storage_access_key_id]
@@ -160,11 +159,11 @@
"foo"
end
end
-
+
class Real
include Utils
# Initialize connection to Google Storage
#
@@ -183,10 +182,9 @@
#
# ==== Returns
# * Storage object with connection to google.
def initialize(options={})
require 'fog/core/parser'
- require 'mime/types'
@google_storage_access_key_id = options[:google_storage_access_key_id]
@google_storage_secret_access_key = options[:google_storage_secret_access_key]
@connection_options = options[:connection_options] || {}
@hmac = Fog::HMAC.new('sha1', @google_storage_secret_access_key)