go_static 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/static_helper.rb +2 -2
- metadata +3 -3
data/lib/static_helper.rb
CHANGED
@@ -11,9 +11,9 @@ module StaticHelper
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def render_with_go_static(options = nil, *args, &block)
|
14
|
-
options[:format] ||= "png"
|
15
14
|
if options.is_a?(Hash) && options.has_key?(:png)
|
16
15
|
log_png_creation
|
16
|
+
options[:format] ||= "png"
|
17
17
|
options[:basic_auth] = set_basic_auth(options)
|
18
18
|
make_and_send_png(options.delete(:png), (GoStatic.config || {}).merge(options))
|
19
19
|
else
|
@@ -22,9 +22,9 @@ module StaticHelper
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def render_to_string_with_go_static(options = nil, *args, &block)
|
25
|
-
options[:format] ||= "png"
|
26
25
|
if options.is_a?(Hash) && options.has_key?(:png)
|
27
26
|
log_png_creation
|
27
|
+
options[:format] ||= "png"
|
28
28
|
options[:basic_auth] = set_basic_auth(options)
|
29
29
|
options.delete :png
|
30
30
|
make_png((GoStatic.config || {}).merge(options))
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: go_static
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Lle\xC3\xAFr Borr\xC3\xA0s Metje"
|