ghost_in_the_post 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ghost_in_the_post/js_inline.rb +4 -4
  3. data/lib/ghost_in_the_post/phantom_transform.rb +3 -3
  4. data/lib/ghost_in_the_post/version.rb +1 -1
  5. data/lib/ghost_in_the_post.rb +8 -2
  6. data/spec/dummy/Gemfile.lock +1 -1
  7. data/spec/dummy/app/assets/javascripts/application.js +0 -1
  8. data/spec/dummy/app/mailers/mailer.rb +5 -2
  9. data/spec/dummy/app/views/{auto_mailer/normal_email.html.erb → mailer/multi.html} +1 -0
  10. data/spec/dummy/app/views/mailer/{normal_email.text → multi.text} +0 -0
  11. data/spec/dummy/app/views/mailer/normal.html.erb +13 -0
  12. data/spec/dummy/log/development.log +71 -0
  13. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1cc8YyYTuDQ3mFsadTp2EodoZR459nuNZS-uXCEY4Jw.cache +1 -0
  14. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5OGEF1k0E1KieIsaxEKXCbhU87-rDwP7DPjYO-6WdtM.cache +1 -0
  15. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5_nJbNicpPHf2IFwy1-SAnFmmEj3TqoQC4kPIqJNwaM.cache +1 -0
  16. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/A6cQdstN8-qKwWPn0b8ZN_TXSoFmsZTfKG9HmNw5fNg.cache +0 -0
  17. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/awAmb-9CG9TlgLGLKY2yW5C6IMRrIsYlYcHt5zM2t-0.cache +0 -0
  18. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache +0 -0
  19. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/hcDh4tGal_eABE-U9M1tiCDQb4sGh9aycFhntdpgvNE.cache +1 -0
  20. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/icFF-UvobsECQCgz-zLAUzm5W1OrLEBeCNpWOs1g3xM.cache +1 -0
  21. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uF8mekjObfyaGGjoU9jG5A-jIsqytzIFIg_LR3_Ekiw.cache +0 -0
  22. metadata +23 -11
  23. data/spec/dummy/app/mailers/auto_mailer.rb +0 -14
  24. data/spec/dummy/app/views/auto_mailer/normal_email.text +0 -1
  25. data/spec/dummy/app/views/mailer/normal_email.html.erb +0 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7aa0dd4f405673caca79f8fb8557b7c5cbb5cb55
4
- data.tar.gz: 82e2565a50909c07b0e88f9185b99ffe58450d2c
3
+ metadata.gz: 393c02db1714c6b813e23df9972c44ef5dfd90c7
4
+ data.tar.gz: 5ceaf809dc95ebf450d105159dd4860a311842eb
5
5
  SHA512:
6
- metadata.gz: a86e3b383b4a1f514b51ff044ae4039fe464f5ef7c2710aa9e8576238a65285129377a32d5b0e67b31fbed79291fec9d885f5e22335ae3a81f707beab258789e
7
- data.tar.gz: 97b696dcfb777805d9e991e0157ea7aa9b05df04d5d37a7a0c1956a711ccaba4452c2810dd40a553cd1ae8aee0bdc0c1f45834699642693f0be0e874cce244fe
6
+ metadata.gz: 77c36581f27717f1652255e1b98ccf9a5a3d9b7a1c9240b773ad01950516fc301c4448e5c1b8c03d5cb7dc880a3337b08cf7343590d7c06e2e1e58ab7822d06f
7
+ data.tar.gz: 7e881b2ec37e92fe93b1796fe8b19dca9e1adf67c0945d4c87e4bfd575e378c7fdff52b61e448f2cf29328bac560947b6a0b2613b3b1484c2bea262b95b1224b
@@ -20,11 +20,11 @@ module GhostInThePost
20
20
  end
21
21
 
22
22
  def html=(html)
23
- @dom = Nokogiri::HTML.parse(html)
23
+ @dom = Nokogiri::HTML.parse(URI.decode(html), nil, Encoding::UTF_8.to_s)
24
24
  end
25
25
 
