ace 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ace/filters/image_thumbnailer.rb +1 -2
- data/lib/ace/filters/layout.rb +2 -2
- data/lib/ace/version.rb +1 -1
- metadata +1 -1
@@ -12,12 +12,11 @@ require "nokogiri"
|
|
12
12
|
# before Ace::ImageThumbnailerFilter, default_thumb_size: 550
|
13
13
|
# end
|
14
14
|
|
15
|
-
# FIXME: generate thumbnail to output/, not to content/ !!!
|
16
15
|
module Ace
|
17
16
|
class ImageThumbnailerFilter < Filter
|
18
17
|
def thumb_path(file_name)
|
19
18
|
@file_name ||= file_name
|
20
|
-
@thumb_path ||= file_name.gsub(
|
19
|
+
@thumb_path ||= file_name.gsub(/content\/(.+)\.([^\.]*)$/, 'output/\1_thumb.\2')
|
21
20
|
end
|
22
21
|
|
23
22
|
def thumb_server_path
|
data/lib/ace/filters/layout.rb
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
require_relative "template"
|
4
4
|
|
5
|
-
warn "~
|
5
|
+
warn "~ LayoutFilter is deprecated, use TemplateFilter from now on."
|
6
6
|
|
7
7
|
module Ace
|
8
|
-
class
|
8
|
+
class LayoutFilter < TemplateFilter
|
9
9
|
end
|
10
10
|
end
|
data/lib/ace/version.rb
CHANGED