Skip to content

Commit

Permalink
Add support for video resources
Browse files Browse the repository at this point in the history
  • Loading branch information
tocker committed Mar 19, 2015
1 parent c3b861b commit 12fcfbe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/cloudinary/helper.rb
@@ -1,5 +1,4 @@
require 'digest/md5'

require 'cloudinary/video_helper'

module CloudinaryHelper
Expand Down
5 changes: 3 additions & 2 deletions lib/cloudinary/utils.rb
Expand Up @@ -18,7 +18,8 @@ def self.generate_transformation_string(options={})
options.keys.each do |key|
options[(key.to_sym rescue key)] = options.delete(key)
end
responsive_width = config_option_consume(options, :responsive_width)

responsive_width = config_option_consume(options, :responsive_width)
size = options.delete(:size)
options[:width], options[:height] = size.split("x") if size
width = options[:width]
Expand Down Expand Up @@ -108,7 +109,7 @@ def self.generate_transformation_string(options={})
:y => :y,
:z => :zoom
}.each do
|param, option|
|param, option|
params[param] = options.delete(option)
end

Expand Down
1 change: 0 additions & 1 deletion spec/cloudinary_helper_spec.rb
Expand Up @@ -26,7 +26,6 @@
let(:test_tag) { TestTag.new( helper.cl_image_upload_tag('image_id', options)) }

it "allow multiple upload" do
# options[:multiple] = true
expect(test_tag['data-cloudinary-field']).to eq('image_id[]')
expect(test_tag['multiple']).to eq('multiple')
end
Expand Down

0 comments on commit 12fcfbe

Please sign in to comment.