26
- def html
27
- @dom.to_html
26
+ def html(is_x=false)
27
+ is_x ? @dom.to_xhtml : @dom.to_html
28
28
  end
29
29
 
30
30
  private
@@ -32,7 +32,7 @@ module GhostInThePost
32
32
  def generate_flat_js
33
33
  injectable_scripts.map do |script|
34
34
  asset = find_asset_in_pipeline(script)
35
- if GhostInThePost.debug and asset.nil?
35
+ if GhostInThePost.raise_asset_errors and asset.nil?
36
36
  raise AssetNotFoundError.new("cannot find asset #{normalize_asset_name(script)}")
37
37
  end
38
38
  asset.to_s unless asset.nil?
@@ -25,7 +25,7 @@ module GhostInThePost
25
25
  end
26
26
  end
27
27
  @inliner.remove_all_script if GhostInThePost.remove_js_tags
28
- @inliner.html
28
+ @inliner.html(true)
29
29
  end
30
30
 
31
31
  private
@@ -43,14 +43,14 @@ module GhostInThePost
43
43
  #generate a tempfile with all the html that we need so that phantom can inject
44
44
  #easily and not have to max out a single command
45
45
  def html_file(html)
46
- file = Tempfile.new(['inject', '.html'])
46
+ file = Tempfile.new(['ghost_in_the_post', '.html'], encoding: Encoding::UTF_8)
47
47
  file.write(html)
48
48
  file.close #closing the file makes it accessible by phantom
49
49
  file
50
50
  end
51
51
 
52
52
  def checkError output
53
- if output.start_with?(ERROR_TAG)
53
+ if output.start_with?(ERROR_TAG) and GhostInThePost.raise_js_errors
54
54
  @has_error = true
55
55
  raise GhostJSError.new(output.gsub(ERROR_TAG, ""))
56
56
  end
@@ -1,3 +1,3 @@
1
1
  module GhostInThePost
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
@@ -6,19 +6,23 @@ module GhostInThePost
6
6
  :remove_js_tags,
7
7
  :timeout,
8
8
  :wait_event,
9
+ :raise_js_errors,
10
+ :raise_asset_errors,
9
11
  :debug,
10
12
  ]
11
13
  DEFAULT_TIMEOUT = 1000
12
14
  DEFAULT_WAIT_EVENT = "ghost_in_the_post:done"
13
15
  private_constant :ATTRIBUTE_NAMES
14
- cattr_reader(*ATTRIBUTE_NAMES)
16
+ cattr_accessor(*ATTRIBUTE_NAMES)
15
17
 
16
- #defaults
18
+ #=======Defaults=========
17
19
  @@phantomjs_path = nil #setting this to nil helps testing
18
20
  @@timeout = DEFAULT_TIMEOUT
19
21
  @@wait_event = DEFAULT_WAIT_EVENT
20
22
  @@includes = []
21
23
  @@remove_js_tags = true
24
+ @@raise_js_errors = true
25
+ @@raise_asset_errors = true
22
26
  @@debug = false
23
27
 
24
28
  def self.config=(new_config={})
@@ -26,6 +30,8 @@ module GhostInThePost
26
30
  @@phantomjs_path = new_config[:phantomjs_path]
27
31
  @@includes = Array(new_config[:includes])
28
32
  @@remove_js_tags = new_config[:remove_js_tags].nil? ? true : new_config[:remove_js_tags]
33
+ @@raise_js_errors = new_config[:raise_js_errors].nil? ? true : new_config[:raise_js_errors]
34
+ @@raise_asset_errors = new_config[:raise_asset_errors].nil? ? true : new_config[:raise_asset_errors]
29
35
  @@timeout = new_config[:timeout] || DEFAULT_TIMEOUT
30
36
  @@wait_event = new_config[:wait_event] || DEFAULT_WAIT_EVENT
31
37
  @@debug = new_config[:debug].nil? ? false : new_config[:debug]
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- ghost_in_the_post (0.0.10)
4
+ ghost_in_the_post (0.0.11)
5
5
  nokogiri
