blot 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blot/helpers/layout.rb +2 -2
- data/lib/blot/version.rb +1 -1
- data/spec/blot/helpers/layout_spec.rb +4 -0
- 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: a786bd43a519269a7e46fe60f9400a84b4f7f972
|
4
|
+
data.tar.gz: 4793aa337c554b481e64f5d0e108615d16deac08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7638da818a17bd9ed9d7aece291060b403f686c73c8a668755a23a5d2189959b37dc27eec82212fe68d8882a9cfede8d501660ad62bea2533c99e461d5cee13
|
7
|
+
data.tar.gz: 525bec7f37bdfcd6dae2ff2f115ed3e833dfcc1eba9db39358f0f07db7d8355e696d6cfddd8303f643b6d5ead77b9f158a1d8a37e341e4f86c80beb675f55ec8
|
data/lib/blot/helpers/layout.rb
CHANGED
@@ -26,7 +26,7 @@ module Blot
|
|
26
26
|
content_tag :tr do
|
27
27
|
content_tag :td, class: 'center', align: 'center', valign: 'top' do
|
28
28
|
content_tag :center do
|
29
|
-
yield.html_safe if block_given?
|
29
|
+
yield.try(:html_safe) if block_given?
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
@@ -36,7 +36,7 @@ module Blot
|
|
36
36
|
[head, body].join.html_safe
|
37
37
|
end
|
38
38
|
|
39
|
-
[doctype, html].join
|
39
|
+
[doctype, html].join.html_safe
|
40
40
|
end
|
41
41
|
end
|
42
42
|
end
|
data/lib/blot/version.rb
CHANGED
@@ -30,6 +30,10 @@ describe Blot::Helpers::Layout do
|
|
30
30
|
HTML
|
31
31
|
end
|
32
32
|
|
33
|
+
it 'can work with nil content' do
|
34
|
+
expect { view.layout { } }.not_to raise_error
|
35
|
+
end
|
36
|
+
|
33
37
|
it 'can render styles' do
|
34
38
|
assets = { assets: { 'ink.css' => 'Ink Styles!', 'typography.css' => 'Typography Styles!', 'colors.css' => 'Color Styles!' } }
|
35
39
|
allow(Rails).to receive_messages(application: OpenStruct.new(assets))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben A Morgan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|