jigsaw-bpa 1.0.2 → 1.0.3
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 +3 -3
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a39c2c5039fa8b94254e75e9e77627c86e2308e5
|
4
|
+
data.tar.gz: 09cdafc2644807ff0bcae59ed7695b9f5195a5dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d1b38fcbf0b71c83bd7b04b2e6bc42010a79a8c74eb3037720893036a51f238d99774dc35475fd1020e1ab60b789c045bbdb66b62523e2edfee3380dbf7cff5
|
7
|
+
data.tar.gz: 3430d5f37a86f25a9414abd0f3b61fc8c27e52af09cc1e2a2c2387b2eac122ef71a9d553eef6ea1da1a629206603e22289c70f41ee32d839c1de2fd0e4e238e9
|
data/lib/jigsaw-bpa-lib.rb
CHANGED
@@ -44,13 +44,13 @@ def js_defer_async(content)
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def js_inline(content)
|
47
|
-
content.xpath(%q(//script[not(@src)])).empty? ? false : true
|
47
|
+
content.xpath(%q(//script[not(@src) and not(@data-pagespeed-no-defer)])).empty? ? false : true
|
48
48
|
end
|
49
49
|
|
50
50
|
def css_asset_path(content)
|
51
|
-
content.xpath(%q(//link[@rel="stylesheet" and
|
51
|
+
content.xpath(%q(//link[@rel="stylesheet" and not(starts-with(@href, "/assets"))])).empty? ? false : true
|
52
52
|
end
|
53
53
|
|
54
54
|
def js_asset_path(content)
|
55
55
|
content.xpath(%q(//script[@src and not(starts-with(@src, "http")) and not(starts-with(@src, "/assets"))])).empty? ? false : true
|
56
|
-
end
|
56
|
+
end
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AutoScout24
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oga
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
version: 1.2.1
|
27
27
|
description: Provides metrics over given url regarding jigsaw ui composition best
|
28
28
|
practices
|
29
|
-
email:
|
29
|
+
email: rsladek@autocout24.com
|
30
30
|
executables: []
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
@@ -56,3 +56,4 @@ signing_key:
|
|
56
56
|
specification_version: 4
|
57
57
|
summary: Jigsaw best practice analyser
|
58
58
|
test_files: []
|
59
|
+
has_rdoc:
|