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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4c248058b9c9a017897c2e1fd52700bd58510a11
4
- data.tar.gz: dc53d7c0db172e315f661f2af858b10eaf83c20c
3
+ metadata.gz: e23f8cfbf521fd50a34d04f4647767c57ec48435
4
+ data.tar.gz: 7508f7079326580b1edff27713a0ab5437ca4322
5
5
  SHA512:
6
- metadata.gz: bf9a71fd2e691b4ec05addd493aaaa3f37e94976a683a3946470c33ab0a3c84d27e1137c635485d93e45a76510e40288c096ab5c6088e72131d30756052ff245
7
- data.tar.gz: b4fb1dbe754b95503e4e23837174991cdc9d8d6dcc2fcab4d10509c7176ad3c93ea3abba418bc49504479359e566196f6290201d1822da3f7ee11bdc38ddb13d
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
- image = Magick::Image.read(image_path).first
19
- image = rimger.img_from_params(:image => image, :params => image_params)
20
-
21
- response.headers["Expires"] = 2.hours.from_now.httpdate
22
- response.headers["Last-Modified"] = File.mtime(image_path).httpdate
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) if !Dir.exists?(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}'." if !HANDLE_ALLOWED_ARGS.include?(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." if !controller
205
+ raise "No controller was given." unless controller
203
206
  request = controller.request
204
207
  params = args[:params]
205
- raise "No params was given." if !params
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: fpath, request: request, params: params)
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.expires_in 1.weeks, public: true
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 if !File.file?(fn)
245
+ next unless File.file?(fn)
231
246
 
232
247
  if blk == nil
233
248
  res = true
@@ -1,3 +1,3 @@
1
1
  module RailsImager
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
@@ -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
- assert_same img.columns, 200
12
- assert_same img.rows, 196
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
- assert_not_nil response.headers["Expires"]
19
- assert_not_nil response.headers["Last-Modified"], File.mtime(image_path).httpdate
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
@@ -3492,5 +3492,1070 @@ RailsImager::ImagesHelperTest: test_#rails_imager_path
3492
3492
   (0.0ms) begin transaction
3493
3493
  ---------------------------
3494
3494
  RailsImagerTest: test_truth
