rails_imager 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/rails_imager/images_controller.rb +5 -8
- data/app/helpers/rails_imager/images_helper.rb +12 -0
- data/lib/rails_imager/image_handler.rb +29 -14
- data/lib/rails_imager/version.rb +1 -1
- data/test/controllers/rails_imager/images_controller_test.rb +7 -4
- data/test/dummy/log/test.log +1065 -0
- data/test/image_handler_test.rb +2 -2
- 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: e23f8cfbf521fd50a34d04f4647767c57ec48435
|
4
|
+
data.tar.gz: 7508f7079326580b1edff27713a0ab5437ca4322
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce1e0329da791d033c059caf74f1879ce47fbde8e279f1755066ca795944e3e46f67e0fe4ea2fdc08c0ca35badd514a49da85693af8112781d423e7fa42a883e
|
7
|
+
data.tar.gz: eacdf51578bd29a955273bd650c680769deea2f0e2cd6fab5225ff5e3b8df4d9e62cad67a85f8d79129bc4d068a944c693b06b832959fef9c2ba571a09009ea6
|
@@ -3,7 +3,6 @@ require_dependency "rails_imager/application_controller"
|
|
3
3
|
class RailsImager::ImagesController < ApplicationController
|
4
4
|
def show
|
5
5
|
rimger = RailsImager::ImageHandler.new
|
6
|
-
|
7
6
|
image_params = params[:image] || {}
|
8
7
|
|
9
8
|
# Check for invalid parameters.
|
@@ -15,13 +14,11 @@ class RailsImager::ImagesController < ApplicationController
|
|
15
14
|
image_path = File.realpath(image_path)
|
16
15
|
validate_path(image_path)
|
17
16
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
send_data image.to_blob, :type => "image/png", :disposition => "inline"
|
17
|
+
rimger.handle(
|
18
|
+
:controller => self,
|
19
|
+
:fpath => image_path,
|
20
|
+
:params => image_params
|
21
|
+
)
|
25
22
|
end
|
26
23
|
|
27
24
|
private
|
@@ -2,6 +2,18 @@ require "uri"
|
|
2
2
|
|
3
3
|
module RailsImager::ImagesHelper
|
4
4
|
def rails_imager_p(path, args = {})
|
5
|
+
if path.class.name == "Paperclip::Attachment"
|
6
|
+
raise "Paperclip path does not start with public path." unless path.path.to_s.start_with?(Rails.public_path.to_s)
|
7
|
+
path_without_public = path.path.to_s.gsub("#{Rails.public_path}/", "")
|
8
|
+
raise "Path didn't change '#{path.path}' - '#{path_without_public}'." if path.path.to_s == path_without_public
|
9
|
+
path = path_without_public
|
10
|
+
end
|
11
|
+
|
12
|
+
# Check for invalid parameters.
|
13
|
+
args.each do |key, val|
|
14
|
+
raise ArgumentError, "Invalid parameter: '#{key}'." unless RailsImager::ImageHandler::PARAMS_ARGS.include?(key)
|
15
|
+
end
|
16
|
+
|
5
17
|
newpath = "/rails_imager/images/"
|
6
18
|
newpath << URI.encode(path)
|
7
19
|
newpath << "/?"
|
@@ -1,13 +1,14 @@
|
|
1
1
|
require "RMagick"
|
2
2
|
require "knjrbfw"
|
3
3
|
require "tmpdir"
|
4
|
+
require "datet"
|
4
5
|
|
5
6
|
class RailsImager::ImageHandler
|
6
|
-
PARAMS_ARGS = [:width, :height, :smartsize, :maxwidth, :maxheight, :rounded_corners, :border, :border_color]
|
7
|
+
PARAMS_ARGS = [:width, :height, :smartsize, :maxwidth, :maxheight, :rounded_corners, :border, :border_color, :force]
|
7
8
|
|
8
9
|
#This is the default cache which is plased in the temp-directory, so it will be cleared on every restart. It should always exist.
|
9
10
|
DEFAULT_CACHE_DIR = "#{Dir.tmpdir}/rails-imager-cache"
|
10
|
-
Dir.mkdir(DEFAULT_CACHE_DIR)
|
11
|
+
Dir.mkdir(DEFAULT_CACHE_DIR) unless Dir.exists?(DEFAULT_CACHE_DIR)
|
11
12
|
|
12
13
|
#Default arguments unless something else is given in constructor.
|
13
14
|
DEFAULT_ARGS = {
|
@@ -92,6 +93,7 @@ class RailsImager::ImageHandler
|
|
92
93
|
|
93
94
|
if params[:rounded_corners]
|
94
95
|
img = img.clone
|
96
|
+
img.format = "png" # Needs PNG format for transparency.
|
95
97
|
args = {:img => img, :radius => params[:rounded_corners].to_i}
|
96
98
|
|
97
99
|
if params[:border] && params[:border_color]
|
@@ -134,7 +136,7 @@ class RailsImager::ImageHandler
|
|
134
136
|
end
|
135
137
|
|
136
138
|
FORCE_CACHE_FROM_PARAMS_ALLOWED_ARGS = [:fpath, :image, :request, :params]
|
137
|
-
#Checks if a cache-file is created for the given filepath or image. If not then it will be created. If the cache-object is too old, then it will updated. Then returns the path to the cache-object in the end.
|
139
|
+
# Checks if a cache-file is created for the given filepath or image. If not then it will be created. If the cache-object is too old, then it will updated. Then returns the path to the cache-object in the end.
|
138
140
|
def force_cache_from_request(args)
|
139
141
|
args.each do |key, val|
|
140
142
|
raise "Invalid argument: '#{key}'." if !FORCE_CACHE_FROM_PARAMS_ALLOWED_ARGS.include?(key)
|
@@ -169,7 +171,8 @@ class RailsImager::ImageHandler
|
|
169
171
|
end
|
170
172
|
|
171
173
|
if should_generate
|
172
|
-
img = Magick::Image.read(fpath).first unless img
|
174
|
+
img = ::Magick::Image.read(fpath).first unless img
|
175
|
+
img.format = "png"
|
173
176
|
img = self.img_from_params(:image => img, :params => params)
|
174
177
|
img.write(cachepath)
|
175
178
|
else
|
@@ -187,7 +190,7 @@ class RailsImager::ImageHandler
|
|
187
190
|
:cachepath => cachepath,
|
188
191
|
:generated => should_generate,
|
189
192
|
:not_modified => not_modified,
|
190
|
-
:mod_time => mod_time
|
193
|
+
:mod_time => mod_time,
|
191
194
|
}
|
192
195
|
end
|
193
196
|
|
@@ -195,14 +198,14 @@ class RailsImager::ImageHandler
|
|
195
198
|
#Automatically handles the image with generation, cache control and more.
|
196
199
|
def handle(args)
|
197
200
|
args.each do |key, val|
|
198
|
-
raise "Invalid argument: '#{key}'."
|
201
|
+
raise "Invalid argument: '#{key}'." unless HANDLE_ALLOWED_ARGS.include?(key)
|
199
202
|
end
|
200
203
|
|
201
204
|
controller = args[:controller]
|
202
|
-
raise "No controller was given."
|
205
|
+
raise "No controller was given." unless controller
|
203
206
|
request = controller.request
|
204
207
|
params = args[:params]
|
205
|
-
raise "No params was given."
|
208
|
+
raise "No params was given." unless params
|
206
209
|
|
207
210
|
if args[:image]
|
208
211
|
fpath = args[:image].filename
|
@@ -211,14 +214,26 @@ class RailsImager::ImageHandler
|
|
211
214
|
end
|
212
215
|
|
213
216
|
raise "No filepath was given." if !fpath
|
214
|
-
res = self.force_cache_from_request(fpath
|
217
|
+
res = self.force_cache_from_request(:fpath => fpath, :request => request, :params => params)
|
218
|
+
|
219
|
+
if params[:force] && params[:force] != "0"
|
220
|
+
force = true
|
221
|
+
else
|
222
|
+
force = false
|
223
|
+
end
|
224
|
+
|
225
|
+
controller.response.headers["Last-Modified"] = res[:mod_time].httpdate
|
226
|
+
|
227
|
+
if force
|
228
|
+
controller.response.headers["Expires"] = Time.now.httpdate
|
229
|
+
else
|
230
|
+
controller.response.headers["Expires"] = 2.hours.from_now.httpdate
|
231
|
+
end
|
215
232
|
|
216
|
-
if res[:not_modified]
|
233
|
+
if res[:not_modified] && !force
|
217
234
|
controller.render :nothing => true, :status => "304 Not Modified"
|
218
235
|
else
|
219
|
-
controller.
|
220
|
-
controller.response.header["Last-Modified"] = res[:mod_time].to_s
|
221
|
-
controller.send_file res[:cachepath], type: "image/png", disposition: "inline", filename: "picture.png"
|
236
|
+
controller.send_file res[:cachepath], :type => "image/png", :disposition => "inline", :filename => "picture.png"
|
222
237
|
end
|
223
238
|
end
|
224
239
|
|
@@ -227,7 +242,7 @@ class RailsImager::ImageHandler
|
|
227
242
|
Dir.foreach(@args[:cache_dir]) do |file|
|
228
243
|
next if file == "." || file == ".."
|
229
244
|
fn = "#{@args[:cache_dir]}/#{file}"
|
230
|
-
next
|
245
|
+
next unless File.file?(fn)
|
231
246
|
|
232
247
|
if blk == nil
|
233
248
|
res = true
|
data/lib/rails_imager/version.rb
CHANGED
@@ -8,15 +8,18 @@ module RailsImager
|
|
8
8
|
assert_response :success
|
9
9
|
assert "image/png", response.content_type
|
10
10
|
img = ::Magick::Image.from_blob(response.body).first
|
11
|
-
|
12
|
-
|
11
|
+
assert_equal img.columns, 200
|
12
|
+
assert_equal img.rows, 196
|
13
13
|
end
|
14
14
|
|
15
15
|
test "cache via expires" do
|
16
16
|
get :show, :use_route => :rails_imager, :id => "test.png", :image => {:smartsize => 200, :rounded_corners => 8}
|
17
17
|
image_path = "#{Rails.public_path}/test.png"
|
18
|
-
|
19
|
-
|
18
|
+
|
19
|
+
puts "Headers: #{response.headers.to_a}"
|
20
|
+
|
21
|
+
assert_not_nil response.headers["Expires"], "Didn't find expires header in response."
|
22
|
+
assert_equal response.headers["Last-Modified"], File.mtime(image_path).httpdate
|
20
23
|
end
|
21
24
|
|
22
25
|
test "invalid parameters" do
|
data/test/dummy/log/test.log
CHANGED
@@ -3492,5 +3492,1070 @@ RailsImager::ImagesHelperTest: test_#rails_imager_path
|
|
3492
3492
|
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3493
3493
|
---------------------------
|
3494
3494
|
RailsImagerTest: test_truth
|
3495
|
+
---------------------------
|
3496
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3497
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
3498
|
+
---------------------------------------------------------------------
|
3499
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
|
3500
|
+
---------------------------------------------------------------------
|
3501
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3502
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3503
|
+
--------------------------------------------------------------------
|
3504
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
|
3505
|
+
--------------------------------------------------------------------
|
3506
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3507
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3508
|
+
--------------------------------------------------------------------------------
|
3509
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
|
3510
|
+
--------------------------------------------------------------------------------
|
3511
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3512
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3513
|
+
---------------------------------------------------------
|
3514
|
+
RailsImager::ImageHandlerTest: test_should_do_exact_sizes
|
3515
|
+
---------------------------------------------------------
|
3516
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3517
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3518
|
+
------------------------------------------------------------------
|
3519
|
+
RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
|
3520
|
+
------------------------------------------------------------------
|
3521
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3522
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3523
|
+
-------------------------------------------------------------
|
3524
|
+
RailsImager::ImageHandlerTest: test_should_do_rounded_corners
|
3525
|
+
-------------------------------------------------------------
|
3526
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3527
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3528
|
+
---------------------------------------------------------
|
3529
|
+
RailsImager::ImageHandlerTest: test_should_do_smartsizing
|
3530
|
+
---------------------------------------------------------
|
3531
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3532
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3533
|
+
------------------------------------------------------------
|
3534
|
+
RailsImager::ImageHandlerTest: test_should_send_not_modified
|
3535
|
+
------------------------------------------------------------
|
3536
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3537
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3538
|
+
---------------------------------------------------------
|
3539
|
+
RailsImager::ImagesControllerTest: test_cache_via_expires
|
3540
|
+
---------------------------------------------------------
|
3541
|
+
Processing by RailsImager::ImagesController#show as HTML
|
3542
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200", "rounded_corners"=>"8"}}
|
3543
|
+
Rendered text template (0.0ms)
|
3544
|
+
Sent data (2.9ms)
|
3545
|
+
Completed 200 OK in 43ms (Views: 2.7ms | ActiveRecord: 0.0ms)
|
3546
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3547
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3548
|
+
----------------------------------------------------------
|
3549
|
+
RailsImager::ImagesControllerTest: test_invalid_parameters
|
3550
|
+
----------------------------------------------------------
|
3551
|
+
Processing by RailsImager::ImagesController#show as HTML
|
3552
|
+
Parameters: {"id"=>"test.png", "image"=>{"invalid_param"=>"kasper"}}
|
3553
|
+
Completed 500 Internal Server Error in 0ms
|
3554
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3555
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3556
|
+
-------------------------------------------------
|
3557
|
+
RailsImager::ImagesControllerTest: test_smartsize
|
3558
|
+
-------------------------------------------------
|
3559
|
+
Processing by RailsImager::ImagesController#show as HTML
|
3560
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200"}}
|
3561
|
+
Sent data (0.5ms)
|
3562
|
+
Completed 200 OK in 34ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
3563
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3564
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3565
|
+
------------------------------------------------------
|
3566
|
+
RailsImager::ImagesHelperTest: test_#rails_imager_path
|
3567
|
+
------------------------------------------------------
|
3568
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3569
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3570
|
+
---------------------------
|
3571
|
+
RailsImagerTest: test_truth
|
3572
|
+
---------------------------
|
3573
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3574
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
3575
|
+
---------------------------------------------------------------------
|
3576
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
|
3577
|
+
---------------------------------------------------------------------
|
3578
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3579
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3580
|
+
--------------------------------------------------------------------
|
3581
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
|
3582
|
+
--------------------------------------------------------------------
|
3583
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3584
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3585
|
+
--------------------------------------------------------------------------------
|
3586
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
|
3587
|
+
--------------------------------------------------------------------------------
|
3588
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
3589
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3590
|
+
---------------------------------------------------------
|
3591
|
+
RailsImager::ImageHandlerTest: test_should_do_exact_sizes
|
3592
|
+
---------------------------------------------------------
|
3593
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3594
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3595
|
+
------------------------------------------------------------------
|
3596
|
+
RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
|
3597
|
+
------------------------------------------------------------------
|
3598
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3599
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3600
|
+
-------------------------------------------------------------
|
3601
|
+
RailsImager::ImageHandlerTest: test_should_do_rounded_corners
|
3602
|
+
-------------------------------------------------------------
|
3603
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3604
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3605
|
+
---------------------------------------------------------
|
3606
|
+
RailsImager::ImageHandlerTest: test_should_do_smartsizing
|
3607
|
+
---------------------------------------------------------
|
3608
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3609
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3610
|
+
------------------------------------------------------------
|
3611
|
+
RailsImager::ImageHandlerTest: test_should_send_not_modified
|
3612
|
+
------------------------------------------------------------
|
3613
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3614
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3615
|
+
---------------------------------------------------------
|
3616
|
+
RailsImager::ImagesControllerTest: test_cache_via_expires
|
3617
|
+
---------------------------------------------------------
|
3618
|
+
Processing by RailsImager::ImagesController#show as HTML
|
3619
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200", "rounded_corners"=>"8"}}
|
3620
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-8_border-_border_color-_force- (0.1ms)
|
3621
|
+
Completed 200 OK in 38ms (ActiveRecord: 0.0ms)
|
3622
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3623
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3624
|
+
----------------------------------------------------------
|
3625
|
+
RailsImager::ImagesControllerTest: test_invalid_parameters
|
3626
|
+
----------------------------------------------------------
|
3627
|
+
Processing by RailsImager::ImagesController#show as HTML
|
3628
|
+
Parameters: {"id"=>"test.png", "image"=>{"invalid_param"=>"kasper"}}
|
3629
|
+
Completed 500 Internal Server Error in 0ms
|
3630
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3631
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3632
|
+
-------------------------------------------------
|
3633
|
+
RailsImager::ImagesControllerTest: test_smartsize
|
3634
|
+
-------------------------------------------------
|
3635
|
+
Processing by RailsImager::ImagesController#show as HTML
|
3636
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200"}}
|
3637
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-_border-_border_color-_force- (0.1ms)
|
3638
|
+
Completed 200 OK in 33ms (ActiveRecord: 0.0ms)
|
3639
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3640
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3641
|
+
------------------------------------------------------
|
3642
|
+
RailsImager::ImagesHelperTest: test_#rails_imager_path
|
3643
|
+
------------------------------------------------------
|
3644
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3645
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3646
|
+
---------------------------
|
3647
|
+
RailsImagerTest: test_truth
|
3648
|
+
---------------------------
|
3649
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3650
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
3651
|
+
---------------------------------------------------------------------
|
3652
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
|
3653
|
+
---------------------------------------------------------------------
|
3654
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3655
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3656
|
+
--------------------------------------------------------------------
|
3657
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
|
3658
|
+
--------------------------------------------------------------------
|
3659
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
3660
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
3661
|
+
--------------------------------------------------------------------------------
|
3662
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
|
3663
|
+
--------------------------------------------------------------------------------
|
3664
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
3665
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
3666
|
+
---------------------------------------------------------
|
3667
|
+
RailsImager::ImageHandlerTest: test_should_do_exact_sizes
|
3668
|
+
---------------------------------------------------------
|
3669
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3670
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3671
|
+
------------------------------------------------------------------
|
3672
|
+
RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
|
3673
|
+
------------------------------------------------------------------
|
3674
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3675
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3676
|
+
-------------------------------------------------------------
|
3677
|
+
RailsImager::ImageHandlerTest: test_should_do_rounded_corners
|
3678
|
+
-------------------------------------------------------------
|
3679
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3680
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3681
|
+
---------------------------------------------------------
|
3682
|
+
RailsImager::ImageHandlerTest: test_should_do_smartsizing
|
3683
|
+
---------------------------------------------------------
|
3684
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3685
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3686
|
+
------------------------------------------------------------
|
3687
|
+
RailsImager::ImageHandlerTest: test_should_send_not_modified
|
3688
|
+
------------------------------------------------------------
|
3689
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3690
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3691
|
+
---------------------------------------------------------
|
3692
|
+
RailsImager::ImagesControllerTest: test_cache_via_expires
|
3693
|
+
---------------------------------------------------------
|
3694
|
+
Processing by RailsImager::ImagesController#show as HTML
|
3695
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200", "rounded_corners"=>"8"}}
|
3696
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-8_border-_border_color-_force- (0.1ms)
|
3697
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
3698
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3699
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3700
|
+
----------------------------------------------------------
|
3701
|
+
RailsImager::ImagesControllerTest: test_invalid_parameters
|
3702
|
+
----------------------------------------------------------
|
3703
|
+
Processing by RailsImager::ImagesController#show as HTML
|
3704
|
+
Parameters: {"id"=>"test.png", "image"=>{"invalid_param"=>"kasper"}}
|
3705
|
+
Completed 500 Internal Server Error in 0ms
|
3706
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3707
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3708
|
+
-------------------------------------------------
|
3709
|
+
RailsImager::ImagesControllerTest: test_smartsize
|
3710
|
+
-------------------------------------------------
|
3711
|
+
Processing by RailsImager::ImagesController#show as HTML
|
3712
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200"}}
|
3713
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-_border-_border_color-_force- (0.0ms)
|
3714
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
3715
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3716
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3717
|
+
------------------------------------------------------
|
3718
|
+
RailsImager::ImagesHelperTest: test_#rails_imager_path
|
3719
|
+
------------------------------------------------------
|
3720
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3721
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3722
|
+
---------------------------
|
3723
|
+
RailsImagerTest: test_truth
|
3724
|
+
---------------------------
|
3725
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3726
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
3727
|
+
---------------------------------------------------------------------
|
3728
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
|
3729
|
+
---------------------------------------------------------------------
|
3730
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3731
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3732
|
+
--------------------------------------------------------------------
|
3733
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
|
3734
|
+
--------------------------------------------------------------------
|
3735
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3736
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3737
|
+
--------------------------------------------------------------------------------
|
3738
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
|
3739
|
+
--------------------------------------------------------------------------------
|
3740
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3741
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3742
|
+
---------------------------------------------------------
|
3743
|
+
RailsImager::ImageHandlerTest: test_should_do_exact_sizes
|
3744
|
+
---------------------------------------------------------
|
3745
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3746
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3747
|
+
------------------------------------------------------------------
|
3748
|
+
RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
|
3749
|
+
------------------------------------------------------------------
|
3750
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3751
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3752
|
+
-------------------------------------------------------------
|
3753
|
+
RailsImager::ImageHandlerTest: test_should_do_rounded_corners
|
3754
|
+
-------------------------------------------------------------
|
3755
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3756
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3757
|
+
---------------------------------------------------------
|
3758
|
+
RailsImager::ImageHandlerTest: test_should_do_smartsizing
|
3759
|
+
---------------------------------------------------------
|
3760
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3761
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3762
|
+
------------------------------------------------------------
|
3763
|
+
RailsImager::ImageHandlerTest: test_should_send_not_modified
|
3764
|
+
------------------------------------------------------------
|
3765
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3766
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3767
|
+
---------------------------------------------------------
|
3768
|
+
RailsImager::ImagesControllerTest: test_cache_via_expires
|
3769
|
+
---------------------------------------------------------
|
3770
|
+
Processing by RailsImager::ImagesController#show as HTML
|
3771
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200", "rounded_corners"=>"8"}}
|
3772
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-8_border-_border_color-_force- (0.1ms)
|
3773
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
3774
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3775
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3776
|
+
----------------------------------------------------------
|
3777
|
+
RailsImager::ImagesControllerTest: test_invalid_parameters
|
3778
|
+
----------------------------------------------------------
|
3779
|
+
Processing by RailsImager::ImagesController#show as HTML
|
3780
|
+
Parameters: {"id"=>"test.png", "image"=>{"invalid_param"=>"kasper"}}
|
3781
|
+
Completed 500 Internal Server Error in 0ms
|
3782
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3783
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3784
|
+
-------------------------------------------------
|
3785
|
+
RailsImager::ImagesControllerTest: test_smartsize
|
3786
|
+
-------------------------------------------------
|
3787
|
+
Processing by RailsImager::ImagesController#show as HTML
|
3788
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200"}}
|
3789
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-_border-_border_color-_force- (0.0ms)
|
3790
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
3791
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3792
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3793
|
+
------------------------------------------------------
|
3794
|
+
RailsImager::ImagesHelperTest: test_#rails_imager_path
|
3795
|
+
------------------------------------------------------
|
3796
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3797
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3798
|
+
---------------------------
|
3799
|
+
RailsImagerTest: test_truth
|
3800
|
+
---------------------------
|
3801
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3802
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
3803
|
+
---------------------------------------------------------------------
|
3804
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
|
3805
|
+
---------------------------------------------------------------------
|
3806
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3807
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3808
|
+
--------------------------------------------------------------------
|
3809
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
|
3810
|
+
--------------------------------------------------------------------
|
3811
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
3812
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3813
|
+
--------------------------------------------------------------------------------
|
3814
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
|
3815
|
+
--------------------------------------------------------------------------------
|
3816
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
3817
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
3818
|
+
---------------------------------------------------------
|
3819
|
+
RailsImager::ImageHandlerTest: test_should_do_exact_sizes
|
3820
|
+
---------------------------------------------------------
|
3821
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3822
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3823
|
+
------------------------------------------------------------------
|
3824
|
+
RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
|
3825
|
+
------------------------------------------------------------------
|
3826
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3827
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3828
|
+
-------------------------------------------------------------
|
3829
|
+
RailsImager::ImageHandlerTest: test_should_do_rounded_corners
|
3830
|
+
-------------------------------------------------------------
|
3831
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3832
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3833
|
+
---------------------------------------------------------
|
3834
|
+
RailsImager::ImageHandlerTest: test_should_do_smartsizing
|
3835
|
+
---------------------------------------------------------
|
3836
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3837
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3838
|
+
------------------------------------------------------------
|
3839
|
+
RailsImager::ImageHandlerTest: test_should_send_not_modified
|
3840
|
+
------------------------------------------------------------
|
3841
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3842
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3843
|
+
---------------------------------------------------------
|
3844
|
+
RailsImager::ImagesControllerTest: test_cache_via_expires
|
3845
|
+
---------------------------------------------------------
|
3846
|
+
Processing by RailsImager::ImagesController#show as HTML
|
3847
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200", "rounded_corners"=>"8"}}
|
3848
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-8_border-_border_color-_force- (0.1ms)
|
3849
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
3850
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3851
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3852
|
+
----------------------------------------------------------
|
3853
|
+
RailsImager::ImagesControllerTest: test_invalid_parameters
|
3854
|
+
----------------------------------------------------------
|
3855
|
+
Processing by RailsImager::ImagesController#show as HTML
|
3856
|
+
Parameters: {"id"=>"test.png", "image"=>{"invalid_param"=>"kasper"}}
|
3857
|
+
Completed 500 Internal Server Error in 0ms
|
3858
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3859
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3860
|
+
-------------------------------------------------
|
3861
|
+
RailsImager::ImagesControllerTest: test_smartsize
|
3862
|
+
-------------------------------------------------
|
3863
|
+
Processing by RailsImager::ImagesController#show as HTML
|
3864
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200"}}
|
3865
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-_border-_border_color-_force- (0.0ms)
|
3866
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
3867
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3868
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3869
|
+
------------------------------------------------------
|
3870
|
+
RailsImager::ImagesHelperTest: test_#rails_imager_path
|
3871
|
+
------------------------------------------------------
|
3872
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3873
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3874
|
+
---------------------------
|
3875
|
+
RailsImagerTest: test_truth
|
3876
|
+
---------------------------
|
3877
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3878
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
3879
|
+
---------------------------------------------------------------------
|
3880
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
|
3881
|
+
---------------------------------------------------------------------
|
3882
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3883
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3884
|
+
--------------------------------------------------------------------
|
3885
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
|
3886
|
+
--------------------------------------------------------------------
|
3887
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3888
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3889
|
+
--------------------------------------------------------------------------------
|
3890
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
|
3891
|
+
--------------------------------------------------------------------------------
|
3892
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
3893
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
3894
|
+
---------------------------------------------------------
|
3895
|
+
RailsImager::ImageHandlerTest: test_should_do_exact_sizes
|
3896
|
+
---------------------------------------------------------
|
3897
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3898
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3899
|
+
------------------------------------------------------------------
|
3900
|
+
RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
|
3901
|
+
------------------------------------------------------------------
|
3902
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3903
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3904
|
+
-------------------------------------------------------------
|
3905
|
+
RailsImager::ImageHandlerTest: test_should_do_rounded_corners
|
3906
|
+
-------------------------------------------------------------
|
3907
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3908
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3909
|
+
---------------------------------------------------------
|
3910
|
+
RailsImager::ImageHandlerTest: test_should_do_smartsizing
|
3911
|
+
---------------------------------------------------------
|
3912
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3913
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3914
|
+
------------------------------------------------------------
|
3915
|
+
RailsImager::ImageHandlerTest: test_should_send_not_modified
|
3916
|
+
------------------------------------------------------------
|
3917
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3918
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3919
|
+
---------------------------------------------------------
|
3920
|
+
RailsImager::ImagesControllerTest: test_cache_via_expires
|
3921
|
+
---------------------------------------------------------
|
3922
|
+
Processing by RailsImager::ImagesController#show as HTML
|
3923
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200", "rounded_corners"=>"8"}}
|
3924
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-8_border-_border_color-_force- (0.1ms)
|
3925
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
3926
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3927
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3928
|
+
----------------------------------------------------------
|
3929
|
+
RailsImager::ImagesControllerTest: test_invalid_parameters
|
3930
|
+
----------------------------------------------------------
|
3931
|
+
Processing by RailsImager::ImagesController#show as HTML
|
3932
|
+
Parameters: {"id"=>"test.png", "image"=>{"invalid_param"=>"kasper"}}
|
3933
|
+
Completed 500 Internal Server Error in 0ms
|
3934
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3935
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3936
|
+
-------------------------------------------------
|
3937
|
+
RailsImager::ImagesControllerTest: test_smartsize
|
3938
|
+
-------------------------------------------------
|
3939
|
+
Processing by RailsImager::ImagesController#show as HTML
|
3940
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200"}}
|
3941
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-_border-_border_color-_force- (0.1ms)
|
3942
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
3943
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3944
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3945
|
+
------------------------------------------------------
|
3946
|
+
RailsImager::ImagesHelperTest: test_#rails_imager_path
|
3947
|
+
------------------------------------------------------
|
3948
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3949
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3950
|
+
---------------------------
|
3951
|
+
RailsImagerTest: test_truth
|
3952
|
+
---------------------------
|
3953
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3954
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
3955
|
+
---------------------------------------------------------------------
|
3956
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
|
3957
|
+
---------------------------------------------------------------------
|
3958
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
3959
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3960
|
+
--------------------------------------------------------------------
|
3961
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
|
3962
|
+
--------------------------------------------------------------------
|
3963
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
3964
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3965
|
+
--------------------------------------------------------------------------------
|
3966
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
|
3967
|
+
--------------------------------------------------------------------------------
|
3968
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
3969
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
3970
|
+
---------------------------------------------------------
|
3971
|
+
RailsImager::ImageHandlerTest: test_should_do_exact_sizes
|
3972
|
+
---------------------------------------------------------
|
3973
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3974
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3975
|
+
------------------------------------------------------------------
|
3976
|
+
RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
|
3977
|
+
------------------------------------------------------------------
|
3978
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3979
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3980
|
+
-------------------------------------------------------------
|
3981
|
+
RailsImager::ImageHandlerTest: test_should_do_rounded_corners
|
3982
|
+
-------------------------------------------------------------
|
3983
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3984
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3985
|
+
---------------------------------------------------------
|
3986
|
+
RailsImager::ImageHandlerTest: test_should_do_smartsizing
|
3987
|
+
---------------------------------------------------------
|
3988
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3989
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
3990
|
+
------------------------------------------------------------
|
3991
|
+
RailsImager::ImageHandlerTest: test_should_send_not_modified
|
3992
|
+
------------------------------------------------------------
|
3993
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
3994
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
3995
|
+
---------------------------------------------------------
|
3996
|
+
RailsImager::ImagesControllerTest: test_cache_via_expires
|
3997
|
+
---------------------------------------------------------
|
3998
|
+
Processing by RailsImager::ImagesController#show as HTML
|
3999
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200", "rounded_corners"=>"8"}}
|
4000
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-8_border-_border_color-_force- (0.1ms)
|
4001
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
4002
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4003
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4004
|
+
----------------------------------------------------------
|
4005
|
+
RailsImager::ImagesControllerTest: test_invalid_parameters
|
4006
|
+
----------------------------------------------------------
|
4007
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4008
|
+
Parameters: {"id"=>"test.png", "image"=>{"invalid_param"=>"kasper"}}
|
4009
|
+
Completed 500 Internal Server Error in 0ms
|
4010
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4011
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4012
|
+
-------------------------------------------------
|
4013
|
+
RailsImager::ImagesControllerTest: test_smartsize
|
4014
|
+
-------------------------------------------------
|
4015
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4016
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200"}}
|
4017
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-_border-_border_color-_force- (0.1ms)
|
4018
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
4019
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4020
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4021
|
+
------------------------------------------------------
|
4022
|
+
RailsImager::ImagesHelperTest: test_#rails_imager_path
|
4023
|
+
------------------------------------------------------
|
4024
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4025
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4026
|
+
---------------------------
|
4027
|
+
RailsImagerTest: test_truth
|
4028
|
+
---------------------------
|
4029
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4030
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
4031
|
+
---------------------------------------------------------------------
|
4032
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
|
4033
|
+
---------------------------------------------------------------------
|
4034
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4035
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4036
|
+
--------------------------------------------------------------------
|
4037
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
|
4038
|
+
--------------------------------------------------------------------
|
4039
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
4040
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
4041
|
+
--------------------------------------------------------------------------------
|
4042
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
|
4043
|
+
--------------------------------------------------------------------------------
|
4044
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
4045
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
4046
|
+
---------------------------------------------------------
|
4047
|
+
RailsImager::ImageHandlerTest: test_should_do_exact_sizes
|
4048
|
+
---------------------------------------------------------
|
4049
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4050
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4051
|
+
------------------------------------------------------------------
|
4052
|
+
RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
|
4053
|
+
------------------------------------------------------------------
|
4054
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4055
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4056
|
+
-------------------------------------------------------------
|
4057
|
+
RailsImager::ImageHandlerTest: test_should_do_rounded_corners
|
4058
|
+
-------------------------------------------------------------
|
4059
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4060
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4061
|
+
---------------------------------------------------------
|
4062
|
+
RailsImager::ImageHandlerTest: test_should_do_smartsizing
|
4063
|
+
---------------------------------------------------------
|
4064
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4065
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4066
|
+
------------------------------------------------------------
|
4067
|
+
RailsImager::ImageHandlerTest: test_should_send_not_modified
|
4068
|
+
------------------------------------------------------------
|
4069
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4070
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4071
|
+
---------------------------------------------------------
|
4072
|
+
RailsImager::ImagesControllerTest: test_cache_via_expires
|
4073
|
+
---------------------------------------------------------
|
4074
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4075
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200", "rounded_corners"=>"8"}}
|
4076
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-8_border-_border_color-_force- (0.1ms)
|
4077
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
4078
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4079
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4080
|
+
----------------------------------------------------------
|
4081
|
+
RailsImager::ImagesControllerTest: test_invalid_parameters
|
4082
|
+
----------------------------------------------------------
|
4083
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4084
|
+
Parameters: {"id"=>"test.png", "image"=>{"invalid_param"=>"kasper"}}
|
4085
|
+
Completed 500 Internal Server Error in 0ms
|
4086
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4087
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4088
|
+
-------------------------------------------------
|
4089
|
+
RailsImager::ImagesControllerTest: test_smartsize
|
4090
|
+
-------------------------------------------------
|
4091
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4092
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200"}}
|
4093
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-_border-_border_color-_force- (0.0ms)
|
4094
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
4095
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4096
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4097
|
+
------------------------------------------------------
|
4098
|
+
RailsImager::ImagesHelperTest: test_#rails_imager_path
|
4099
|
+
------------------------------------------------------
|
4100
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4101
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4102
|
+
---------------------------
|
4103
|
+
RailsImagerTest: test_truth
|
4104
|
+
---------------------------
|
4105
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4106
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
4107
|
+
---------------------------------------------------------------------
|
4108
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
|
4109
|
+
---------------------------------------------------------------------
|
4110
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4111
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4112
|
+
--------------------------------------------------------------------
|
4113
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
|
4114
|
+
--------------------------------------------------------------------
|
4115
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
4116
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
4117
|
+
--------------------------------------------------------------------------------
|
4118
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
|
4119
|
+
--------------------------------------------------------------------------------
|
4120
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
4121
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
4122
|
+
---------------------------------------------------------
|
4123
|
+
RailsImager::ImageHandlerTest: test_should_do_exact_sizes
|
4124
|
+
---------------------------------------------------------
|
4125
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4126
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4127
|
+
------------------------------------------------------------------
|
4128
|
+
RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
|
4129
|
+
------------------------------------------------------------------
|
4130
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4131
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4132
|
+
-------------------------------------------------------------
|
4133
|
+
RailsImager::ImageHandlerTest: test_should_do_rounded_corners
|
4134
|
+
-------------------------------------------------------------
|
4135
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4136
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4137
|
+
---------------------------------------------------------
|
4138
|
+
RailsImager::ImageHandlerTest: test_should_do_smartsizing
|
4139
|
+
---------------------------------------------------------
|
4140
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4141
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4142
|
+
------------------------------------------------------------
|
4143
|
+
RailsImager::ImageHandlerTest: test_should_send_not_modified
|
4144
|
+
------------------------------------------------------------
|
4145
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4146
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4147
|
+
---------------------------------------------------------
|
4148
|
+
RailsImager::ImagesControllerTest: test_cache_via_expires
|
4149
|
+
---------------------------------------------------------
|
4150
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4151
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200", "rounded_corners"=>"8"}}
|
4152
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-8_border-_border_color-_force- (0.1ms)
|
4153
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
4154
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4155
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4156
|
+
----------------------------------------------------------
|
4157
|
+
RailsImager::ImagesControllerTest: test_invalid_parameters
|
4158
|
+
----------------------------------------------------------
|
4159
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4160
|
+
Parameters: {"id"=>"test.png", "image"=>{"invalid_param"=>"kasper"}}
|
4161
|
+
Completed 500 Internal Server Error in 0ms
|
4162
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4163
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4164
|
+
-------------------------------------------------
|
4165
|
+
RailsImager::ImagesControllerTest: test_smartsize
|
4166
|
+
-------------------------------------------------
|
4167
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4168
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200"}}
|
4169
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-_border-_border_color-_force- (0.0ms)
|
4170
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
4171
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4172
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4173
|
+
------------------------------------------------------
|
4174
|
+
RailsImager::ImagesHelperTest: test_#rails_imager_path
|
4175
|
+
------------------------------------------------------
|
4176
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4177
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4178
|
+
---------------------------
|
4179
|
+
RailsImagerTest: test_truth
|
4180
|
+
---------------------------
|
4181
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4182
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
4183
|
+
---------------------------------------------------------------------
|
4184
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
|
4185
|
+
---------------------------------------------------------------------
|
4186
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4187
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4188
|
+
--------------------------------------------------------------------
|
4189
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
|
4190
|
+
--------------------------------------------------------------------
|
4191
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
4192
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4193
|
+
--------------------------------------------------------------------------------
|
4194
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
|
4195
|
+
--------------------------------------------------------------------------------
|
4196
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
4197
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4198
|
+
---------------------------------------------------------
|
4199
|
+
RailsImager::ImageHandlerTest: test_should_do_exact_sizes
|
4200
|
+
---------------------------------------------------------
|
4201
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4202
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4203
|
+
------------------------------------------------------------------
|
4204
|
+
RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
|
4205
|
+
------------------------------------------------------------------
|
4206
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4207
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4208
|
+
-------------------------------------------------------------
|
4209
|
+
RailsImager::ImageHandlerTest: test_should_do_rounded_corners
|
4210
|
+
-------------------------------------------------------------
|
4211
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4212
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4213
|
+
---------------------------------------------------------
|
4214
|
+
RailsImager::ImageHandlerTest: test_should_do_smartsizing
|
4215
|
+
---------------------------------------------------------
|
4216
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4217
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4218
|
+
------------------------------------------------------------
|
4219
|
+
RailsImager::ImageHandlerTest: test_should_send_not_modified
|
4220
|
+
------------------------------------------------------------
|
4221
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4222
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4223
|
+
---------------------------------------------------------
|
4224
|
+
RailsImager::ImagesControllerTest: test_cache_via_expires
|
4225
|
+
---------------------------------------------------------
|
4226
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4227
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200", "rounded_corners"=>"8"}}
|
4228
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-8_border-_border_color-_force- (0.1ms)
|
4229
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
4230
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4231
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4232
|
+
----------------------------------------------------------
|
4233
|
+
RailsImager::ImagesControllerTest: test_invalid_parameters
|
4234
|
+
----------------------------------------------------------
|
4235
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4236
|
+
Parameters: {"id"=>"test.png", "image"=>{"invalid_param"=>"kasper"}}
|
4237
|
+
Completed 500 Internal Server Error in 0ms
|
4238
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4239
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4240
|
+
-------------------------------------------------
|
4241
|
+
RailsImager::ImagesControllerTest: test_smartsize
|
4242
|
+
-------------------------------------------------
|
4243
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4244
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200"}}
|
4245
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-_border-_border_color-_force- (0.0ms)
|
4246
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
4247
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4248
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4249
|
+
------------------------------------------------------
|
4250
|
+
RailsImager::ImagesHelperTest: test_#rails_imager_path
|
4251
|
+
------------------------------------------------------
|
4252
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4253
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4254
|
+
---------------------------
|
4255
|
+
RailsImagerTest: test_truth
|
4256
|
+
---------------------------
|
4257
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4258
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
4259
|
+
---------------------------------------------------------------------
|
4260
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
|
4261
|
+
---------------------------------------------------------------------
|
4262
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4263
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4264
|
+
--------------------------------------------------------------------
|
4265
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
|
4266
|
+
--------------------------------------------------------------------
|
4267
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
4268
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
4269
|
+
--------------------------------------------------------------------------------
|
4270
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
|
4271
|
+
--------------------------------------------------------------------------------
|
4272
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
4273
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4274
|
+
---------------------------------------------------------
|
4275
|
+
RailsImager::ImageHandlerTest: test_should_do_exact_sizes
|
4276
|
+
---------------------------------------------------------
|
4277
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4278
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4279
|
+
------------------------------------------------------------------
|
4280
|
+
RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
|
4281
|
+
------------------------------------------------------------------
|
4282
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4283
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4284
|
+
-------------------------------------------------------------
|
4285
|
+
RailsImager::ImageHandlerTest: test_should_do_rounded_corners
|
4286
|
+
-------------------------------------------------------------
|
4287
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4288
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4289
|
+
---------------------------------------------------------
|
4290
|
+
RailsImager::ImageHandlerTest: test_should_do_smartsizing
|
4291
|
+
---------------------------------------------------------
|
4292
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4293
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4294
|
+
------------------------------------------------------------
|
4295
|
+
RailsImager::ImageHandlerTest: test_should_send_not_modified
|
4296
|
+
------------------------------------------------------------
|
4297
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4298
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4299
|
+
---------------------------------------------------------
|
4300
|
+
RailsImager::ImagesControllerTest: test_cache_via_expires
|
4301
|
+
---------------------------------------------------------
|
4302
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4303
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200", "rounded_corners"=>"8"}}
|
4304
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-8_border-_border_color-_force- (0.1ms)
|
4305
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
4306
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4307
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4308
|
+
----------------------------------------------------------
|
4309
|
+
RailsImager::ImagesControllerTest: test_invalid_parameters
|
4310
|
+
----------------------------------------------------------
|
4311
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4312
|
+
Parameters: {"id"=>"test.png", "image"=>{"invalid_param"=>"kasper"}}
|
4313
|
+
Completed 500 Internal Server Error in 0ms
|
4314
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4315
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4316
|
+
-------------------------------------------------
|
4317
|
+
RailsImager::ImagesControllerTest: test_smartsize
|
4318
|
+
-------------------------------------------------
|
4319
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4320
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200"}}
|
4321
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-_border-_border_color-_force- (0.0ms)
|
4322
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
4323
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4324
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4325
|
+
------------------------------------------------------
|
4326
|
+
RailsImager::ImagesHelperTest: test_#rails_imager_path
|
4327
|
+
------------------------------------------------------
|
4328
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4329
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4330
|
+
---------------------------
|
4331
|
+
RailsImagerTest: test_truth
|
4332
|
+
---------------------------
|
4333
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4334
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
4335
|
+
---------------------------------------------------------------------
|
4336
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
|
4337
|
+
---------------------------------------------------------------------
|
4338
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4339
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4340
|
+
--------------------------------------------------------------------
|
4341
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
|
4342
|
+
--------------------------------------------------------------------
|
4343
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4344
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4345
|
+
--------------------------------------------------------------------------------
|
4346
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
|
4347
|
+
--------------------------------------------------------------------------------
|
4348
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
4349
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4350
|
+
---------------------------------------------------------
|
4351
|
+
RailsImager::ImageHandlerTest: test_should_do_exact_sizes
|
4352
|
+
---------------------------------------------------------
|
4353
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4354
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4355
|
+
------------------------------------------------------------------
|
4356
|
+
RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
|
4357
|
+
------------------------------------------------------------------
|
4358
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4359
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4360
|
+
-------------------------------------------------------------
|
4361
|
+
RailsImager::ImageHandlerTest: test_should_do_rounded_corners
|
4362
|
+
-------------------------------------------------------------
|
4363
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4364
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4365
|
+
---------------------------------------------------------
|
4366
|
+
RailsImager::ImageHandlerTest: test_should_do_smartsizing
|
4367
|
+
---------------------------------------------------------
|
4368
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4369
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4370
|
+
------------------------------------------------------------
|
4371
|
+
RailsImager::ImageHandlerTest: test_should_send_not_modified
|
4372
|
+
------------------------------------------------------------
|
4373
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4374
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4375
|
+
---------------------------------------------------------
|
4376
|
+
RailsImager::ImagesControllerTest: test_cache_via_expires
|
4377
|
+
---------------------------------------------------------
|
4378
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4379
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200", "rounded_corners"=>"8"}}
|
4380
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-8_border-_border_color-_force- (0.1ms)
|
4381
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
4382
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4383
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4384
|
+
----------------------------------------------------------
|
4385
|
+
RailsImager::ImagesControllerTest: test_invalid_parameters
|
4386
|
+
----------------------------------------------------------
|
4387
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4388
|
+
Parameters: {"id"=>"test.png", "image"=>{"invalid_param"=>"kasper"}}
|
4389
|
+
Completed 500 Internal Server Error in 0ms
|
4390
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4391
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4392
|
+
-------------------------------------------------
|
4393
|
+
RailsImager::ImagesControllerTest: test_smartsize
|
4394
|
+
-------------------------------------------------
|
4395
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4396
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200"}}
|
4397
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-_border-_border_color-_force- (0.0ms)
|
4398
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
4399
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4400
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4401
|
+
------------------------------------------------------
|
4402
|
+
RailsImager::ImagesHelperTest: test_#rails_imager_path
|
4403
|
+
------------------------------------------------------
|
4404
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4405
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4406
|
+
---------------------------
|
4407
|
+
RailsImagerTest: test_truth
|
4408
|
+
---------------------------
|
4409
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4410
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
4411
|
+
---------------------------------------------------------------------
|
4412
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
|
4413
|
+
---------------------------------------------------------------------
|
4414
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4415
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4416
|
+
--------------------------------------------------------------------
|
4417
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
|
4418
|
+
--------------------------------------------------------------------
|
4419
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4420
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4421
|
+
--------------------------------------------------------------------------------
|
4422
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
|
4423
|
+
--------------------------------------------------------------------------------
|
4424
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
4425
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4426
|
+
---------------------------------------------------------
|
4427
|
+
RailsImager::ImageHandlerTest: test_should_do_exact_sizes
|
4428
|
+
---------------------------------------------------------
|
4429
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4430
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4431
|
+
------------------------------------------------------------------
|
4432
|
+
RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
|
4433
|
+
------------------------------------------------------------------
|
4434
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4435
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4436
|
+
-------------------------------------------------------------
|
4437
|
+
RailsImager::ImageHandlerTest: test_should_do_rounded_corners
|
4438
|
+
-------------------------------------------------------------
|
4439
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4440
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4441
|
+
---------------------------------------------------------
|
4442
|
+
RailsImager::ImageHandlerTest: test_should_do_smartsizing
|
4443
|
+
---------------------------------------------------------
|
4444
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4445
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4446
|
+
------------------------------------------------------------
|
4447
|
+
RailsImager::ImageHandlerTest: test_should_send_not_modified
|
4448
|
+
------------------------------------------------------------
|
4449
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4450
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4451
|
+
---------------------------------------------------------
|
4452
|
+
RailsImager::ImagesControllerTest: test_cache_via_expires
|
4453
|
+
---------------------------------------------------------
|
4454
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4455
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200", "rounded_corners"=>"8"}}
|
4456
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-8_border-_border_color-_force- (0.1ms)
|
4457
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
4458
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4459
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4460
|
+
----------------------------------------------------------
|
4461
|
+
RailsImager::ImagesControllerTest: test_invalid_parameters
|
4462
|
+
----------------------------------------------------------
|
4463
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4464
|
+
Parameters: {"id"=>"test.png", "image"=>{"invalid_param"=>"kasper"}}
|
4465
|
+
Completed 500 Internal Server Error in 0ms
|
4466
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4467
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4468
|
+
-------------------------------------------------
|
4469
|
+
RailsImager::ImagesControllerTest: test_smartsize
|
4470
|
+
-------------------------------------------------
|
4471
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4472
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200"}}
|
4473
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-_border-_border_color-_force- (0.0ms)
|
4474
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
4475
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4476
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4477
|
+
------------------------------------------------------
|
4478
|
+
RailsImager::ImagesHelperTest: test_#rails_imager_path
|
4479
|
+
------------------------------------------------------
|
4480
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4481
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4482
|
+
---------------------------
|
4483
|
+
RailsImagerTest: test_truth
|
4484
|
+
---------------------------
|
4485
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4486
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
4487
|
+
---------------------------------------------------------------------
|
4488
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
|
4489
|
+
---------------------------------------------------------------------
|
4490
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4491
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4492
|
+
--------------------------------------------------------------------
|
4493
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
|
4494
|
+
--------------------------------------------------------------------
|
4495
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4496
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4497
|
+
--------------------------------------------------------------------------------
|
4498
|
+
RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
|
4499
|
+
--------------------------------------------------------------------------------
|
4500
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4501
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4502
|
+
---------------------------------------------------------
|
4503
|
+
RailsImager::ImageHandlerTest: test_should_do_exact_sizes
|
4504
|
+
---------------------------------------------------------
|
4505
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4506
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4507
|
+
------------------------------------------------------------------
|
4508
|
+
RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
|
4509
|
+
------------------------------------------------------------------
|
4510
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4511
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4512
|
+
-------------------------------------------------------------
|
4513
|
+
RailsImager::ImageHandlerTest: test_should_do_rounded_corners
|
4514
|
+
-------------------------------------------------------------
|
4515
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4516
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4517
|
+
---------------------------------------------------------
|
4518
|
+
RailsImager::ImageHandlerTest: test_should_do_smartsizing
|
4519
|
+
---------------------------------------------------------
|
4520
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4521
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4522
|
+
------------------------------------------------------------
|
4523
|
+
RailsImager::ImageHandlerTest: test_should_send_not_modified
|
4524
|
+
------------------------------------------------------------
|
4525
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4526
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4527
|
+
---------------------------------------------------------
|
4528
|
+
RailsImager::ImagesControllerTest: test_cache_via_expires
|
4529
|
+
---------------------------------------------------------
|
4530
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4531
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200", "rounded_corners"=>"8"}}
|
4532
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-8_border-_border_color-_force- (0.1ms)
|
4533
|
+
Completed 200 OK in 1ms (ActiveRecord: 0.0ms)
|
4534
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4535
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4536
|
+
----------------------------------------------------------
|
4537
|
+
RailsImager::ImagesControllerTest: test_invalid_parameters
|
4538
|
+
----------------------------------------------------------
|
4539
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4540
|
+
Parameters: {"id"=>"test.png", "image"=>{"invalid_param"=>"kasper"}}
|
4541
|
+
Completed 500 Internal Server Error in 0ms
|
4542
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4543
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4544
|
+
-------------------------------------------------
|
4545
|
+
RailsImager::ImagesControllerTest: test_smartsize
|
4546
|
+
-------------------------------------------------
|
4547
|
+
Processing by RailsImager::ImagesController#show as HTML
|
4548
|
+
Parameters: {"id"=>"test.png", "image"=>{"smartsize"=>"200"}}
|
4549
|
+
Sent file /tmp/rails-imager-cache/_media_storage_Dev_Rails_rails_imager_test_dummy_public_test.png__ARGS___width-_height-_smartsize-200_maxwidth-_maxheight-_rounded_corners-_border-_border_color-_force- (0.0ms)
|
4550
|
+
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
|
4551
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4552
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4553
|
+
------------------------------------------------------
|
4554
|
+
RailsImager::ImagesHelperTest: test_#rails_imager_path
|
4555
|
+
------------------------------------------------------
|
4556
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4557
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4558
|
+
---------------------------
|
4559
|
+
RailsImagerTest: test_truth
|
3495
4560
|
---------------------------
|
3496
4561
|
[1m[35m (0.0ms)[0m rollback transaction
|