resizor 0.0.16 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/resizor/asset.rb CHANGED
@@ -50,7 +50,7 @@ module Resizor
50
50
  end
51
51
 
52
52
  def cdn_compatible_url(options={})
53
- "http://#{Resizor.cdn_host}/assets/#{options[:size]}#{"/"+options[:cutout] if options[:cutout]}/#{resize_token_for(options)}/#{id}.#{options[:format]}"
53
+ "//#{Resizor.cdn_host}/assets/#{options[:size]}#{"/"+options[:cutout] if options[:cutout]}/#{resize_token_for(options)}/#{id}.#{options[:format]}"
54
54
  end
55
55
 
56
56
  end
@@ -1,3 +1,3 @@
1
1
  module Resizor
2
- VERSION = "0.0.16"
2
+ VERSION = "1.0.0"
3
3
  end
data/test/asset_test.rb CHANGED
@@ -44,11 +44,11 @@ class ResizorAssetTest < Test::Unit::TestCase
44
44
  end
45
45
 
46
46
  should 'generate url for size c200x300' do
47
- assert_equal 'http://abc.cloudfront.com/assets/c200x300/b8bb7c4c7c4fc1006c904f011f32f50f69730e5e/10.jpg', @asset.url(:size => 'c200x300')
47
+ assert_equal '//abc.cloudfront.com/assets/c200x300/b8bb7c4c7c4fc1006c904f011f32f50f69730e5e/10.jpg', @asset.url(:size => 'c200x300')
48
48
  end
49
49
 
50
50
  should 'generate url for size c200x300 format png' do
51
- assert_equal 'http://abc.cloudfront.com/assets/c200x300/0cf27070e89c44a40aee85decca2cd2d98af1dc2/10.png', @asset.url(:size => 'c200x300', :format => 'png')
51
+ assert_equal '//abc.cloudfront.com/assets/c200x300/0cf27070e89c44a40aee85decca2cd2d98af1dc2/10.png', @asset.url(:size => 'c200x300', :format => 'png')
52
52
  end
53
53
 
54
54
  should 'generate url with out cdn_host if option cdn_host is set to false' do