cortex-snippets-client 1.0.3 → 1.0.4

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: 9bea8b4278e8ba286306bbc9814354d59db21be9
4
- data.tar.gz: f04c8d77934925ff49a40429dd7ae6c60f4838c5
3
+ metadata.gz: b26e89edbc9cdd82d0f17e08012a413ef2ae0953
4
+ data.tar.gz: 0f211a5616816093dcda25c04bb5f76a9644f99a
5
5
  SHA512:
6
- metadata.gz: 4d83564fad563576c164179a456e4a231e569273b507a7ce6dfa4a78bb98c7fc88fb9838d966bd719fe1714c558f388cfb143c7633e9d775763855863eb94a0a
7
- data.tar.gz: de0315a07ef4f0db083f015132a525932234decda5c0b6bb920c8c06f44d638b452e835af98b9ae96054d42463166f3e03f9883e699ea3e4daf76a2de10ce1c3
6
+ metadata.gz: fd304cdd0d7499fd39fa8a4afe1cf61fb696a742ffd6890015611aa7118c99b74708d442911cd2c010ec793c4f8fd5fd8dbc071139a88c3dc712e8393f9da5fb
7
+ data.tar.gz: 737fa33ce1d7f365dd069cf822d18cbab7e03528660ba1e30c9ed7014dcd162898e9c3e1eb2f5cf01858dd29d7de9984d05a2f7a76c38e3071733aa85d445bdb
@@ -14,7 +14,7 @@ module Cortex
14
14
  snippets = current_webpage(request).snippets || []
15
15
  snippet = snippets.find { |snippet| snippet[:document][:name] == options[:id] }
16
16
 
17
- if snippet.nil? || snippet[:document][:body].nil? || snippet[:document][:body].empty?
17
+ if snippet.nil? || snippet[:document][:body].nil?
18
18
  content_tag(:snippet, block, options)
19
19
  else
20
20
  content_tag(:snippet, snippet[:document][:body].html_safe, options)
@@ -1,5 +1,5 @@
1
1
  module Cortex
2
2
  module Snippets
3
- VERSION = '1.0.3'
3
+ VERSION = '1.0.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cortex-snippets-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - CareerBuilder Employer Site & Content Products
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-01 00:00:00.000000000 Z
11
+ date: 2017-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cortex-client