dragonfly-cloudinary 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 Dragonfly
2
2
  module Cloudinary
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -4,17 +4,17 @@ module Dragonfly
4
4
  module DataStorage
5
5
  class CloudinaryStore
6
6
  def store(temp_object, opts={})
7
- result = Cloudinary::Uploader.upload(temp_object.path, format: 'jpg')
7
+ result = ::Cloudinary::Uploader.upload(temp_object.path, format: 'jpg')
8
8
  result['public_id']
9
9
  end
10
10
 
11
11
  def retrieve(uid)
12
- url = Cloudinary::Utils.cloudinary_url(uid, format: 'jpg')
13
- Cloudinary::Downloader.download(url)
12
+ url = ::Cloudinary::Utils.cloudinary_url(uid, format: 'jpg')
13
+ ::Cloudinary::Downloader.download(url)
14
14
  end
15
15
 
16
16
  def destroy(uid)
17
- Cloudinary::Uploader.destroy(uid)
17
+ ::Cloudinary::Uploader.destroy(uid)
18
18
  end
19
19
  end
20
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dragonfly-cloudinary
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:
@@ -89,7 +89,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
89
  version: '0'
90
90
  segments:
91
91
  - 0
92
- hash: -698384497
92
+ hash: -202542125
93
93
  required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  segments:
100
100
  - 0
101
- hash: -698384497
101
+ hash: -202542125
102
102
  requirements: []
103
103
  rubyforge_project:
104
104
  rubygems_version: 1.8.24