jigsaw-bpa 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/jigsaw-bpa-lib.rb +2 -2
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8eae5872b0b0e1b5a9e794c722b5962d33c81c3
|
4
|
+
data.tar.gz: b3332fe031cfd2a90227fa5ede7b389a04d953a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 767e3b850e220aad966e9f53f00a3d1a99888040c3dc5520d8644f454108be47a4e578c0921aaf2ba75d81808122fb6d85280ee0806de9cc0e5333ca0fd47300
|
7
|
+
data.tar.gz: 8b6a137d6006b9c3f861954930fb2a565c2a155b6b36fdba7a231dad65a9f89acafe25abd7076618f4b64bae846a44568f1b711a5a510c62a2387ae75986984a
|
data/lib/jigsaw-bpa-lib.rb
CHANGED
@@ -32,7 +32,7 @@ def run_test(name,test,content)
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def css_in_head(content)
|
35
|
-
content.xpath(%q(//link[@rel="stylesheet" and not(ancestor::head)])).empty? ? false : true
|
35
|
+
content.xpath(%q(//link[@rel="stylesheet" and not(ancestor::head) and not(starts-with(@href, "https://fonts.googleapis.com"))])).empty? ? false : true
|
36
36
|
end
|
37
37
|
|
38
38
|
def css_other_attr(content)
|
@@ -48,7 +48,7 @@ def js_inline(content)
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def css_asset_path(content)
|
51
|
-
content.xpath(%q(//link[@rel="stylesheet" and not(starts-with(@href, "/assets"))])).empty? ? false : true
|
51
|
+
content.xpath(%q(//link[@rel="stylesheet" and not(starts-with(@href, "/assets")) and not(starts-with(@href, "https://fonts.googleapis.com"))])).empty? ? false : true
|
52
52
|
end
|
53
53
|
|
54
54
|
def js_asset_path(content)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jigsaw-bpa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AutoScout24
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oga
|
@@ -56,4 +56,3 @@ signing_key:
|
|
56
56
|
specification_version: 4
|
57
57
|
summary: Jigsaw best practice analyser
|
58
58
|
test_files: []
|
59
|
-
has_rdoc:
|