cloudinary 1.21.0 → 1.22.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbc5f576707d33b684e97610585e92838695cbd373cace7c16b0078021b46871
4
- data.tar.gz: a5fc7e5d8f0930223cb03b4ca07910ba3b8a6e8ac18b5d6028f9a8963311f8d8
3
+ metadata.gz: f4ba1d838324b0f283f26a61ae3f1a208d81883abbe181dba68c519bac3a3a08
4
+ data.tar.gz: e5e2465d95e0a5aeb5cdf340f0d6763745475dd82f9e828d8b6d39380b833fbc
5
5
  SHA512:
6
- metadata.gz: 888d693726c91cba5113ca6d4e13f89b859fc01fde5603ace994eb13a907881d4d5e84a7150501c970b1792c47286ae4a9d889f61b1e41408e25a4aea20cf11d
7
- data.tar.gz: 6a76cfcc6187c87314f1676a769b8fbfcfda08a5a22d00403f689056a680e4acb15d7360b919a2132c254295c8439e2072be74a8a2891362920f217d387d14ef
6
+ metadata.gz: 1cee80dca707cc686d4a26de17c4e1ada511d34a052c0205436f092082def7ff4defba0705ce4dad5a36bf50512dbcec5886ac09fb94e9932bcafde010b5bd78
7
+ data.tar.gz: 9c86c99dffb906973c0da80f699fcd66c8a48afc31290c6bbba40307ec20e3a9fe81a0ee25315918a556c00abcce30ad33dc0a84074a30814d219b308fcb5862
data/.travis.yml CHANGED
@@ -1,4 +1,9 @@
1
+ dist: focal
1
2
  language: ruby
3
+ rvm:
4
+ - 2.6.7
5
+ - 2.7.4
6
+ - 3.0.2
2
7
 
3
8
  matrix:
4
9
  include:
@@ -7,9 +12,9 @@ matrix:
7
12
  rvm: 1.9.3
8
13
  before_install:
9
14
  - gem install bundler -v 1.17.3
10
- - name: "Ruby 2.5.3"
15
+ - name: "Ruby 2.5.9"
11
16
  dist: xenial
12
- rvm: ruby-2.5.3
17
+ rvm: ruby-2.5.9
13
18
  before_install:
14
19
  - gem install bundler
15
20
 
@@ -17,3 +22,8 @@ before_script: >
17
22
  export CLOUDINARY_URL=$(bash tools/get_test_cloud.sh);
18
23
  echo cloud_name: "$(echo $CLOUDINARY_URL | cut -d'@' -f2)"
19
24
  script: bundle exec rspec
25
+
26
+ notifications:
27
+ email:
28
+ recipients:
29
+ - sdk_developers@cloudinary.com
data/CHANGELOG.md CHANGED
@@ -1,3 +1,26 @@
1
+ 1.22.0 / 2022-02-17
2
+ ==================
3
+
4
+ New functionality and features
5
+ ------------------------------
6
+
7
+ * Add support for OAuth authentication
8
+ * Add support for Dynamic Folder upload parameters
9
+ * Add support for `reorder_metadata_fields` Admin API
10
+ * Add support for `resources_by_asset_ids` Admin API
11
+ * Add support for `resource_by_asset_id` Admin API
12
+ * Add support for fetch url in overlay
13
+ * Add support for Ruby 3.0
14
+ * Add missing docstrings for Admin API methods
15
+
16
+ Other Changes
17
+ -------------
18
+
19
+ * Ignore `URL` in `AuthToken` generation when `ACL` is provided
20
+ * Update `README`
21
+ * Add tests for expression normalization
22
+ * Update Travis with current Ruby versions
23
+
1
24
  1.21.0 / 2021-08-23
2
25
  ==================
3
26
 
data/README.md CHANGED
@@ -1,277 +1,127 @@
1
- [![Build Status](https://travis-ci.org/cloudinary/cloudinary_gem.svg?branch=master)](https://travis-ci.org/cloudinary/cloudinary_gem)
2
- Cloudinary
3
- ==========
1
+ [![Build Status](https://app.travis-ci.com/cloudinary/cloudinary_gem.svg?branch=master)](https://app.travis-ci.com/github/cloudinary/cloudinary_gem)
2
+ [![Gem Version](https://badge.fury.io/rb/cloudinary.svg)](https://rubygems.org/gems/cloudinary)
3
+ [![Gem Version](https://badgen.net/rubygems/dt/cloudinary)](https://rubygems.org/gems/cloudinary)
4
4
 
5
- Cloudinary is a cloud service that offers a solution to a web application's entire image management pipeline.
5
+ Cloudinary Ruby on Rails SDK
6
+ ===================
6
7
 
7
- Easily upload images to the cloud. Automatically perform smart image resizing, cropping and conversion without installing any complex software. Integrate Facebook or Twitter profile image extraction in a snap, in any dimension and style to match your website’s graphics requirements. Images are seamlessly delivered through a fast CDN, and much much more.
8
+ ## About
8
9
 
9
- Cloudinary offers comprehensive APIs and administration capabilities and is easy to integrate with any web application, existing or new.
10
+ The Cloudinary Ruby on Rails SDK allows you to quickly and easily integrate your application with Cloudinary.
11
+ Effortlessly optimize, transform, upload and manage your cloud's assets.
10
12
 
11
- Cloudinary provides URL and HTTP based APIs that can be easily integrated with any Web development framework.
13
+ #### Note
12
14
 
13
- For Ruby on Rails, Cloudinary provides a GEM for simplifying the integration even further.
15
+ This Readme provides basic installation and usage information. For the complete documentation, see
16
+ the [Ruby on Rails SDK Guide](https://cloudinary.com/documentation/rails_integration).
14
17
 
15
- ## Getting started guide
16
- ![More](http://res.cloudinary.com/cloudinary/image/upload/see_more_bullet.png) **Take a look at our [Getting started guide of Ruby on Rails](https://cloudinary.com/documentation/rails_integration#getting_started_guide)**.
18
+ ## Table of Contents
17
19
 
18
- ## Setup ######################################################################
20
+ - [Key Features](#key-features)
21
+ - [Version Support](#Version-Support)
22
+ - [Installation](#installation)
23
+ - [Usage](#usage)
24
+ - [Setup](#Setup)
25
+ - [Transform and Optimize Assets](#Transform-and-Optimize-Assets)
26
+ - [CarrierWave Integration](#CarrierWave-Integration)
27
+ - [Active Storage Integration](#Active-Storage-Integration)
19
28
 
20
- ### Installing the gem
21
- To install the Cloudinary Ruby GEM, run:
29
+ ## Key Features
22
30
 
23
- $ gem install cloudinary
31
+ - [Transform](https://cloudinary.com/documentation/rails_video_manipulation#video_transformation_examples) and
32
+ [optimize](https://cloudinary.com/documentation/rails_image_manipulation#image_optimizations) assets.
33
+ - Generate [image](https://cloudinary.com/documentation/rails_image_manipulation#deliver_and_transform_images) and
34
+ [video](https://cloudinary.com/documentation/rails_video_manipulation#rails_video_transformation_code_examples) tags.
35
+ - [Asset Management](https://cloudinary.com/documentation/rails_asset_administration).
36
+ - [Secure URLs](https://cloudinary.com/documentation/video_manipulation_and_delivery#generating_secure_https_urls_using_sdks)
37
+ .
24
38
 
25
- If you use Rails 3.x or higher, edit your `Gemfile`, add the following line and run `bundle install`
39
+ ## Version Support
26
40
 
27
- gem 'cloudinary'
41
+ | SDK Version | Ruby 1.9.3 | Ruby 2.x | Ruby 3.x |
42
+ |-------------|------------|----------|----------|
43
+ | 1.x | v | v | v |
28
44
 
29
- Or in Rails 2.x, edit your `environment.rb` and add:
45
+ | SDK Version | Rails 5.x | Rails 6.x |
46
+ |-------------|-----------|-----------|
47
+ | 1.x | v | v |
30
48
 
31
- config.gem 'cloudinary'
49
+ ## Installation
32
50
 
33
- If you would like to use our optional integration module of image uploads with ActiveRecord using `CarrierWave`, install CarrierWave GEM:
34
-
35
- Rails 3.x: edit your `Gemfile` and run `bundle install`:
36
-
37
- gem 'carrierwave'
38
- gem 'cloudinary'
39
-
40
- Rails 2.x environment.rb:
41
-
42
- config.gem 'carrierwave', :version => '~> 0.4.10'
43
- config.gem 'cloudinary'
44
-
45
-
46
- *Note: The CarrierWave GEM should be loaded before the Cloudinary GEM.*
47
-
48
- ### Using the source code directly
49
-
50
- You can use the source code of this library directly instead of installing the packaged gem file.
51
-
52
- git clone https://github.com/cloudinary/cloudinary_gem.git
53
-
54
- # if you haven't installed bundler, do so now with:
55
- # gem install bundler
56
-
57
- bundle install
58
-
59
- Finally, fetch the related assets. This process is done automatically when the packaged gem is installed.
60
-
61
- rake cloudinary:fetch_assets
62
-
63
- ## Try it right away
64
-
65
- Sign up for a [free account](https://cloudinary.com/users/register/free) so you can try out image transformations and seamless image delivery through CDN.
66
-
67
- *Note: Replace `demo` in all the following examples with your Cloudinary's `cloud name`.*
68
-
69
- Accessing an uploaded image with the `sample` public ID through a CDN:
70
-
71
- http://res.cloudinary.com/demo/image/upload/sample.jpg
72
-
73
- ![Sample](https://res.cloudinary.com/demo/image/upload/w_0.4/sample.jpg "Sample")
74
-
75
- Generating a 150x100 version of the `sample` image and downloading it through a CDN:
76
-
77
- http://res.cloudinary.com/demo/image/upload/w_150,h_100,c_fill/sample.jpg
78
-
79
- ![Sample 150x100](https://res.cloudinary.com/demo/image/upload/w_150,h_100,c_fill/sample.jpg "Sample 150x100")
80
-
81
- Converting to a 150x100 PNG with rounded corners of 20 pixels:
82
-
83
- http://res.cloudinary.com/demo/image/upload/w_150,h_100,c_fill,r_20/sample.png
84
-
85
- ![Sample 150x150 Rounded PNG](https://res.cloudinary.com/demo/image/upload/w_150,h_100,c_fill,r_20/sample.png "Sample 150x150 Rounded PNG")
86
-
87
- For plenty more transformation options, see our [image transformations documentation](https://cloudinary.com/documentation/image_transformations).
88
-
89
- Generating a 120x90 thumbnail based on automatic face detection of the Facebook profile picture of Bill Clinton:
90
-
91
- http://res.cloudinary.com/demo/image/facebook/c_thumb,g_face,h_90,w_120/billclinton.jpg
92
-
93
- ![Facebook 90x120](https://res.cloudinary.com/demo/image/facebook/c_thumb,g_face,h_90,w_120/billclinton.jpg "Facebook 90x200")
94
-
95
- For more details, see our documentation for embedding [Facebook](https://cloudinary.com/documentation/facebook_profile_pictures) and [Twitter](https://cloudinary.com/documentation/twitter_profile_pictures) profile pictures.
96
-
97
-
98
- ## Usage
99
-
100
- ### Configuration
101
-
102
- Each request for building a URL of a remote cloud resource must have the `cloud_name` parameter set.
103
- Each request to our secure APIs (e.g., image uploads, eager sprite generation) must have the `api_key` and `api_secret` parameters set. See [API, URLs and access identifiers](https://cloudinary.com/documentation/api_and_access_identifiers) for more details.
104
-
105
- Setting the `cloud_name`, `api_key` and `api_secret` parameters can be done either directly in each call to a Cloudinary method or by globally setting using a YAML configuration file.
106
-
107
- Cloudinary looks for an optional file named cloudinary.yml, which should be located under the `config` directory of your Rails project.
108
- It contains settings for each of your deployment environments. You can always override the values specified in `cloudinary.yml` by passing different values in specific Cloudinary calls.
109
-
110
- You can [download your customized cloudinary.yml](https://cloudinary.com/console/cloudinary.yml) configuration file using our Management Console.
111
-
112
- Passing the parameters manually looks like this:
113
-
114
- ``` ruby
115
- auth = {
116
- cloud_name: "somename",
117
- api_key: "1234567890",
118
- api_secret: "FooBarBaz123"
119
- }
120
-
121
- Cloudinary::Uploader.upload("my_picture.jpg", auth)
51
+ ```bash
52
+ gem install cloudinary
122
53
  ```
123
54
 
55
+ # Usage
124
56
 
125
- ### Embedding and transforming images
126
-
127
- Any image uploaded to Cloudinary can be transformed and embedded using powerful view helper methods:
128
-
129
- The following example generates an image of an uploaded `sample` image while transforming it to fill a 100x150 rectangle:
130
-
131
- cl_image_tag("sample.jpg", :width => 100, :height => 150, :crop => :fill)
132
-
133
- Another example, emedding a smaller version of an uploaded image while generating a 90x90 face detection based thumbnail:
134
-
135
- cl_image_tag("woman.jpg", :width => 90, :height => 90,
136
- :crop => :thumb, :gravity => :face)
137
-
138
- You can provide either a Facebook name or a numeric ID of a Facebook profile or a fan page.
139
-
140
- Embedding a Facebook profile to match your graphic design is very simple:
57
+ ### Setup
141
58
 
142
- facebook_profile_image_tag("billclinton.jpg", :width => 90, :height => 130,
143
- :crop => :fill, :gravity => :north_west)
144
-
145
- Same goes for Twitter:
146
-
147
- twitter_name_profile_image_tag("billclinton.jpg")
148
-
149
- ![More](http://res.cloudinary.com/cloudinary/image/upload/see_more_bullet.png) **See [our documentation](https://cloudinary.com/documentation/rails_image_manipulation) for more information about displaying and transforming images in Rails**.
150
-
151
-
152
-
153
- ### Upload
154
-
155
- Assuming you have your Cloudinary configuration parameters defined (`cloud_name`, `api_key`, `api_secret`), uploading to Cloudinary is very simple.
156
-
157
- The following example uploads a local JPG to the cloud:
158
-
159
- Cloudinary::Uploader.upload("my_picture.jpg")
160
-
161
- The uploaded image is assigned a randomly generated public ID. The image is immediately available for download through a CDN:
162
-
163
- cl_image_tag("abcfrmo8zul1mafopawefg.jpg")
164
-
165
- http://res.cloudinary.com/demo/image/upload/abcfrmo8zul1mafopawefg.jpg
166
-
167
- You can also specify your own public ID:
168
-
169
- Cloudinary::Uploader.upload("http://www.example.com/image.jpg", :public_id => 'sample_remote')
170
-
171
- cl_image_tag("sample_remote.jpg")
172
-
173
- http://res.cloudinary.com/demo/image/upload/sample_remote.jpg
174
-
175
-
176
- ![More](http://res.cloudinary.com/cloudinary/image/upload/see_more_bullet.png) **See [our documentation](https://cloudinary.com/documentation/rails_image_upload) for plenty more options of uploading to the cloud from your Ruby code or directly from the browser**.
177
-
178
-
179
- ### CarrierWave Integration
180
-
181
- **Note:** Starting from version 1.1.0 the CarrierWave database format has changed to include the resource type and storage type. The new functionality
182
- is backward compatible with the previous format. To use the old format override `use_extended_identifier?` in the Uploader and return `false`.
183
-
184
- Cloudinary's Ruby GEM includes an optional plugin for [CarrierWave](https://github.com/jnicklas/carrierwave). If you already use CarrierWave, simply include `Cloudinary::CarrierWave` to switch to cloud storage and image processing in the cloud.
185
-
186
- class PictureUploader < CarrierWave::Uploader::Base
187
- include Cloudinary::CarrierWave
188
- ...
189
- end
190
-
191
- ![More](http://res.cloudinary.com/cloudinary/image/upload/see_more_bullet.png) **For more details on CarrierWave integration see [our documentation](https://cloudinary.com/documentation/rails_carrierwave)**.
192
-
193
- We also published an interesting blog post about [Ruby on Rails image uploads with CarrierWave and Cloudinary](https://cloudinary.com/blog/ruby_on_rails_image_uploads_with_carrierwave_and_cloudinary).
194
-
195
- #### Neo4j integration
196
-
197
- Starting from version 1.1.1 Cloudinary's Ruby GEM supports the use of carrierwave with Neo4j.
198
-
199
- ### JavaScript support library
200
-
201
- During the installation or update of the Cloudinary GEM, the latest Cloudinary JavaScript library is automatically fetched and bundled with the GEM.
202
-
203
- To use the JavaScript files you need to include them in your application, for example:
204
-
205
- ```
206
- <%= javascript_include_tag("jquery.ui.widget", "jquery.iframe-transport",
207
- "jquery.fileupload", "jquery.cloudinary") %>
59
+ ```ruby
60
+ require 'cloudinary'
208
61
  ```
209
62
 
210
- Alternatively, if you use Asset Pipeline, simply edit your application.js file and add the following line:
63
+ ### Transform and Optimize Assets
64
+ - [See full documentation](https://cloudinary.com/documentation/rails_image_manipulation).
211
65
 
212
- ```
213
- //= require cloudinary
66
+ ```ruby
67
+ cl_image_tag("sample.jpg", :width => 100, :height => 150, :crop => :fill)
214
68
  ```
215
69
 
216
- To automatically set-up Cloudinary's configuration, include the following line in your view or layout:
70
+ ### Upload
71
+ - [See full documentation](https://cloudinary.com/documentation/rails_image_and_video_upload).
72
+ - [Learn more about configuring your uploads with upload presets](https://cloudinary.com/documentation/upload_presets).
217
73
 
218
- ```
219
- <%= cloudinary_js_config %>
74
+ ```ruby
75
+ Cloudinary::Uploader.upload("my_picture.jpg")
220
76
  ```
221
77
 
222
- #### Uploading images from the browser
223
-
224
- The Cloudinary JavaScript library utilizes the Blueimp File Upload library to support image uploading from the browser. See the [documentation](https://cloudinary.com/documentation/jquery_image_upload) for more details.
225
-
226
- |Important|
227
- |---------|
228
- |Starting with version 2.0 of the Cloudinary JavaScript library, the Cloudinary extension to the Blueimp File Upload library is no longer initialized automatically. Instead you need to explicitly set it up as described below.|
229
-
230
- To initialize the File Upload library with Cloudinary include the following code in your page:
231
-
232
- ```javascript
233
- $(function() {
234
- if($.fn.cloudinary_fileupload !== undefined) {
235
- $("input.cloudinary-fileupload[type=file]").cloudinary_fileupload();
236
- }
237
- });
238
- ```
78
+ ### CarrierWave Integration
79
+ - [See full documentation](https://cloudinary.com/documentation/rails_carrierwave).
239
80
 
81
+ ### Active Storage Integration
82
+ - [See full documentation](https://cloudinary.com/documentation/rails_activestorage).
240
83
 
241
- (`cloudinary_fileupload()` internally calls Blueimp's `fileupload()` so there's no need to call both.)
84
+ ### Security options
85
+ - [See full documentation](https://cloudinary.com/documentation/solution_overview#security).
242
86
 
243
87
  ### Samples
88
+ - See [samples folder](https://github.com/cloudinary/cloudinary_gem/tree/master/samples).
244
89
 
245
- You can find our simple and ready-to-use samples projects, along with documentation in the [samples folder](https://github.com/cloudinary/cloudinary_gem/tree/master/samples).
246
- Please consult with the [README file](https://github.com/cloudinary/cloudinary_gem/blob/master/samples/README.md), for usage and explanations.
247
-
248
- ## Additional resources ##########################################################
249
-
250
- Additional resources are available at:
251
-
252
- * [Website](https://cloudinary.com)
253
- * [Interactive demo](https://demo.cloudinary.com/default)
254
- * [Documentation](https://cloudinary.com/documentation)
255
- * [Knowledge Base](https://support.cloudinary.com/hc/en-us)
256
- * [Documentation for Ruby on Rails integration](https://cloudinary.com/documentation/rails_integration)
257
- * [Ruby on Rails image upload documentation](https://cloudinary.com/documentation/rails_image_upload)
258
- * [Ruby on Rails image manipulation documentation](https://cloudinary.com/documentation/rails_image_manipulation)
259
- * [Image transformations documentation](https://cloudinary.com/documentation/image_transformations)
260
-
261
- ## Support
90
+ ## Contributions
91
+ - See [CONTRIBUTING](CONTRIBUTING.md).
262
92
 
263
- You can [open an issue through GitHub](https://github.com/cloudinary/cloudinary_gem/issues).
93
+ ## Get Help
264
94
 
265
- Contact us [https://cloudinary.com/contact](https://cloudinary.com/contact)
95
+ If you run into an issue or have a question, you can either:
266
96
 
267
- Stay tuned for updates, tips and tutorials: [Blog](https://cloudinary.com/blog), [Twitter](https://twitter.com/cloudinary), [Facebook](https://www.facebook.com/Cloudinary).
97
+ - Issues related to the SDK: [Open a GitHub issue](https://github.com/cloudinary/cloudinary_gem/issues).
98
+ - Issues related to your account: [Open a support ticket](https://cloudinary.com/contact)
268
99
 
269
- ## Join the Community ##########################################################
100
+ ## About Cloudinary
270
101
 
271
- Impact the product, hear updates, test drive new features and more! Join [here](https://www.facebook.com/groups/CloudinaryCommunity).
102
+ Cloudinary is a powerful media API for websites and mobile apps alike, Cloudinary enables developers to efficiently
103
+ manage, transform, optimize, and deliver images and videos through multiple CDNs. Ultimately, viewers enjoy responsive
104
+ and personalized visual-media experiences—irrespective of the viewing device.
272
105
 
273
- ## License #######################################################################
106
+ ## Additional Resources
274
107
 
275
- Released under the MIT license.
108
+ - [Cloudinary Transformation and REST API References](https://cloudinary.com/documentation/cloudinary_references):
109
+ Comprehensive references, including syntax and examples for all SDKs.
110
+ - [MediaJams.dev](https://mediajams.dev/): Bite-size use-case tutorials written by and for Cloudinary Developers
111
+ - [DevJams](https://www.youtube.com/playlist?list=PL8dVGjLA2oMr09amgERARsZyrOz_sPvqw): Cloudinary developer podcasts on
112
+ YouTube.
113
+ - [Cloudinary Academy](https://training.cloudinary.com/): Free self-paced courses, instructor-led virtual courses, and
114
+ on-site courses.
115
+ - [Code Explorers and Feature Demos](https://cloudinary.com/documentation/code_explorers_demos_index): A one-stop shop
116
+ for all code explorers, Postman collections, and feature demos found in the docs.
117
+ - [Cloudinary Roadmap](https://cloudinary.com/roadmap): Your chance to follow, vote, or suggest what Cloudinary should
118
+ develop next.
119
+ - [Cloudinary Facebook Community](https://www.facebook.com/groups/CloudinaryCommunity): Learn from and offer help to
120
+ other Cloudinary developers.
121
+ - [Cloudinary Account Registration](https://cloudinary.com/users/register/free): Free Cloudinary account registration.
122
+ - [Cloudinary Website](https://cloudinary.com): Learn about Cloudinary's products, partners, customers, pricing, and
123
+ more.
276
124
 
125
+ ## Licence
277
126
 
127
+ Released under the MIT license.
data/cloudinary.gemspec CHANGED
@@ -27,6 +27,10 @@ Gem::Specification.new do |s|
27
27
  s.add_dependency "rest-client"
28
28
  end
29
29
 
30
+ if RUBY_VERSION >= "3.0.0"
31
+ s.add_development_dependency "rexml"
32
+ end
33
+
30
34
  s.add_development_dependency "actionpack"
31
35
  s.add_development_dependency "nokogiri"
32
36
 
@@ -39,7 +43,12 @@ Gem::Specification.new do |s|
39
43
  s.add_development_dependency "sqlite3"
40
44
  s.add_development_dependency "rspec", '>=3.5'
41
45
  s.add_development_dependency "rspec-retry"
42
- s.add_development_dependency "rails", "~>5.2" if RUBY_VERSION >= "2.2.2"
46
+
47
+ if RUBY_VERSION >= "3.0.0"
48
+ s.add_development_dependency "rails", "~> 6.0.3"
49
+ elsif RUBY_VERSION >= "2.2.2"
50
+ s.add_development_dependency "rails", "~> 5.2"
51
+ end
43
52
 
44
53
  s.add_development_dependency "railties", "<= 4.2.7" if RUBY_VERSION <= "1.9.3"
45
54
  s.add_development_dependency "rspec-rails"
@@ -216,8 +216,9 @@ class Cloudinary::AccountApi
216
216
  api_secret = options[:provisioning_api_secret] || Cloudinary.account_config.provisioning_api_secret || raise('Must supply provisioning api_secret')
217
217
 
218
218
  params.reject! { |_, v| v.nil? }
219
+ auth = { :key => api_key, :secret => api_secret }
219
220
 
220
- call_cloudinary_api(method, uri, api_key, api_secret, params, options) do |cloudinary, inner_uri|
221
+ call_cloudinary_api(method, uri, auth, params, options) do |cloudinary, inner_uri|
221
222
  [cloudinary, 'v1_1', 'provisioning', 'accounts', account_id, inner_uri]
222
223
  end
223
224
  end