resizor 0.0.16 → 1.0.0
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.
- data/lib/resizor/asset.rb +1 -1
- data/lib/resizor/version.rb +1 -1
- data/test/asset_test.rb +2 -2
- data/test/debug.log +25 -8537
- metadata +5 -2
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
|
-
"
|
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
|
data/lib/resizor/version.rb
CHANGED
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 '
|
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 '
|
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
|