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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTNiZmE4NWJhYTNhOGQ0ZDkwY2M1ZGVhNzEwOTkxNjBjNWNjYTRlMg==
4
+ MTQwZjkwYmEyMTlkNDNiMzFlMGY4N2E2ZDFhNzkyMThmMmFiMWFjZA==
5
5
  data.tar.gz: !binary |-
6
- MWE3Yzk0NmNkMGJmYWVjMzBlMDljYTU3NzUxODc2NGRlMzYyMWUyMw==
6
+ MjhkYmE5ZTFjOWZmMDFjYjIwMDhjNjdlZTc4MzllODI2ZmQ4MjM3ZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjM1ZTBjMGMwYmY2YmNhMmQ1ZTlmNGZiMDdjMDIzOTZlY2I4YjEyYmQ5Yjk1
10
- MDVhNmE0YzRkYTUxNzA5ZWI0YmIxNTI4YTdlNDk3Y2VhNzY2NDBlOWVlN2Nk
11
- NWNlMzhmODQ0ZGUzZDQ1ZDNjMDYzY2I3NjlhYWQ5NWFlMzcyNmE=
9
+ Njg3YjU0YjIyNmZjMmJjODJlNjU4MWNlNDlkMjA4OGNkMWNkNmQwNDI4ODdh
10
+ MzU0ZjMxYWE4NTE4ZGExM2NjYmQ0ZDg3ZDg1YTZkOTkyZmJhMTdkZmUzMDgy
11
+ OTdkY2E3ODIzNjc5ZjBiYmYzZjMxMjc2YjJmMjgyMzA5N2VjZTA=
12
12
  data.tar.gz: !binary |-
13
- ZjNkOTAxODk3MDU1OTgzYTE2ZGNlOGYyYzQ4ZWIyZmY4NTI4ZmQ3OGJmZDE2
14
- NzUwNTViZGY5NTllMGFjY2Q5OWQyNjNiYmIxMjQ1ZTgyY2IwMDk2YzRmY2U3
15
- Y2QwNWQ3YWQ1OWQ1MTA5ZDRkYWMwNzY1M2NkNTI5OGRkNGYzMzA=
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.6'
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}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prerender_rails_embedded
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gian Carlo Pace