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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5608258c3420bbbd5481fa9530555413c9d94eea
4
- data.tar.gz: 306d4d0b80889f35f324d33a60637a3b7edfb51d
3
+ metadata.gz: a786bd43a519269a7e46fe60f9400a84b4f7f972
4
+ data.tar.gz: 4793aa337c554b481e64f5d0e108615d16deac08
5
5
  SHA512:
6
- metadata.gz: 90d56001fa4efdfec6abab4c8bc0ff321cdcf91ec3ef1beeb998a0ba2610571aca933b84f61b0eacb976fa3a735a256c6ea3712528ae5390b1d7798bd4873616
7
- data.tar.gz: c50196381ec5957b5d10360642c8f25248d9e1eb7e9b9ae07f0d8e98c63d3786266f2616785384600cb126fcd2e9fb0cd9443002a7bdf01fbb78144587ca8bac
6
+ metadata.gz: d7638da818a17bd9ed9d7aece291060b403f686c73c8a668755a23a5d2189959b37dc27eec82212fe68d8882a9cfede8d501660ad62bea2533c99e461d5cee13
7
+ data.tar.gz: 525bec7f37bdfcd6dae2ff2f115ed3e833dfcc1eba9db39358f0f07db7d8355e696d6cfddd8303f643b6d5ead77b9f158a1d8a37e341e4f86c80beb675f55ec8
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Blot
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
@@ -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.0
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-09 00:00:00.000000000 Z
11
+ date: 2014-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails