travis-ci
189 of 554 new or added lines in 29 files covered. (34.12%)
3661 existing lines in 138 files now uncovered.18433 of 31107 relevant lines covered (59.26%)
147.82 hits per line
1 |
module Paperclip |
3✔ |
2 |
class Rotator < Thumbnail |
3✔ |
3 |
def initialize(file, options = {}, attachment = nil) |
3✔ |
4 |
options[:auto_orient] = false |
378✔ |
5 |
super
|
378✔ |
6 |
end
|
|
7 |
|
|
8 |
def transformation_command |
3✔ |
9 |
if rotate_command
|
378✔ |
UNCOV
10
|
"#{rotate_command} #{super.join(' ')}"
|
× |
11 |
else
|
|
12 |
super
|
378✔ |
13 |
end
|
|
14 |
end
|
|
15 |
|
|
16 |
def rotate_command |
3✔ |
17 |
target = @attachment.instance
|
378✔ |
18 |
if target.rotate.present?
|
378✔ |
UNCOV
19
|
" -rotate #{target.rotate}"
|
× |
20 |
end
|
|
21 |
end
|
|
22 |
end
|
|
23 |
end
|