pagespeedhelper 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pagespeedhelper.rb +6 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7af26cb32f1abebc7519255f48842ce7d698b60
4
- data.tar.gz: 410159249520f49fe455d9fc73b0f4f10e69bf75
3
+ metadata.gz: 09a3e6b69ff9d9c8343caaaaecdd9d132666b83b
4
+ data.tar.gz: 1e5da3ae049cde19d2820f841ef48f28d2577a88
5
5
  SHA512:
6
- metadata.gz: 091a8c0455c8f4139045f19922e92b9bba4cc439a85e4af8a0efd1356a84df94350dddbbe02feda5472f13ed6a1fcfc4aca8b350fdcdb0d6d8b392042c6a727f
7
- data.tar.gz: b309c0085f70f26ec6cf7f704450fcca75c4b369a788ac4b74f0e57a514a58bf0b46a11bee1f263212eca58c5a89b2673f0860f22108988d11dcb5f5cd9c5041
6
+ metadata.gz: 1e552244ec342f8ed7c2e3cb7368743bc2ee750bbf16f1347bedba7adceed1b78c3160a98700dcdc69f98714dac6a01fba7cfa10ddbc4bdff3ae3ac2288d86d7
7
+ data.tar.gz: 8308c211d07095e20891c1de1829bc2ff47603db0400d3a6166242e2138de401d603abc498ed58f8c61cb5ccd74a3f0d81029b32d6faccc702c32026a6c0d4ac
@@ -113,8 +113,12 @@ class PagespeedHelper
113
113
 
114
114
  @psservice.batch do |ps|
115
115
  urls.each do |url|
116
- ps.run_pagespeed(url, strategy: strategy) do |result, err|
117
- err.nil? ? data.push(result) : data.push({ "url" => url, "error" => err.to_s })
116
+ begin
117
+ ps.run_pagespeed(url, strategy: strategy) do |result, err|
118
+ err.nil? ? data.push(result) : data.push({ "url" => url, "error" => err.to_s })
119
+ end
120
+ rescue Google::Apis::ServerError => e
121
+ puts '[PAGESPEEDHELPER]: ' + e
118
122
  end
119
123
  end
120
124
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pagespeedhelper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirk Stennett