prerender_rails 1.8.0 → 1.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b30d3022d29d47b8ab191bb223c669544cf0c91b2ae47d013e36e553d90b4b1
4
- data.tar.gz: ad84a1c0b1e4a411575b53a17e9f6aa08445e264cf1c8216738ef79975ec1dcb
3
+ metadata.gz: fcd5622a31c0d6f51b84d9a63db4834d59b5aa5442096e43a6514c367abd28d2
4
+ data.tar.gz: ae4a796a882707228a707329970c4e6dea22dbef38b158c84c7815b0fc942daf
5
5
  SHA512:
6
- metadata.gz: a41fde4e2d9372eb8a023e8fd9a56cd19944d2558da90d39caff0044aae21e0ee02ea7b3c1adaa26b0d757670e3c7f334b1b64cafb06dbe189411082646bfc21
7
- data.tar.gz: 5b952c533002d2792f9f92c4fe21540349568fb82bcc2d23212466613321a706255b4aaae2e09b347784f4d5a1ee1fb582a83c9a96712cec14d935a99a1a371a
6
+ metadata.gz: aa07464d1baab8ad7eaf2be998d1f98676576eb981029627c77b88063aa597f7e8d9783ea588202339ceb68a51c8d22415431a721e5db3bbf8d74244ca23f697
7
+ data.tar.gz: 1802bbaca8c5d52f445b586d037a183565a45a26c054000eb234e7ac576a1bdd22efff4e8820cd69750ddb4bfb5838b981c4cc5b27f9e1beb73a12dafef6fbf8
@@ -19,6 +19,7 @@ module Rack
19
19
 
20
20
  @crawler_user_agents = [
21
21
  'googlebot',
22
+ 'Google-InspectionTool',
22
23
  'yahoo',
23
24
  'bingbot',
24
25
  'baiduspider',
@@ -186,7 +187,7 @@ module Rack
186
187
  response = http.request(req)
187
188
  if response['Content-Encoding'] == 'gzip'
188
189
  response.body = ActiveSupport::Gzip.decompress(response.body)
189
- response['Content-Length'] = response.body.length
190
+ response['Content-Length'] = response.body.bytesize
190
191
  response.delete('Content-Encoding')
191
192
  end
192
193
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "prerender_rails"
5
- spec.version = "1.8.0"
5
+ spec.version = "1.10.0"
6
6
  spec.authors = ["Todd Hooper"]
7
7
  spec.email = ["todd@prerender.io"]
8
8
  spec.description = %q{Rails middleware to prerender your javascript heavy pages on the fly by a phantomjs service}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prerender_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todd Hooper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-04 00:00:00.000000000 Z
11
+ date: 2023-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack