pagespeedhelper 0.4.7 → 0.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pagespeedhelper.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ff8226c6907c48de4b523d7ad267202347a6771
|
4
|
+
data.tar.gz: 324067c982c5c41a33e09ee581b179d68cf09951
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b66596a9436abd102ba13839af9fedd173c3625df9abb4285ac823271394371648a916ad2b1e1f1b59c0af9421b3121f0e51368eff9f23245bb51ede9c6edcf
|
7
|
+
data.tar.gz: 665d0c0d6738fa0ee1621e20e5a3f88d2a42235c193d00df421f2945e38dd5eccfe9049a6909195ef95e30b79195bf791fd464478f8a13039837c9a1a55e8c37
|
data/lib/pagespeedhelper.rb
CHANGED
@@ -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
|
|