6
6
  rails (~> 4.2.3)
7
7
 
@@ -10,5 +10,4 @@
10
10
  // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
11
  // about supported directives.
12
12
  //
13
- //= require jquery
14
13
  //= require_tree .
@@ -1,9 +1,12 @@
1
1
  class Mailer < ActionMailer::Base
2
2
  include GhostInThePost::Mailer
3
-
4
3
  default from: 'john@example.com'
5
4
 
6
- def normal_email
5
+ def normal
6
+ mail(to: 'example@example.org', subject: "Notification for you")
7
+ end
8
+
9
+ def multi
7
10
  mail(to: 'example@example.org', subject: "Notification for you") do |format|
8
11
  format.html
9
12
  format.text
@@ -4,6 +4,7 @@
4
4
  <%= javascript_include_tag "application" %>
5
5
  </head>
6
6
  <body>
7
+ <div data-json="<%= {key: "value", test: ["one", "two", "three"]}.to_json %>"></div>
7
8
  <span><%= "This makes sure it is preprocessed" %></span>
8
9
  <div id="test"></div>
9
10
  <script> //to be removed </script>
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <%= javascript_include_tag "application" %>
5
+ </head>
6
+ <body>
7
+ <div data-json="{'key':'value','test':['one','two','three']}"></div>
8
+ <img src="{{test}}"/>
9
+ <span><%= "This makes sure it is preprocessed" %></span>
10
+ <div id="test"></div>
11
+ <script> //to be removed </script>
12
+ </body>
13
+ </html>
@@ -534,3 +534,74 @@ AutoMailer#normal_email: processed outbound mail in 518.5ms
534
534
  Rendered auto_mailer/normal_email.text (0.6ms)
535
535
 
536
536
  AutoMailer#normal_email: processed outbound mail in 499.7ms
537
+ Rendered auto_mailer/normal_email.html.erb (232.8ms)
538
+ Rendered auto_mailer/normal_email.text (0.6ms)
539
+
540
+ AutoMailer#normal_email: processed outbound mail in 542.7ms
541
+ Rendered auto_mailer/normal_email.html.erb (247.7ms)
542
+ Rendered auto_mailer/normal_email.text (0.5ms)
543
+
544
+ AutoMailer#normal_email: processed outbound mail in 565.4ms
545
+ Rendered auto_mailer/normal_email.html.erb (17.2ms)
546
+
547
+ AutoMailer#normal_email: processed outbound mail in 36.7ms
548
+ Rendered auto_mailer/normal_email.html.erb (7.6ms)
549
+
550
+ AutoMailer#normal_email: processed outbound mail in 13.5ms
551
+ Rendered auto_mailer/normal_email.html.erb (6.9ms)
552
+
553
+ AutoMailer#normal_email: processed outbound mail in 25.0ms
554
+ Rendered mailer/normal.html.erb (245.2ms)
555
+
556
+ Mailer#normal: processed outbound mail in 578.5ms
557
+ Rendered mailer/normal.html.erb (344.3ms)
558
+
559
+ Mailer#normal: processed outbound mail in 651.3ms
560
+ Rendered mailer/normal.html.erb (345.4ms)
561
+
562
+ Mailer#normal: processed outbound mail in 696.0ms
563
+ Rendered mailer/normal.html.erb (253.3ms)
564
+
565
+ Mailer#normal: processed outbound mail in 573.5ms
566
+ Rendered mailer/normal.html.erb (16.2ms)
567
+
568
+ Mailer#normal: processed outbound mail in 32.1ms
569
+ Rendered mailer/normal.html.erb (6.6ms)
570
+
571
+ Mailer#normal: processed outbound mail in 23.3ms
572
+ Rendered mailer/normal.html.erb (207.0ms)
573
+
574
+ Mailer#normal: processed outbound mail in 499.6ms
575
+ Rendered mailer/normal.html.erb (207.2ms)
576
+
577
+ Mailer#normal: processed outbound mail in 520.3ms
578
+ Rendered mailer/normal.html.erb (18.6ms)
579
+
580
+ Mailer#normal: processed outbound mail in 41.0ms
581
+ Rendered mailer/normal.html.erb (193.2ms)
582
+
583
+ Mailer#normal: processed outbound mail in 484.0ms
584
+ Rendered mailer/normal.html.erb (224.2ms)
585
+
586
+ Mailer#normal: processed outbound mail in 560.6ms
587
+ Rendered mailer/normal.html.erb (218.3ms)
588
+
589
+ Mailer#normal: processed outbound mail in 517.0ms
590
+ Rendered mailer/normal.html.erb (14.9ms)
591
+
592
+ Mailer#normal: processed outbound mail in 39.8ms
593
+ Rendered mailer/normal.html.erb (219.9ms)
594
+
595
+ Mailer#normal: processed outbound mail in 550.0ms
596
+ Rendered mailer/normal.html.erb (222.8ms)
597
+
598
+ Mailer#normal: processed outbound mail in 544.8ms
599
+ Rendered mailer/normal.html.erb (202.3ms)
600
+
601
+ Mailer#normal: processed outbound mail in 445.2ms
602
+ Rendered mailer/normal.html.erb (199.4ms)
603
+
604
+ Mailer#normal: processed outbound mail in 491.9ms
605
+ Rendered mailer/normal.html.erb (226.2ms)
606
+
607
+ Mailer#normal: processed outbound mail in 528.8ms
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=debug&id=086ff95c07a708f1759c86c27dd5f2174399a0f22ea0846a671cbbab14fd1939:ET
@@ -0,0 +1 @@
1
+ "%�W\�yho9S���ƫ˥��)|�~���(���
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&id=e49584bf06de1137e25976873807c20ede895a8ad2b80f832b62479e3a4fb051:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=2c10ea2742c40346ddde8d72a5e41c9d8cc5ea40861c0e897d90ccdaae76ab2a:ET
@@ -0,0 +1 @@
1
+ "%�W\�yho9S���ƫ˥��)|�~���(���
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.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Anema
@@ -104,12 +104,10 @@ files:
104
104
  - spec/dummy/Gemfile.lock
