pagespeedhelper 0.4.7 → 0.4.8

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 +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 473c403663543a3fb1f557e2777e567f672e3f8f
4
- data.tar.gz: 29a82ca2336a1406c4969b65621a1e8effe19b9f
3
+ metadata.gz: 3ff8226c6907c48de4b523d7ad267202347a6771
4
+ data.tar.gz: 324067c982c5c41a33e09ee581b179d68cf09951
5
5
  SHA512:
6
- metadata.gz: 4e0bfc9d5dbf5409a2bcc56ad42ae3dbe55876236a422750daeb7dd5830753b4eabdb486d87597ec687f469fdcd21e1c9050cae65a6d5a8b74ac232c33a741c9
7
- data.tar.gz: 2df4fa583a624f7e1389bb12e5f5dfd7c63d52ed8303bafa1b5af635f868d33fc820cbc82a67668143b16ba08a71663f9bbeae6687ab5a0745eb436853fe350d
6
+ metadata.gz: 6b66596a9436abd102ba13839af9fedd173c3625df9abb4285ac823271394371648a916ad2b1e1f1b59c0af9421b3121f0e51368eff9f23245bb51ede9c6edcf
7
+ data.tar.gz: 665d0c0d6738fa0ee1621e20e5a3f88d2a42235c193d00df421f2945e38dd5eccfe9049a6909195ef95e30b79195bf791fd464478f8a13039837c9a1a55e8c37
@@ -17,7 +17,7 @@ class PagespeedHelper
17
17
  end
18
18
  end
19
19
 
20
- def query(urls, strategy="desktop", secure=false)
20
+ def query(urls, strategy="desktop", secure=false, conserve=false)
21
21
  @wait_time = 1
22
22
  data = Array.new
23
23
 
@@ -31,7 +31,7 @@ class PagespeedHelper
31
31
  results = send_request(url_list, strategy)
32
32
  end while rate_error?(results)
33
33
 
34
- data.concat results
34
+ conserve ? data.concat(PagespeedHelper.parse(results)) : data.concat(results)
35
35
  sleep(3)
36
36
  end
37
37
 
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.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirk Stennett