schema_dot_org 1.2.0 → 1.2.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
  SHA256:
3
- metadata.gz: 05e64a986c95f51a4c09c880b9fc922c5e78c63bd238ad886934a82da85b82a3
4
- data.tar.gz: 9271738e29bfb17acba96dc538f21e8fa867c35ff91f4b717c37b84452ae5872
3
+ metadata.gz: db371250ff6b29c349d658e85503ab19412d35e491a9800827f129f9d93413d0
4
+ data.tar.gz: e429bee64238b2f43697cd2f7bb95984eda07389573b9148008bfe2f0c84079b
5
5
  SHA512:
6
- metadata.gz: 2042feb05893352d1b10dd12d059e026bf175730beaf5b176f49cb2e8a6f5d88fd2b2b9eafa2e9e0d5ad13699bd8dad1b58e878bc6af5f153a99a825506f1513
7
- data.tar.gz: 6645f5d6361ebeda245d33446e519050e7131b0cbc55e432e490c9fc952afd9681833e904b4cab69971d8ceb485f6337f3114b060b602c3fd7bcce4605e6eca4
6
+ metadata.gz: e55d94f56727c50903971dfe8b88ecbb1193e7132e62b4f30d5a65bd2eb34f00ac3c6dd35f2857190bd86982c0dbc2c1f2d0ffb0131b85913e060df93901643f
7
+ data.tar.gz: 98c43a569614deccbacfbadc7e587b309f8a78975aa03e06c60f47a4fb653cdb3087ac3b4fb2b129e27691a673a5e955102261b206af99d941ae645e46087993
@@ -11,7 +11,14 @@ module SchemaDotOrg
11
11
 
12
12
 
13
13
  def to_s
14
- to_json_ld(pretty: true)
14
+ json_string = to_json_ld(pretty: true)
15
+
16
+ # Mark as safe if we're in Rails
17
+ if json_string.respond_to?(:html_safe)
18
+ json_string.html_safe
19
+ else
20
+ json_string
21
+ end
15
22
  end
16
23
 
17
24
 
@@ -1,3 +1,3 @@
1
1
  module SchemaDotOrg
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schema_dot_org
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robb Shecter