105
105
  - spec/dummy/app/assets/javascripts/application.js
106
106
  - spec/dummy/app/assets/javascripts/test.js
107
- - spec/dummy/app/mailers/auto_mailer.rb
108
107
  - spec/dummy/app/mailers/mailer.rb
109
- - spec/dummy/app/views/auto_mailer/normal_email.html.erb
110
- - spec/dummy/app/views/auto_mailer/normal_email.text
111
- - spec/dummy/app/views/mailer/normal_email.html.erb
112
- - spec/dummy/app/views/mailer/normal_email.text
108
+ - spec/dummy/app/views/mailer/multi.html
109
+ - spec/dummy/app/views/mailer/multi.text
110
+ - spec/dummy/app/views/mailer/normal.html.erb
113
111
  - spec/dummy/bin/bundle
114
112
  - spec/dummy/bin/rails
115
113
  - spec/dummy/bin/rake
@@ -134,6 +132,7 @@ files:
134
132
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/-4Tacd2aNU9g47XY4TSmQEnf1ef5LjeSZqNrE3qS-4I.cache
135
133
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/-iuKAQfGrDXodizSu_KlAdCHD16bHdfN8MXSmQ4VsOE.cache
136
134
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/-k4_XP2RpcjsXdbEn6qBsAPpql3gQiE93Y8QOMuVfs0.cache
135
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/1cc8YyYTuDQ3mFsadTp2EodoZR459nuNZS-uXCEY4Jw.cache
137
136
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/1hVihiFdBkDBsuCvA1I2vuFa9N6p-5zQ-qKvf4vz7jA.cache
138
137
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/23mzeUAO-pIzGJ1n84Dbg25udWeSiBcd6e_QsDihWQc.cache
139
138
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/2ONadWXZXepGMP-_rM4RSH-lrRkYGc5TIH-U0uN8lG0.cache
@@ -143,12 +142,15 @@ files:
143
142
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/4PgfVpd4CZQ0vAsVTl2KDb1z4f6GLl4mXIc3jSrahHM.cache
144
143
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/4rPkFN0RbHFjbJe16_XepVFLtiWqn50qNpKLhKryqpE.cache
145
144
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/4rn_75AKOrS76q-1vxE8jGlylei5uTqHmXR5hOYCXQU.cache
145
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/5OGEF1k0E1KieIsaxEKXCbhU87-rDwP7DPjYO-6WdtM.cache
146
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/5_nJbNicpPHf2IFwy1-SAnFmmEj3TqoQC4kPIqJNwaM.cache
146
147
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/6544SZAu2zCeDrdro4h3izdKNXVvHzstwz12UxeiJoA.cache
147
148
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/65WFrl9ke71QXk3shspzPyE5TKMuPGeqvx8kgLtZDJM.cache
148
149
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/6wWiAXBcdY6PLKOIhXQ6c8h9UtViuvdLcEO6wXK3mh0.cache
149
150
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/86v25E0xnwy001YHLw8LduVEdijax96aorQrr3yJGJI.cache
150
151
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/8qvOy3VZFmkwGRCIuLzhSIYOcVtu6GpZIn6bPPcZWi8.cache
151
152
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/9dFahP-TMzMkDqaWT3lWiAnwQhpzcqjUTKizr5tvGlo.cache
153
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/A6cQdstN8-qKwWPn0b8ZN_TXSoFmsZTfKG9HmNw5fNg.cache
152
154
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/AQYzgZ6xktowc8IFU5QCD16twvaTpVL3fTm5GAcMIcQ.cache
153
155
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/An2BqgCUu8CzOKe-VSnoXczbRwI8Ap9AzhLc1azFwQM.cache
154
156
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/BMI0IB92xLhvUPcr_K0JuSk8zczmrEEbJCd3qwHauhQ.cache
@@ -185,6 +187,7 @@ files:
185
187
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/_Cw52w24AWZEbxLmduyWBMA6Y1OmJiEm1VNn7pY4rtk.cache
186
188
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/_HO5Nyj_TzTxVwa4OOf_0UJfBCmjgkv7NsRU29AD5Oo.cache
187
189
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/aS14aJ28QhG5o1cZ9EGhVL8P1JM343BpOGxsPHHVc1c.cache
190
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/awAmb-9CG9TlgLGLKY2yW5C6IMRrIsYlYcHt5zM2t-0.cache
188
191
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/bPidbeprQMmulDZcvmlovBWdTdDpfStDQJkTDKSq6Ok.cache
189
192
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/cQ32JvqbsXa5gTruc7Rx0g8qjxG4LhyIzg-UaJ5NXZE.cache
190
193
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/ch4kKrWuBlXSqDtB3SOIqo7UitKlIsPb_prvMi9Mih8.cache
@@ -196,6 +199,8 @@ files:
196
199
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/gl6ySpQTPCReJGYFItlmokrpEOrxwM9EOrFmURA8laE.cache
197
200
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/goEv0RKoifagsjFSdEHY-23E9ybQn_t1HHEZq7PlKQI.cache
198
201
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
202
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/hcDh4tGal_eABE-U9M1tiCDQb4sGh9aycFhntdpgvNE.cache
203
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/icFF-UvobsECQCgz-zLAUzm5W1OrLEBeCNpWOs1g3xM.cache
199
204
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/iowdbIJljnghhONJkvIawNn2oOlPUdTmdN2izTF621k.cache
200
205
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/lCVulsymaTRS2RTmXVBUqqENMSabeQbzngmYUHwM_5g.cache
201
206
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/mVI8EgL_96ohv4p8-5cp3jfx8MCNInxJW1JliZoolFs.cache
@@ -215,6 +220,7 @@ files:
215
220
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/s1fl9hrCR2SoMMkQWHyodwUJwS1iP6oNdK1WU-3I-QA.cache
216
221
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/sQHPafPr1hZ7n-WhjqwFB8eUR8I1YOa1yeg0-yNdc0U.cache
217
222
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/u71Rv7wEoX2UxRSGBuc2O2yeR2e6pajRMmA_gECm8SU.cache
223
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/uF8mekjObfyaGGjoU9jG5A-jIsqytzIFIg_LR3_Ekiw.cache
218
224
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/w6JX5zWN8vK4afiR4ib5M9nD0_1jiLPfUiWYu5k7pVQ.cache
219
225
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/xEPwyXpA7w7L0dn1hl5TQXVeRaJmX7MX6yxu4kMCfvU.cache
220
226
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/xstXMnjOlL2Ynn6MaI9bxlRnhTPYdgCIeOWnWphFSlA.cache
@@ -259,12 +265,10 @@ summary: Using phantomjs to pre-run javascript in emails
259
265
  test_files:
