graph_starter 0.12.1 → 0.12.2

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: c41cbf6d5d0bc644e3653dbe91fc76f7ab263dc6
4
- data.tar.gz: 4dc3b5012e30205a58ad800f0155294b558d56e3
3
+ metadata.gz: 796269539561c7291cca5d9cedc179b8a6b3d448
4
+ data.tar.gz: ff1f55f70c7928970d2bbc3762434188df18dcbe
5
5
  SHA512:
6
- metadata.gz: 0d7ac09b2f26160ce54202fb4d24cf1e09265ab6d370329dd546fa576c53d5db518e9d19a61a098452f6732ff1fa05df7a5fb4a101891e849d0b84e03c9fda29
7
- data.tar.gz: 758fed6cf9765f6a7a9355123ed036863b4d709920776aa70931fe8b64ed96285a4e5d572ad91944e4885ecb7ae1d192a7bac036b46ee53e44261f42d2d8dc66
6
+ metadata.gz: 21faa84ccf05f64bb1f2b5910e87b550ccc1c6d9a141029b1dc29700d057ea482efbbbbe459b77c8ecf8140a0087877e7f5717e7bc79f19a7dd073a59a164854
7
+ data.tar.gz: d45f6c8b097f121e6a32f370d14988bd0d3aa65f28d8a16bd1be2de65d46cca83fbcb55f7ec5eb58bc8304fa91253b90d7dd2616456d5cb58aadbae45d94d62c
@@ -77,7 +77,7 @@ module GraphStarter
77
77
 
78
78
  if @asset.class.has_image?
79
79
  @asset.image = Image.create(source: params[:image])
80
- else @asset.has_images?
80
+ elsif @asset.class.has_images?
81
81
  @asset.images << Image.create(source: params[:image])
82
82
  end
83
83
 
@@ -151,7 +151,7 @@ module GraphStarter
151
151
  def safe_title
152
152
  sanitizer = Rails::Html::WhiteListSanitizer.new
153
153
 
154
- sanitizer.sanitize(title, tags: %w(b em i strong))
154
+ sanitizer.sanitize(title, tags: %w(b em i strong)).html_safe
155
155
  end
156
156
 
157
157
  def self.body_property(property_name = nil)
@@ -1,3 +1,3 @@
1
1
  module GraphStarter
2
- VERSION = "0.12.1"
2
+ VERSION = "0.12.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graph_starter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Underwood