pagespeedhelper 0.4.6 → 0.4.7
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 +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 473c403663543a3fb1f557e2777e567f672e3f8f
|
4
|
+
data.tar.gz: 29a82ca2336a1406c4969b65621a1e8effe19b9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e0bfc9d5dbf5409a2bcc56ad42ae3dbe55876236a422750daeb7dd5830753b4eabdb486d87597ec687f469fdcd21e1c9050cae65a6d5a8b74ac232c33a741c9
|
7
|
+
data.tar.gz: 2df4fa583a624f7e1389bb12e5f5dfd7c63d52ed8303bafa1b5af635f868d33fc820cbc82a67668143b16ba08a71663f9bbeae6687ab5a0745eb436853fe350d
|
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=
|
20
|
+
def query(urls, strategy="desktop", secure=false)
|
21
21
|
@wait_time = 1
|
22
22
|
data = Array.new
|
23
23
|
|
@@ -124,6 +124,8 @@ class PagespeedHelper
|
|
124
124
|
def add_protocol_if_absent(url, secure=false)
|
125
125
|
if !url.include? "http://" and !url.include? "https://"
|
126
126
|
secure ? "https://" + url : "http://" + url
|
127
|
+
else
|
128
|
+
url
|
127
129
|
end
|
128
130
|
end
|
129
131
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pagespeedhelper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kirk Stennett
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-api-client
|