260
266
  - spec/dummy/app/assets/javascripts/application.js
261
267
  - spec/dummy/app/assets/javascripts/test.js
262
- - spec/dummy/app/mailers/auto_mailer.rb
263
268
  - spec/dummy/app/mailers/mailer.rb
264
- - spec/dummy/app/views/auto_mailer/normal_email.html.erb
265
- - spec/dummy/app/views/auto_mailer/normal_email.text
266
- - spec/dummy/app/views/mailer/normal_email.html.erb
267
- - spec/dummy/app/views/mailer/normal_email.text
269
+ - spec/dummy/app/views/mailer/multi.html
270
+ - spec/dummy/app/views/mailer/multi.text
271
+ - spec/dummy/app/views/mailer/normal.html.erb
268
272
  - spec/dummy/bin/bundle
269
273
  - spec/dummy/bin/rails
270
274
  - spec/dummy/bin/rake
@@ -291,6 +295,7 @@ test_files:
291
295
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/-4Tacd2aNU9g47XY4TSmQEnf1ef5LjeSZqNrE3qS-4I.cache
292
296
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/-iuKAQfGrDXodizSu_KlAdCHD16bHdfN8MXSmQ4VsOE.cache
293
297
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/-k4_XP2RpcjsXdbEn6qBsAPpql3gQiE93Y8QOMuVfs0.cache
298
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/1cc8YyYTuDQ3mFsadTp2EodoZR459nuNZS-uXCEY4Jw.cache
294
299
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/1hVihiFdBkDBsuCvA1I2vuFa9N6p-5zQ-qKvf4vz7jA.cache
295
300
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/23mzeUAO-pIzGJ1n84Dbg25udWeSiBcd6e_QsDihWQc.cache
296
301
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/2it6AcrJYWU_rid4KTQQbQUlk6yrL99umLdDkl-bjhs.cache
@@ -300,6 +305,8 @@ test_files:
300
305
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/4PgfVpd4CZQ0vAsVTl2KDb1z4f6GLl4mXIc3jSrahHM.cache
301
306
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/4rn_75AKOrS76q-1vxE8jGlylei5uTqHmXR5hOYCXQU.cache
302
307
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/4rPkFN0RbHFjbJe16_XepVFLtiWqn50qNpKLhKryqpE.cache
308
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/5_nJbNicpPHf2IFwy1-SAnFmmEj3TqoQC4kPIqJNwaM.cache
309
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/5OGEF1k0E1KieIsaxEKXCbhU87-rDwP7DPjYO-6WdtM.cache
303
310
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/6544SZAu2zCeDrdro4h3izdKNXVvHzstwz12UxeiJoA.cache
304
311
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/65WFrl9ke71QXk3shspzPyE5TKMuPGeqvx8kgLtZDJM.cache
305
312
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/6wWiAXBcdY6PLKOIhXQ6c8h9UtViuvdLcEO6wXK3mh0.cache
@@ -309,9 +316,11 @@ test_files:
309
316
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/_Bn81xMZj4dS_W5s9uSDhtEdpRZtsc21rcKEYAPCsZY.cache
310
317
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/_Cw52w24AWZEbxLmduyWBMA6Y1OmJiEm1VNn7pY4rtk.cache
311
318
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/_HO5Nyj_TzTxVwa4OOf_0UJfBCmjgkv7NsRU29AD5Oo.cache
319
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/A6cQdstN8-qKwWPn0b8ZN_TXSoFmsZTfKG9HmNw5fNg.cache
312
320
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/An2BqgCUu8CzOKe-VSnoXczbRwI8Ap9AzhLc1azFwQM.cache
313
321
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/AQYzgZ6xktowc8IFU5QCD16twvaTpVL3fTm5GAcMIcQ.cache
314
322
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/aS14aJ28QhG5o1cZ9EGhVL8P1JM343BpOGxsPHHVc1c.cache
323
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/awAmb-9CG9TlgLGLKY2yW5C6IMRrIsYlYcHt5zM2t-0.cache
315
324
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/BcPdraTPmLdHSun4O7BnjZ6ufaKCVbBRvms-82qCluA.cache
316
325
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/BMI0IB92xLhvUPcr_K0JuSk8zczmrEEbJCd3qwHauhQ.cache
317
326
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/bPidbeprQMmulDZcvmlovBWdTdDpfStDQJkTDKSq6Ok.cache
@@ -334,7 +343,9 @@ test_files:
334
343
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/goEv0RKoifagsjFSdEHY-23E9ybQn_t1HHEZq7PlKQI.cache
335
344
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/GtqgDsC0JMsKfj0x5uQrbPcSS3QIPIzLKrq2fGJDBf0.cache
336
345
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/gZp3uXMHuYQC4hzCr7bQfetKNdJAtbQmg3so2KpW1Dw.cache
346
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/hcDh4tGal_eABE-U9M1tiCDQb4sGh9aycFhntdpgvNE.cache
337
347
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache
348
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/icFF-UvobsECQCgz-zLAUzm5W1OrLEBeCNpWOs1g3xM.cache
338
349
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/IFLV6zTaBXU1ccodbD3QJ4xUIOEix_Fbb7j8wsxrHw8.cache
339
350
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/iowdbIJljnghhONJkvIawNn2oOlPUdTmdN2izTF621k.cache
340
351
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/J_D4gpddr1KPVysTvEE48iHsNzrL5Pbj8S5ZNt3PhA4.cache
@@ -368,6 +379,7 @@ test_files:
368
379
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/T6IHjr1ecpmAaDU3ySLmeMaE5eP5QzVH1aTlw8V8554.cache
369
380
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/u71Rv7wEoX2UxRSGBuc2O2yeR2e6pajRMmA_gECm8SU.cache
370
381
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/UbKcvOd2xh3MJoKxz4l4RHMy5IupdsiDoSllZDvYCZA.cache
382
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/uF8mekjObfyaGGjoU9jG5A-jIsqytzIFIg_LR3_Ekiw.cache
371
383
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/w6JX5zWN8vK4afiR4ib5M9nD0_1jiLPfUiWYu5k7pVQ.cache
372
384
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/Wctefa7yQiJX5Ix7KeFOwwDLhKpdX3SmLGZlKSFgrC4.cache
373
385
  - spec/dummy/tmp/cache/assets/sprockets/v3.0/xEPwyXpA7w7L0dn1hl5TQXVeRaJmX7MX6yxu4kMCfvU.cache
@@ -1,14 +0,0 @@
1
- class AutoMailer < ActionMailer::Base
2
- include GhostInThePost::Automatic
3
-
4
- default from: 'john@example.com'
5
-
6
- def normal_email
7
- set_ghost_timeout 5000
8
- mail(to: 'example@example.org', subject: "Notification for you") do |format|
9
- format.html { render :normal_email }
10
- format.text { render :normal_email }
11
- end
12
- end
13
-
14
- end
@@ -1 +0,0 @@
1
- dont worry about me
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <script>
5
- //to be removed
6
- </script>
7
- </head>
8
- <body>
9
- <span><%= "This makes sure it is preprocessed" %></span>
10
- <div id="test"></div>
11
- </body>
12
- </html>