3495
+ ---------------------------
3496
+  (0.0ms) rollback transaction
3497
+  (0.2ms) begin transaction
3498
+ ---------------------------------------------------------------------
3499
+ RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
3500
+ ---------------------------------------------------------------------
3501
+  (0.0ms) rollback transaction
3502
+  (0.0ms) begin transaction
3503
+ --------------------------------------------------------------------
3504
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
3505
+ --------------------------------------------------------------------
3506
+  (0.1ms) rollback transaction
3507
+  (0.0ms) begin transaction
3508
+ --------------------------------------------------------------------------------
3509
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
3510
+ --------------------------------------------------------------------------------
3511
+  (0.0ms) rollback transaction
3512
+  (0.0ms) begin transaction
3513
+ ---------------------------------------------------------
3514
+ RailsImager::ImageHandlerTest: test_should_do_exact_sizes
3515
+ ---------------------------------------------------------
3516
+  (0.1ms) rollback transaction
3517
+  (0.0ms) begin transaction
3518
+ ------------------------------------------------------------------
3519
+ RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
3520
+ ------------------------------------------------------------------
3521
+  (0.1ms) rollback transaction
3522
+  (0.1ms) begin transaction
3523
+ -------------------------------------------------------------
3524
+ RailsImager::ImageHandlerTest: test_should_do_rounded_corners
3525
+ -------------------------------------------------------------
3526
+  (0.1ms) rollback transaction
3527
+  (0.0ms) begin transaction
3528
+ ---------------------------------------------------------
3529
+ RailsImager::ImageHandlerTest: test_should_do_smartsizing
3530
+ ---------------------------------------------------------
3531
+  (0.1ms) rollback transaction
3532
+  (0.0ms) begin transaction
3533
+ ------------------------------------------------------------
3534
+ RailsImager::ImageHandlerTest: test_should_send_not_modified
3535
+ ------------------------------------------------------------
3536
+  (0.1ms) rollback transaction
3537
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
3547
+  (0.0ms) begin transaction
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
+  (0.0ms) rollback transaction
3555
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
3564
+  (0.1ms) begin transaction
3565
+ ------------------------------------------------------
3566
+ RailsImager::ImagesHelperTest: test_#rails_imager_path
3567
+ ------------------------------------------------------
3568
+  (0.1ms) rollback transaction
3569
+  (0.1ms) begin transaction
3570
+ ---------------------------
3571
+ RailsImagerTest: test_truth
3572
+ ---------------------------
3573
+  (0.1ms) rollback transaction
3574
+  (0.2ms) begin transaction
3575
+ ---------------------------------------------------------------------
3576
+ RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
3577
+ ---------------------------------------------------------------------
3578
+  (0.0ms) rollback transaction
3579
+  (0.1ms) begin transaction
3580
+ --------------------------------------------------------------------
3581
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
3582
+ --------------------------------------------------------------------
3583
+  (0.1ms) rollback transaction
3584
+  (0.0ms) begin transaction
3585
+ --------------------------------------------------------------------------------
3586
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
3587
+ --------------------------------------------------------------------------------
3588
+  (0.2ms) rollback transaction
3589
+  (0.1ms) begin transaction
3590
+ ---------------------------------------------------------
3591
+ RailsImager::ImageHandlerTest: test_should_do_exact_sizes
3592
+ ---------------------------------------------------------
3593
+  (0.1ms) rollback transaction
3594
+  (0.0ms) begin transaction
3595
+ ------------------------------------------------------------------
3596
+ RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
3597
+ ------------------------------------------------------------------
3598
+  (0.1ms) rollback transaction
3599
+  (0.0ms) begin transaction
3600
+ -------------------------------------------------------------
3601
+ RailsImager::ImageHandlerTest: test_should_do_rounded_corners
3602
+ -------------------------------------------------------------
3603
+  (0.1ms) rollback transaction
3604
+  (0.0ms) begin transaction
3605
+ ---------------------------------------------------------
3606
+ RailsImager::ImageHandlerTest: test_should_do_smartsizing
3607
+ ---------------------------------------------------------
3608
+  (0.1ms) rollback transaction
3609
+  (0.0ms) begin transaction
3610
+ ------------------------------------------------------------
3611
+ RailsImager::ImageHandlerTest: test_should_send_not_modified
3612
+ ------------------------------------------------------------
3613
+  (0.1ms) rollback transaction
3614
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
3623
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
3631
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
3640
+  (0.1ms) begin transaction
3641
+ ------------------------------------------------------
3642
+ RailsImager::ImagesHelperTest: test_#rails_imager_path
3643
+ ------------------------------------------------------
3644
+  (0.0ms) rollback transaction
3645
+  (0.0ms) begin transaction
3646
+ ---------------------------
3647
+ RailsImagerTest: test_truth
3648
+ ---------------------------
3649
+  (0.0ms) rollback transaction
3650
+  (0.2ms) begin transaction
3651
+ ---------------------------------------------------------------------
3652
+ RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
3653
+ ---------------------------------------------------------------------
3654
+  (0.0ms) rollback transaction
3655
+  (0.0ms) begin transaction
3656
+ --------------------------------------------------------------------
3657
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
3658
+ --------------------------------------------------------------------
3659
+  (0.3ms) rollback transaction
3660
+  (0.2ms) begin transaction
3661
+ --------------------------------------------------------------------------------
3662
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
3663
+ --------------------------------------------------------------------------------
3664
+  (0.5ms) rollback transaction
3665
+  (0.2ms) begin transaction
3666
+ ---------------------------------------------------------
3667
+ RailsImager::ImageHandlerTest: test_should_do_exact_sizes
3668
+ ---------------------------------------------------------
3669
+  (0.1ms) rollback transaction
3670
+  (0.0ms) begin transaction
3671
+ ------------------------------------------------------------------
3672
+ RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
3673
+ ------------------------------------------------------------------
3674
+  (0.1ms) rollback transaction
3675
+  (0.0ms) begin transaction
3676
+ -------------------------------------------------------------
3677
+ RailsImager::ImageHandlerTest: test_should_do_rounded_corners
3678
+ -------------------------------------------------------------
3679
+  (0.1ms) rollback transaction
3680
+  (0.0ms) begin transaction
3681
+ ---------------------------------------------------------
3682
+ RailsImager::ImageHandlerTest: test_should_do_smartsizing
3683
+ ---------------------------------------------------------
3684
+  (0.1ms) rollback transaction
3685
+  (0.1ms) begin transaction
3686
+ ------------------------------------------------------------
3687
+ RailsImager::ImageHandlerTest: test_should_send_not_modified
3688
+ ------------------------------------------------------------
3689
+  (0.1ms) rollback transaction
3690
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
3699
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
3707
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
3716
+  (0.0ms) begin transaction
3717
+ ------------------------------------------------------
3718
+ RailsImager::ImagesHelperTest: test_#rails_imager_path
3719
+ ------------------------------------------------------
3720
+  (0.1ms) rollback transaction
3721
+  (0.0ms) begin transaction
3722
+ ---------------------------
3723
+ RailsImagerTest: test_truth
3724
+ ---------------------------
3725
+  (0.0ms) rollback transaction
3726
+  (0.3ms) begin transaction
3727
+ ---------------------------------------------------------------------
3728
+ RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
3729
+ ---------------------------------------------------------------------
3730
+  (0.0ms) rollback transaction
3731
+  (0.1ms) begin transaction
3732
+ --------------------------------------------------------------------
3733
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
3734
+ --------------------------------------------------------------------
3735
+  (0.1ms) rollback transaction
3736
+  (0.0ms) begin transaction
3737
+ --------------------------------------------------------------------------------
3738
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
3739
+ --------------------------------------------------------------------------------
3740
+  (0.1ms) rollback transaction
3741
+  (0.0ms) begin transaction
3742
+ ---------------------------------------------------------
3743
+ RailsImager::ImageHandlerTest: test_should_do_exact_sizes
3744
+ ---------------------------------------------------------
3745
+  (0.1ms) rollback transaction
3746
+  (0.0ms) begin transaction
3747
+ ------------------------------------------------------------------
3748
+ RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
3749
+ ------------------------------------------------------------------
3750
+  (0.1ms) rollback transaction
3751
+  (0.0ms) begin transaction
3752
+ -------------------------------------------------------------
3753
+ RailsImager::ImageHandlerTest: test_should_do_rounded_corners
3754
+ -------------------------------------------------------------
3755
+  (0.1ms) rollback transaction
3756
+  (0.0ms) begin transaction
3757
+ ---------------------------------------------------------
3758
+ RailsImager::ImageHandlerTest: test_should_do_smartsizing
3759
+ ---------------------------------------------------------
3760
+  (0.1ms) rollback transaction
3761
+  (0.0ms) begin transaction
3762
+ ------------------------------------------------------------
3763
+ RailsImager::ImageHandlerTest: test_should_send_not_modified
3764
+ ------------------------------------------------------------
3765
+  (0.1ms) rollback transaction
3766
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
3775
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
3783
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
3792
+  (0.0ms) begin transaction
3793
+ ------------------------------------------------------
3794
+ RailsImager::ImagesHelperTest: test_#rails_imager_path
3795
+ ------------------------------------------------------
3796
+  (0.1ms) rollback transaction
3797
+  (0.0ms) begin transaction
3798
+ ---------------------------
3799
+ RailsImagerTest: test_truth
3800
+ ---------------------------
3801
+  (0.0ms) rollback transaction
3802
+  (0.2ms) begin transaction
3803
+ ---------------------------------------------------------------------
3804
+ RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
3805
+ ---------------------------------------------------------------------
3806
+  (0.0ms) rollback transaction
3807
+  (0.0ms) begin transaction
3808
+ --------------------------------------------------------------------
3809
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
3810
+ --------------------------------------------------------------------
3811
+  (0.3ms) rollback transaction
3812
+  (0.1ms) begin transaction
3813
+ --------------------------------------------------------------------------------
3814
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
3815
+ --------------------------------------------------------------------------------
3816
+  (0.3ms) rollback transaction
3817
+  (0.2ms) begin transaction
3818
+ ---------------------------------------------------------
3819
+ RailsImager::ImageHandlerTest: test_should_do_exact_sizes
3820
+ ---------------------------------------------------------
3821
+  (0.1ms) rollback transaction
3822
+  (0.0ms) begin transaction
3823
+ ------------------------------------------------------------------
3824
+ RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
3825
+ ------------------------------------------------------------------
3826
+  (0.1ms) rollback transaction
3827
+  (0.0ms) begin transaction
3828
+ -------------------------------------------------------------
3829
+ RailsImager::ImageHandlerTest: test_should_do_rounded_corners
3830
+ -------------------------------------------------------------
3831
+  (0.1ms) rollback transaction
3832
+  (0.0ms) begin transaction
3833
+ ---------------------------------------------------------
3834
+ RailsImager::ImageHandlerTest: test_should_do_smartsizing
3835
+ ---------------------------------------------------------
3836
+  (0.1ms) rollback transaction
3837
+  (0.0ms) begin transaction
3838
+ ------------------------------------------------------------
3839
+ RailsImager::ImageHandlerTest: test_should_send_not_modified
3840
+ ------------------------------------------------------------
3841
+  (0.1ms) rollback transaction
3842
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
3851
+  (0.0ms) begin transaction
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
+  (0.0ms) rollback transaction
3859
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
3868
+  (0.0ms) begin transaction
3869
+ ------------------------------------------------------
3870
+ RailsImager::ImagesHelperTest: test_#rails_imager_path
3871
+ ------------------------------------------------------
3872
+  (0.0ms) rollback transaction
3873
+  (0.0ms) begin transaction
3874
+ ---------------------------
3875
+ RailsImagerTest: test_truth
3876
+ ---------------------------
3877
+  (0.0ms) rollback transaction
3878
+  (0.3ms) begin transaction
3879
+ ---------------------------------------------------------------------
3880
+ RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
3881
+ ---------------------------------------------------------------------
3882
+  (0.0ms) rollback transaction
3883
+  (0.0ms) begin transaction
3884
+ --------------------------------------------------------------------
3885
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
3886
+ --------------------------------------------------------------------
3887
+  (0.1ms) rollback transaction
3888
+  (0.1ms) begin transaction
3889
+ --------------------------------------------------------------------------------
3890
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
3891
+ --------------------------------------------------------------------------------
3892
+  (0.3ms) rollback transaction
3893
+  (0.2ms) begin transaction
3894
+ ---------------------------------------------------------
3895
+ RailsImager::ImageHandlerTest: test_should_do_exact_sizes
3896
+ ---------------------------------------------------------
3897
+  (0.1ms) rollback transaction
3898
+  (0.0ms) begin transaction
3899
+ ------------------------------------------------------------------
3900
+ RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
3901
+ ------------------------------------------------------------------
3902
+  (0.1ms) rollback transaction
3903
+  (0.0ms) begin transaction
3904
+ -------------------------------------------------------------
3905
+ RailsImager::ImageHandlerTest: test_should_do_rounded_corners
3906
+ -------------------------------------------------------------
3907
+  (0.1ms) rollback transaction
3908
+  (0.1ms) begin transaction
3909
+ ---------------------------------------------------------
3910
+ RailsImager::ImageHandlerTest: test_should_do_smartsizing
3911
+ ---------------------------------------------------------
3912
+  (0.1ms) rollback transaction
3913
+  (0.0ms) begin transaction
3914
+ ------------------------------------------------------------
3915
+ RailsImager::ImageHandlerTest: test_should_send_not_modified
3916
+ ------------------------------------------------------------
3917
+  (0.1ms) rollback transaction
3918
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
3927
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
3935
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
3944
+  (0.0ms) begin transaction
3945
+ ------------------------------------------------------
3946
+ RailsImager::ImagesHelperTest: test_#rails_imager_path
3947
+ ------------------------------------------------------
3948
+  (0.0ms) rollback transaction
3949
+  (0.0ms) begin transaction
3950
+ ---------------------------
3951
+ RailsImagerTest: test_truth
3952
+ ---------------------------
3953
+  (0.0ms) rollback transaction
3954
+  (0.2ms) begin transaction
3955
+ ---------------------------------------------------------------------
3956
+ RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
3957
+ ---------------------------------------------------------------------
3958
+  (0.0ms) rollback transaction
3959
+  (0.0ms) begin transaction
3960
+ --------------------------------------------------------------------
3961
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
3962
+ --------------------------------------------------------------------
3963
+  (0.3ms) rollback transaction
3964
+  (0.1ms) begin transaction
3965
+ --------------------------------------------------------------------------------
3966
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
3967
+ --------------------------------------------------------------------------------
3968
+  (0.3ms) rollback transaction
3969
+  (0.2ms) begin transaction
3970
+ ---------------------------------------------------------
3971
+ RailsImager::ImageHandlerTest: test_should_do_exact_sizes
3972
+ ---------------------------------------------------------
3973
+  (0.1ms) rollback transaction
3974
+  (0.0ms) begin transaction
3975
+ ------------------------------------------------------------------
3976
+ RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
3977
+ ------------------------------------------------------------------
3978
+  (0.1ms) rollback transaction
3979
+  (0.0ms) begin transaction
3980
+ -------------------------------------------------------------
3981
+ RailsImager::ImageHandlerTest: test_should_do_rounded_corners
3982
+ -------------------------------------------------------------
3983
+  (0.1ms) rollback transaction
3984
+  (0.0ms) begin transaction
3985
+ ---------------------------------------------------------
3986
+ RailsImager::ImageHandlerTest: test_should_do_smartsizing
3987
+ ---------------------------------------------------------
3988
+  (0.1ms) rollback transaction
3989
+  (0.1ms) begin transaction
3990
+ ------------------------------------------------------------
3991
+ RailsImager::ImageHandlerTest: test_should_send_not_modified
3992
+ ------------------------------------------------------------
3993
+  (0.1ms) rollback transaction
3994
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
4003
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
4011
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
4020
+  (0.1ms) begin transaction
4021
+ ------------------------------------------------------
4022
+ RailsImager::ImagesHelperTest: test_#rails_imager_path
4023
+ ------------------------------------------------------
4024
+  (0.1ms) rollback transaction
4025
+  (0.0ms) begin transaction
4026
+ ---------------------------
4027
+ RailsImagerTest: test_truth
4028
+ ---------------------------
4029
+  (0.1ms) rollback transaction
4030
+  (0.2ms) begin transaction
4031
+ ---------------------------------------------------------------------
4032
+ RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
4033
+ ---------------------------------------------------------------------
4034
+  (0.0ms) rollback transaction
4035
+  (0.1ms) begin transaction
4036
+ --------------------------------------------------------------------
4037
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
4038
+ --------------------------------------------------------------------
4039
+  (0.3ms) rollback transaction
4040
+  (0.2ms) begin transaction
4041
+ --------------------------------------------------------------------------------
4042
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
4043
+ --------------------------------------------------------------------------------
4044
+  (0.2ms) rollback transaction
4045
+  (0.2ms) begin transaction
4046
+ ---------------------------------------------------------
4047
+ RailsImager::ImageHandlerTest: test_should_do_exact_sizes
4048
+ ---------------------------------------------------------
4049
+  (0.1ms) rollback transaction
4050
+  (0.0ms) begin transaction
4051
+ ------------------------------------------------------------------
4052
+ RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
4053
+ ------------------------------------------------------------------
4054
+  (0.1ms) rollback transaction
4055
+  (0.0ms) begin transaction
4056
+ -------------------------------------------------------------
4057
+ RailsImager::ImageHandlerTest: test_should_do_rounded_corners
4058
+ -------------------------------------------------------------
4059
+  (0.1ms) rollback transaction
4060
+  (0.0ms) begin transaction
4061
+ ---------------------------------------------------------
4062
+ RailsImager::ImageHandlerTest: test_should_do_smartsizing
4063
+ ---------------------------------------------------------
4064
+  (0.1ms) rollback transaction
4065
+  (0.1ms) begin transaction
4066
+ ------------------------------------------------------------
4067
+ RailsImager::ImageHandlerTest: test_should_send_not_modified
4068
+ ------------------------------------------------------------
4069
+  (0.1ms) rollback transaction
4070
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
4079
+  (0.0ms) begin transaction
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
+  (0.0ms) rollback transaction
4087
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
4096
+  (0.0ms) begin transaction
4097
+ ------------------------------------------------------
4098
+ RailsImager::ImagesHelperTest: test_#rails_imager_path
4099
+ ------------------------------------------------------
4100
+  (0.0ms) rollback transaction
4101
+  (0.0ms) begin transaction
4102
+ ---------------------------
4103
+ RailsImagerTest: test_truth
4104
+ ---------------------------
4105
+  (0.0ms) rollback transaction
4106
+  (0.3ms) begin transaction
4107
+ ---------------------------------------------------------------------
4108
+ RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
4109
+ ---------------------------------------------------------------------
4110
+  (0.0ms) rollback transaction
4111
+  (0.0ms) begin transaction
4112
+ --------------------------------------------------------------------
4113
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
4114
+ --------------------------------------------------------------------
4115
+  (0.3ms) rollback transaction
4116
+  (0.2ms) begin transaction
4117
+ --------------------------------------------------------------------------------
4118
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
4119
+ --------------------------------------------------------------------------------
4120
+  (0.3ms) rollback transaction
4121
+  (0.2ms) begin transaction
4122
+ ---------------------------------------------------------
4123
+ RailsImager::ImageHandlerTest: test_should_do_exact_sizes
4124
+ ---------------------------------------------------------
4125
+  (0.1ms) rollback transaction
4126
+  (0.0ms) begin transaction
4127
+ ------------------------------------------------------------------
4128
+ RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
4129
+ ------------------------------------------------------------------
4130
+  (0.1ms) rollback transaction
4131
+  (0.0ms) begin transaction
4132
+ -------------------------------------------------------------
4133
+ RailsImager::ImageHandlerTest: test_should_do_rounded_corners
4134
+ -------------------------------------------------------------
4135
+  (0.1ms) rollback transaction
4136
+  (0.0ms) begin transaction
4137
+ ---------------------------------------------------------
4138
+ RailsImager::ImageHandlerTest: test_should_do_smartsizing
4139
+ ---------------------------------------------------------
4140
+  (0.1ms) rollback transaction
4141
+  (0.1ms) begin transaction
4142
+ ------------------------------------------------------------
4143
+ RailsImager::ImageHandlerTest: test_should_send_not_modified
4144
+ ------------------------------------------------------------
4145
+  (0.1ms) rollback transaction
4146
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
4155
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
4163
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
4172
+  (0.0ms) begin transaction
4173
+ ------------------------------------------------------
4174
+ RailsImager::ImagesHelperTest: test_#rails_imager_path
4175
+ ------------------------------------------------------
4176
+  (0.0ms) rollback transaction
4177
+  (0.0ms) begin transaction
4178
+ ---------------------------
4179
+ RailsImagerTest: test_truth
4180
+ ---------------------------
4181
+  (0.0ms) rollback transaction
4182
+  (0.2ms) begin transaction
4183
+ ---------------------------------------------------------------------
4184
+ RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
4185
+ ---------------------------------------------------------------------
4186
+  (0.0ms) rollback transaction
4187
+  (0.0ms) begin transaction
4188
+ --------------------------------------------------------------------
4189
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
4190
+ --------------------------------------------------------------------
4191
+  (0.2ms) rollback transaction
4192
+  (0.1ms) begin transaction
4193
+ --------------------------------------------------------------------------------
4194
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
4195
+ --------------------------------------------------------------------------------
4196
+  (0.2ms) rollback transaction
4197
+  (0.1ms) begin transaction
4198
+ ---------------------------------------------------------
4199
+ RailsImager::ImageHandlerTest: test_should_do_exact_sizes
4200
+ ---------------------------------------------------------
4201
+  (0.1ms) rollback transaction
4202
+  (0.0ms) begin transaction
4203
+ ------------------------------------------------------------------
4204
+ RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
4205
+ ------------------------------------------------------------------
4206
+  (0.1ms) rollback transaction
4207
+  (0.0ms) begin transaction
4208
+ -------------------------------------------------------------
4209
+ RailsImager::ImageHandlerTest: test_should_do_rounded_corners
4210
+ -------------------------------------------------------------
4211
+  (0.1ms) rollback transaction
4212
+  (0.0ms) begin transaction
4213
+ ---------------------------------------------------------
4214
+ RailsImager::ImageHandlerTest: test_should_do_smartsizing
4215
+ ---------------------------------------------------------
4216
+  (0.1ms) rollback transaction
4217
+  (0.1ms) begin transaction
4218
+ ------------------------------------------------------------
4219
+ RailsImager::ImageHandlerTest: test_should_send_not_modified
4220
+ ------------------------------------------------------------
4221
+  (0.1ms) rollback transaction
4222
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
4231
+  (0.0ms) begin transaction
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
+  (0.0ms) rollback transaction
4239
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
4248
+  (0.0ms) begin transaction
4249
+ ------------------------------------------------------
4250
+ RailsImager::ImagesHelperTest: test_#rails_imager_path
4251
+ ------------------------------------------------------
4252
+  (0.0ms) rollback transaction
4253
+  (0.0ms) begin transaction
4254
+ ---------------------------
4255
+ RailsImagerTest: test_truth
4256
+ ---------------------------
4257
+  (0.0ms) rollback transaction
4258
+  (0.2ms) begin transaction
4259
+ ---------------------------------------------------------------------
4260
+ RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
4261
+ ---------------------------------------------------------------------
4262
+  (0.0ms) rollback transaction
4263
+  (0.1ms) begin transaction
4264
+ --------------------------------------------------------------------
4265
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
4266
+ --------------------------------------------------------------------
4267
+  (0.3ms) rollback transaction
4268
+  (0.2ms) begin transaction
4269
+ --------------------------------------------------------------------------------
4270
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
4271
+ --------------------------------------------------------------------------------
4272
+  (0.3ms) rollback transaction
4273
+  (0.1ms) begin transaction
4274
+ ---------------------------------------------------------
4275
+ RailsImager::ImageHandlerTest: test_should_do_exact_sizes
4276
+ ---------------------------------------------------------
4277
+  (0.1ms) rollback transaction
4278
+  (0.0ms) begin transaction
4279
+ ------------------------------------------------------------------
4280
+ RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
4281
+ ------------------------------------------------------------------
4282
+  (0.1ms) rollback transaction
4283
+  (0.0ms) begin transaction
4284
+ -------------------------------------------------------------
4285
+ RailsImager::ImageHandlerTest: test_should_do_rounded_corners
4286
+ -------------------------------------------------------------
4287
+  (0.1ms) rollback transaction
4288
+  (0.0ms) begin transaction
4289
+ ---------------------------------------------------------
4290
+ RailsImager::ImageHandlerTest: test_should_do_smartsizing
4291
+ ---------------------------------------------------------
4292
+  (0.1ms) rollback transaction
4293
+  (0.0ms) begin transaction
4294
+ ------------------------------------------------------------
4295
+ RailsImager::ImageHandlerTest: test_should_send_not_modified
4296
+ ------------------------------------------------------------
4297
+  (0.1ms) rollback transaction
4298
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
4307
+  (0.0ms) begin transaction
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
+  (0.0ms) rollback transaction
4315
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
4324
+  (0.0ms) begin transaction
4325
+ ------------------------------------------------------
4326
+ RailsImager::ImagesHelperTest: test_#rails_imager_path
4327
+ ------------------------------------------------------
4328
+  (0.0ms) rollback transaction
4329
+  (0.0ms) begin transaction
4330
+ ---------------------------
4331
+ RailsImagerTest: test_truth
4332
+ ---------------------------
4333
+  (0.0ms) rollback transaction
4334
+  (0.2ms) begin transaction
4335
+ ---------------------------------------------------------------------
4336
+ RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
4337
+ ---------------------------------------------------------------------
4338
+  (0.0ms) rollback transaction
4339
+  (0.1ms) begin transaction
4340
+ --------------------------------------------------------------------
4341
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
4342
+ --------------------------------------------------------------------
4343
+  (0.1ms) rollback transaction
4344
+  (0.0ms) begin transaction
4345
+ --------------------------------------------------------------------------------
4346
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
4347
+ --------------------------------------------------------------------------------
4348
+  (0.3ms) rollback transaction
4349
+  (0.1ms) begin transaction
4350
+ ---------------------------------------------------------
4351
+ RailsImager::ImageHandlerTest: test_should_do_exact_sizes
4352
+ ---------------------------------------------------------
4353
+  (0.1ms) rollback transaction
4354
+  (0.1ms) begin transaction
4355
+ ------------------------------------------------------------------
4356
+ RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
4357
+ ------------------------------------------------------------------
4358
+  (0.1ms) rollback transaction
4359
+  (0.0ms) begin transaction
4360
+ -------------------------------------------------------------
4361
+ RailsImager::ImageHandlerTest: test_should_do_rounded_corners
4362
+ -------------------------------------------------------------
4363
+  (0.1ms) rollback transaction
4364
+  (0.0ms) begin transaction
4365
+ ---------------------------------------------------------
4366
+ RailsImager::ImageHandlerTest: test_should_do_smartsizing
4367
+ ---------------------------------------------------------
4368
+  (0.1ms) rollback transaction
4369
+  (0.0ms) begin transaction
4370
+ ------------------------------------------------------------
4371
+ RailsImager::ImageHandlerTest: test_should_send_not_modified
4372
+ ------------------------------------------------------------
4373
+  (0.1ms) rollback transaction
4374
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
4383
+  (0.0ms) begin transaction
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
+  (0.0ms) rollback transaction
4391
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
4400
+  (0.0ms) begin transaction
4401
+ ------------------------------------------------------
4402
+ RailsImager::ImagesHelperTest: test_#rails_imager_path
4403
+ ------------------------------------------------------
4404
+  (0.0ms) rollback transaction
4405
+  (0.0ms) begin transaction
4406
+ ---------------------------
4407
+ RailsImagerTest: test_truth
4408
+ ---------------------------
4409
+  (0.0ms) rollback transaction
4410
+  (0.2ms) begin transaction
4411
+ ---------------------------------------------------------------------
4412
+ RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
4413
+ ---------------------------------------------------------------------
4414
+  (0.0ms) rollback transaction
4415
+  (0.1ms) begin transaction
4416
+ --------------------------------------------------------------------
4417
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
4418
+ --------------------------------------------------------------------
4419
+  (0.1ms) rollback transaction
4420
+  (0.0ms) begin transaction
4421
+ --------------------------------------------------------------------------------
4422
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
4423
+ --------------------------------------------------------------------------------
4424
+  (0.3ms) rollback transaction
4425
+  (0.1ms) begin transaction
4426
+ ---------------------------------------------------------
4427
+ RailsImager::ImageHandlerTest: test_should_do_exact_sizes
4428
+ ---------------------------------------------------------
4429
+  (0.1ms) rollback transaction
4430
+  (0.0ms) begin transaction
4431
+ ------------------------------------------------------------------
4432
+ RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
4433
+ ------------------------------------------------------------------
4434
+  (0.1ms) rollback transaction
4435
+  (0.0ms) begin transaction
4436
+ -------------------------------------------------------------
4437
+ RailsImager::ImageHandlerTest: test_should_do_rounded_corners
4438
+ -------------------------------------------------------------
4439
+  (0.1ms) rollback transaction
4440
+  (0.1ms) begin transaction
4441
+ ---------------------------------------------------------
4442
+ RailsImager::ImageHandlerTest: test_should_do_smartsizing
4443
+ ---------------------------------------------------------
4444
+  (0.1ms) rollback transaction
4445
+  (0.0ms) begin transaction
4446
+ ------------------------------------------------------------
4447
+ RailsImager::ImageHandlerTest: test_should_send_not_modified
4448
+ ------------------------------------------------------------
4449
+  (0.1ms) rollback transaction
4450
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
4459
+  (0.0ms) begin transaction
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
+  (0.0ms) rollback transaction
4467
+  (0.1ms) begin transaction
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
+  (0.1ms) rollback transaction
4476
+  (0.0ms) begin transaction
4477
+ ------------------------------------------------------
4478
+ RailsImager::ImagesHelperTest: test_#rails_imager_path
4479
+ ------------------------------------------------------
4480
+  (0.0ms) rollback transaction
4481
+  (0.0ms) begin transaction
4482
+ ---------------------------
4483
+ RailsImagerTest: test_truth
4484
+ ---------------------------
4485
+  (0.0ms) rollback transaction
4486
+  (0.2ms) begin transaction
4487
+ ---------------------------------------------------------------------
4488
+ RailsImager::ImageHandlerTest: test_should_be_able_to_clear_the_cache
4489
+ ---------------------------------------------------------------------
4490
+  (0.0ms) rollback transaction
4491
+  (0.1ms) begin transaction
4492
+ --------------------------------------------------------------------
4493
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_cache
4494
+ --------------------------------------------------------------------
4495
+  (0.1ms) rollback transaction
4496
+  (0.0ms) begin transaction
4497
+ --------------------------------------------------------------------------------
4498
+ RailsImager::ImageHandlerTest: test_should_be_able_to_generate_valid_cache_names
4499
+ --------------------------------------------------------------------------------
4500
+  (0.0ms) rollback transaction
4501
+  (0.0ms) begin transaction
4502
+ ---------------------------------------------------------
4503
+ RailsImager::ImageHandlerTest: test_should_do_exact_sizes
4504
+ ---------------------------------------------------------
4505
+  (0.1ms) rollback transaction
4506
+  (0.0ms) begin transaction
4507
+ ------------------------------------------------------------------
4508
+ RailsImager::ImageHandlerTest: test_should_do_max_width_and_height
4509
+ ------------------------------------------------------------------
4510
+  (0.1ms) rollback transaction
4511
+  (0.0ms) begin transaction
4512
+ -------------------------------------------------------------
4513
+ RailsImager::ImageHandlerTest: test_should_do_rounded_corners
4514
+ -------------------------------------------------------------
4515
+  (0.1ms) rollback transaction
4516
+  (0.0ms) begin transaction
4517
+ ---------------------------------------------------------
4518
+ RailsImager::ImageHandlerTest: test_should_do_smartsizing
4519
+ ---------------------------------------------------------
4520
+  (0.1ms) rollback transaction
4521
+  (0.0ms) begin transaction
4522
+ ------------------------------------------------------------
4523
+ RailsImager::ImageHandlerTest: test_should_send_not_modified
4524
+ ------------------------------------------------------------
4525
+  (0.1ms) rollback transaction
4526
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
4535
+  (0.0ms) begin transaction
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
+  (0.0ms) rollback transaction
4543
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
4552
+  (0.0ms) begin transaction
4553
+ ------------------------------------------------------
4554
+ RailsImager::ImagesHelperTest: test_#rails_imager_path
4555
+ ------------------------------------------------------
4556
+  (0.0ms) rollback transaction
4557
+  (0.0ms) begin transaction
4558
+ ---------------------------
4559
+ RailsImagerTest: test_truth
3495
4560
  ---------------------------
3496
4561
   (0.0ms) rollback transaction