cloudinary 1.2.1 → 1.2.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/cloudinary.gemspec +6 -1
- data/lib/cloudinary/version.rb +1 -1
- data/spec/api_spec.rb +2 -2
- data/spec/uploader_spec.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fcfb2ec23208e42dc314f218a803b9ddc0d62fc
|
4
|
+
data.tar.gz: d77b2eceee548a28eccca9f3b653cc8946936d2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 326be4f55c3abb55067a0dd4353e2b9bf4607a09f068bc78569094f4bb50006dfed3474863ffcea9a486b3f515ef7dc074d2833b54d8de1924cc8289edddafc7
|
7
|
+
data.tar.gz: 755b17418a13dd7749947a78af187c01edec641a82097425af880a66b43a7d2b30036940f0e397788c6d65a1b7e84dbf9fcc053c90f81a2282bf52a3b74ccfb3
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,11 @@
|
|
1
1
|
|
2
|
+
1.2.2 / 2016-07-16
|
3
|
+
==================
|
4
|
+
|
5
|
+
* Update gemspec to differentiate between ruby 1.9 and 2.0
|
6
|
+
* Add `:max_results => 500` to tags test.
|
7
|
+
* Add json spec. Add explicit exception names to `raise_error`.
|
8
|
+
|
2
9
|
1.2.1 / 2016-07-16
|
3
10
|
==================
|
4
11
|
|
data/cloudinary.gemspec
CHANGED
@@ -25,10 +25,15 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.add_development_dependency "rspec-rails"
|
26
26
|
s.add_development_dependency "rubyzip"
|
27
27
|
|
28
|
-
if RUBY_VERSION > "
|
28
|
+
if RUBY_VERSION > "2.0"
|
29
29
|
s.add_dependency "rest-client"
|
30
30
|
s.add_development_dependency "actionpack"
|
31
31
|
s.add_development_dependency "simplecov"
|
32
|
+
elsif RUBY_VERSION > "1.9"
|
33
|
+
s.add_dependency "rest-client", '< 2.0'
|
34
|
+
s.add_dependency 'json', '~> 1.8'
|
35
|
+
s.add_development_dependency "actionpack", '< 5.0'
|
36
|
+
s.add_development_dependency "simplecov"
|
32
37
|
else
|
33
38
|
s.add_dependency "i18n", "<0.7.0"
|
34
39
|
s.add_dependency "rest-client", "<=1.6.8"
|
data/lib/cloudinary/version.rb
CHANGED
data/spec/api_spec.rb
CHANGED
@@ -141,7 +141,7 @@ describe Cloudinary::Api do
|
|
141
141
|
end
|
142
142
|
|
143
143
|
it "should allow listing tags" do
|
144
|
-
tags = @api.tags()["tags"]
|
144
|
+
tags = @api.tags(:max_results => 500)["tags"]
|
145
145
|
expect(tags).to include(TEST_TAG)
|
146
146
|
end
|
147
147
|
|
@@ -262,7 +262,7 @@ describe Cloudinary::Api do
|
|
262
262
|
@api.create_upload_preset(:name => "api_test_upload_preset4", :folder => "folder", :tags => [TEST_TAG, TIMESTAMP_TAG])
|
263
263
|
preset = @api.upload_preset("api_test_upload_preset4")
|
264
264
|
@api.delete_upload_preset("api_test_upload_preset4")
|
265
|
-
expect{preset = @api.upload_preset("api_test_upload_preset4")}.to raise_error
|
265
|
+
expect{preset = @api.upload_preset("api_test_upload_preset4")}.to raise_error(Cloudinary::Api::NotFound)
|
266
266
|
end
|
267
267
|
|
268
268
|
it "should allow updating upload_presets", :upload_preset => true do
|
data/spec/uploader_spec.rb
CHANGED
@@ -50,7 +50,7 @@ describe Cloudinary::Uploader do
|
|
50
50
|
it 'should not allow renaming to an existing ID' do
|
51
51
|
id = @resource_2_id
|
52
52
|
@resource_2_id = @resource_1_id+"2" # if rename doesn't fail, this is the new ID
|
53
|
-
expect { Cloudinary::Uploader.rename(id, @resource_1_id+"2") }.to raise_error
|
53
|
+
expect { Cloudinary::Uploader.rename(id, @resource_1_id+"2") }.to raise_error(CloudinaryException)
|
54
54
|
@resource_2_id = id
|
55
55
|
end
|
56
56
|
context ':overwrite => true' do
|
@@ -151,7 +151,7 @@ describe Cloudinary::Uploader do
|
|
151
151
|
end
|
152
152
|
|
153
153
|
it "should prevent non whitelisted formats from being uploaded if allowed_formats is specified", :allowed=>true do
|
154
|
-
expect{Cloudinary::Uploader.upload(TEST_IMG, :allowed_formats => ["jpg"], :tags => [TEST_TAG, TIMESTAMP_TAG])}.to raise_error
|
154
|
+
expect{Cloudinary::Uploader.upload(TEST_IMG, :allowed_formats => ["jpg"], :tags => [TEST_TAG, TIMESTAMP_TAG])}.to raise_error(CloudinaryException)
|
155
155
|
end
|
156
156
|
|
157
157
|
it "should allow non whitelisted formats if type is specified and convert to that type", :allowed=>true do
|
@@ -244,7 +244,7 @@ describe Cloudinary::Uploader do
|
|
244
244
|
end
|
245
245
|
|
246
246
|
it "should fail if timeout is reached" do
|
247
|
-
expect{Cloudinary::Uploader.upload(Pathname.new(TEST_IMG), :tags => [TEST_TAG, TIMESTAMP_TAG])}.to raise_error
|
247
|
+
expect{Cloudinary::Uploader.upload(Pathname.new(TEST_IMG), :tags => [TEST_TAG, TIMESTAMP_TAG])}.to raise_error(RestClient::RequestTimeout)
|
248
248
|
end
|
249
249
|
end
|
250
250
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudinary
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nadav Soferman
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-07-
|
13
|
+
date: 2016-07-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: aws_cf_signer
|