ghost_in_the_post 0.0.9 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a75bc53df01f463e9ac5c58d15dfa99aa3196bdf
4
- data.tar.gz: f4b07ff5947f830d7813b179475e1aef715dafca
3
+ metadata.gz: 242a2ac58d97c81d8c54e6222b2f496e285ce921
4
+ data.tar.gz: a05272d429042a057ffb0d0a5825b714f78da6bc
5
5
  SHA512:
6
- metadata.gz: 4423a0e26c482e7a130db4183c38a429ea45aa7c0061c55925c53806c582507d6d482e5769f53c02d728ef005ed7b357024d7143da4223f08e59fb217cc1c019
7
- data.tar.gz: 6f8c5a16d7991a0e4546c67a7ed0e096792dccfee5468fcec65eecdca37264241804d62d97ce97668d35190d892a6f150b4eb20f70fd27fa7aa78b944e668187
6
+ metadata.gz: 61efd9ae29fd80b491590e6de213ed17a725b922b60220961ac5ab101268415850f698ba2b3c477e9d5169269ee6bddb48f4a81652198164c8d111d44eb159c2
7
+ data.tar.gz: 69c1967d2556f70309e203125e6962a097e6d418ffc702e1f199bb1e2d1f96d71eb4f894957a31b6f12e3ef9759cb1053c6a75c461b1e8f18d3a12a50e5155e9
@@ -31,9 +31,7 @@ module GhostInThePost
31
31
 
32
32
  def create_script_element(script_blocks, body)
33
33
  return unless body
34
- element = Nokogiri::XML::Node.new("script", body.document)
35
- element.content = script_blocks.join("\n")
36
- body.add_child(element)
34
+ body.add_child("<script>#{@dom.create_cdata(script_blocks.join("\n"))}</script>")
37
35
  end
38
36
 
39
37
  def generate_flat_js
@@ -1,3 +1,3 @@
1
1
  module GhostInThePost
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  GhostInThePost.config = {
2
2
  phantomjs_path: "/usr/local/bin/phantomjs",
3
- debug: true
3
+ debug: true,
4
4
  }
5
5
 
@@ -514,3 +514,19 @@ AutoMailer#normal_email: processed outbound mail in 640.0ms
514
514
  Rendered auto_mailer/normal_email.text (0.1ms)
515
515
 
516
516
  AutoMailer#normal_email: processed outbound mail in 76.5ms
517
+ Rendered auto_mailer/normal_email.html.erb (243.6ms)
518
+ Rendered auto_mailer/normal_email.text (0.4ms)
519
+
520
+ AutoMailer#normal_email: processed outbound mail in 556.0ms
521
+ Rendered auto_mailer/normal_email.html.erb (247.5ms)
522
+ Rendered auto_mailer/normal_email.text (0.5ms)
523
+
524
+ AutoMailer#normal_email: processed outbound mail in 558.7ms
525
+ Rendered auto_mailer/normal_email.html.erb (244.5ms)
526
+ Rendered auto_mailer/normal_email.text (0.5ms)
527
+
528
+ AutoMailer#normal_email: processed outbound mail in 561.1ms
529
+ Rendered auto_mailer/normal_email.html.erb (230.5ms)
530
+ Rendered auto_mailer/normal_email.text (0.9ms)
531
+
532
+ AutoMailer#normal_email: processed outbound mail in 518.5ms
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghost_in_the_post
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Anema