ghost_in_the_post 0.1.2 → 0.1.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe35d98b561a58b1bdde7d2d0b737ed63596af75
|
4
|
+
data.tar.gz: 8d413849005f47c94d89b730aed26ff88ab68577
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 873e278bb471b1fe87495da70f9cbd7a9fa6a4f7c4d84aa770ea8458c90376a4386640f5cedfa0c9ce004738473536c57c553811771970d6d32e39c28edf47e7
|
7
|
+
data.tar.gz: eab19b013fb94fae08245ea262f128d004eb8f834f42414544aad051b44c8d242ad6d621eef70ff803f49bece7cdfc5d38d08e0b8860c2af8d2a6c50f5bdbabd
|
@@ -4,6 +4,7 @@ module GhostInThePost
|
|
4
4
|
|
5
5
|
class PhantomTransform
|
6
6
|
PHANTOMJS_SCRIPT = File.expand_path('../phantom/staticize.js', __FILE__)
|
7
|
+
TAG = "[GHOSTINTHEPOST-STATICIZE]"
|
7
8
|
ERROR_TAG = "[GHOSTINTHEPOST-STATICIZE-ERROR]"
|
8
9
|
|
9
10
|
def initialize(html, timeout=nil, wait_event=nil, included_scripts=nil)
|
@@ -17,6 +18,7 @@ module GhostInThePost
|
|
17
18
|
begin
|
18
19
|
htmlfile = html_file(@inliner.html)
|
19
20
|
@inliner.html = checkError(IO.popen(command(htmlfile)){|io| io.read})
|
21
|
+
p "#{TAG} #{@inliner.html}" if GhostInThePost.debug
|
20
22
|
ensure
|
21
23
|
if GhostInThePost.debug and @has_error
|
22
24
|
p "Generated html can be found at #{htmlfile.path}"
|
metadata
CHANGED
@@ -1,87 +1,86 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ghost_in_the_post
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Anema
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: rails
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
16
15
|
requirements:
|
17
16
|
- - "~>"
|
18
17
|
- !ruby/object:Gem::Version
|
19
18
|
version: 4.2.3
|
20
|
-
|
19
|
+
name: rails
|
21
20
|
prerelease: false
|
21
|
+
type: :runtime
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 4.2.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: nokogiri
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
30
29
|
requirements:
|
31
30
|
- - ">="
|
32
31
|
- !ruby/object:Gem::Version
|
33
32
|
version: '0'
|
34
|
-
|
33
|
+
name: nokogiri
|
35
34
|
prerelease: false
|
35
|
+
type: :runtime
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: bundler
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
44
43
|
requirements:
|
45
44
|
- - "~>"
|
46
45
|
- !ruby/object:Gem::Version
|
47
46
|
version: '1.6'
|
48
|
-
|
47
|
+
name: bundler
|
49
48
|
prerelease: false
|
49
|
+
type: :development
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '1.6'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name: rspec
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
58
57
|
requirements:
|
59
58
|
- - "~>"
|
60
59
|
- !ruby/object:Gem::Version
|
61
60
|
version: '3.0'
|
62
|
-
|
61
|
+
name: rspec
|
63
62
|
prerelease: false
|
63
|
+
type: :development
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name: rspec-rails
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
72
71
|
requirements:
|
73
72
|
- - ">="
|
74
73
|
- !ruby/object:Gem::Version
|
75
74
|
version: '0'
|
76
|
-
|
75
|
+
name: rspec-rails
|
77
76
|
prerelease: false
|
77
|
+
type: :development
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
-
description: Using phantomjs to pre-run javascript in emails. This is best if you
|
84
|
-
have content that uses mustache templates that you would like to reuse in your emails.
|
83
|
+
description: Using phantomjs to pre-run javascript in emails. This is best if you have content that uses mustache templates that you would like to reuse in your emails.
|
85
84
|
email:
|
86
85
|
- timanema@gmail.com
|
87
86
|
executables: []
|
@@ -150,7 +149,7 @@ homepage: https://github.com/tanema/ghost_in_the_post
|
|
150
149
|
licenses:
|
151
150
|
- MIT
|
152
151
|
metadata: {}
|
153
|
-
post_install_message:
|
152
|
+
post_install_message:
|
154
153
|
rdoc_options: []
|
155
154
|
require_paths:
|
156
155
|
- lib
|
@@ -165,12 +164,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
164
|
- !ruby/object:Gem::Version
|
166
165
|
version: '0'
|
167
166
|
requirements: []
|
168
|
-
rubyforge_project:
|
169
|
-
rubygems_version: 2.
|
170
|
-
signing_key:
|
167
|
+
rubyforge_project:
|
168
|
+
rubygems_version: 2.4.8
|
169
|
+
signing_key:
|
171
170
|
specification_version: 4
|
172
171
|
summary: Using phantomjs to pre-run javascript in emails
|
173
172
|
test_files:
|
173
|
+
- spec/spec_helper.rb
|
174
|
+
- spec/dummy/config.ru
|
175
|
+
- spec/dummy/Gemfile
|
176
|
+
- spec/dummy/Gemfile.lock
|
174
177
|
- spec/dummy/app/assets/javascripts/application.js
|
175
178
|
- spec/dummy/app/assets/javascripts/test.js
|
176
179
|
- spec/dummy/app/mailers/mailer.rb
|
@@ -185,6 +188,8 @@ test_files:
|
|
185
188
|
- spec/dummy/config/application.rb
|
186
189
|
- spec/dummy/config/boot.rb
|
187
190
|
- spec/dummy/config/environment.rb
|
191
|
+
- spec/dummy/config/routes.rb
|
192
|
+
- spec/dummy/config/secrets.yml
|
188
193
|
- spec/dummy/config/environments/development.rb
|
189
194
|
- spec/dummy/config/initializers/assets.rb
|
190
195
|
- spec/dummy/config/initializers/backtrace_silencers.rb
|
@@ -195,18 +200,12 @@ test_files:
|
|
195
200
|
- spec/dummy/config/initializers/mime_types.rb
|
196
201
|
- spec/dummy/config/initializers/session_store.rb
|
197
202
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
198
|
-
- spec/
|
199
|
-
- spec/dummy/config/secrets.yml
|
200
|
-
- spec/dummy/config.ru
|
201
|
-
- spec/dummy/Gemfile
|
202
|
-
- spec/dummy/Gemfile.lock
|
203
|
+
- spec/lib/ghost_in_the_post_spec.rb
|
203
204
|
- spec/lib/ghost_in_the_post/automatic_spec.rb
|
204
205
|
- spec/lib/ghost_in_the_post/ghost_on_command_spec.rb
|
205
206
|
- spec/lib/ghost_in_the_post/js_inline_spec.rb
|
206
207
|
- spec/lib/ghost_in_the_post/mail_ghost_spec.rb
|
207
208
|
- spec/lib/ghost_in_the_post/mailer_spec.rb
|
208
209
|
- spec/lib/ghost_in_the_post/phantom_transform_spec.rb
|
209
|
-
- spec/lib/ghost_in_the_post_spec.rb
|
210
|
-
- spec/spec_helper.rb
|
211
210
|
- spec/support/mailer_support.rb
|
212
211
|
- spec/support/quiet_load.rb
|