prerender_rails_embedded 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/prerender_rails_embedded.js +3 -0
- data/prerender_rails_embedded.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTQwZjkwYmEyMTlkNDNiMzFlMGY4N2E2ZDFhNzkyMThmMmFiMWFjZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MjhkYmE5ZTFjOWZmMDFjYjIwMDhjNjdlZTc4MzllODI2ZmQ4MjM3ZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Njg3YjU0YjIyNmZjMmJjODJlNjU4MWNlNDlkMjA4OGNkMWNkNmQwNDI4ODdh
|
10
|
+
MzU0ZjMxYWE4NTE4ZGExM2NjYmQ0ZDg3ZDg1YTZkOTkyZmJhMTdkZmUzMDgy
|
11
|
+
OTdkY2E3ODIzNjc5ZjBiYmYzZjMxMjc2YjJmMjgyMzA5N2VjZTA=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTIxNDU2NDNlNGJmZmE2NmJkMDhhNzI4ZjlkNTcyNWM3M2U4OWU1YjE4OWM5
|
14
|
+
Njg1NTIyZjA2OGI1N2U5NDNjZThiMjU0ZjBjYTA3OTg4NWMwMjRlYjU2M2U2
|
15
|
+
ZmE1MjI4ZDFhZDZiMDc4MmMzMWM3ZTVhYWEwNDQzMDMwNTdiOTQ=
|
@@ -78,6 +78,9 @@ surrender.evaluateJavascriptOnPage = function(t, msPassed) {
|
|
78
78
|
if (msPassed === undefined) msPassed = 0;
|
79
79
|
|
80
80
|
if(!out.shouldWaitForPrerenderReady || (out.shouldWaitForPrerenderReady && out.prerenderReady) || msPassed >= 20000) {
|
81
|
+
|
82
|
+
if (msPassed >= 20000) _this.logError("prerenderReady=true not found after 20s for page: " + page.url);
|
83
|
+
|
81
84
|
_this.serveHtml(out.html);
|
82
85
|
} else {
|
83
86
|
setTimeout(function(){_this.evaluateJavascriptOnPage(_this, msPassed + EVALUATE_JAVASCRIPT_CHECK_TIMEOUT)}, EVALUATE_JAVASCRIPT_CHECK_TIMEOUT);
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'prerender_rails_embedded'
|
5
|
-
spec.version = '0.2.
|
5
|
+
spec.version = '0.2.7'
|
6
6
|
spec.authors = ['Gian Carlo Pace', 'Luca Mirra']
|
7
7
|
spec.email = %w(giancarlo.pace@etalia.net)
|
8
8
|
spec.description = %q{A plugin for prerender_rails middleware to render JavaScript web app on the fly calling phantomjs directly}
|