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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jigsaw-bpa-lib.rb +2 -2
  3. metadata +2 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a39c2c5039fa8b94254e75e9e77627c86e2308e5
4
- data.tar.gz: 09cdafc2644807ff0bcae59ed7695b9f5195a5dc
3
+ metadata.gz: e8eae5872b0b0e1b5a9e794c722b5962d33c81c3
4
+ data.tar.gz: b3332fe031cfd2a90227fa5ede7b389a04d953a2
5
5
  SHA512:
6
- metadata.gz: 3d1b38fcbf0b71c83bd7b04b2e6bc42010a79a8c74eb3037720893036a51f238d99774dc35475fd1020e1ab60b789c045bbdb66b62523e2edfee3380dbf7cff5
7
- data.tar.gz: 3430d5f37a86f25a9414abd0f3b61fc8c27e52af09cc1e2a2c2387b2eac122ef71a9d553eef6ea1da1a629206603e22289c70f41ee32d839c1de2fd0e4e238e9
6
+ metadata.gz: 767e3b850e220aad966e9f53f00a3d1a99888040c3dc5520d8644f454108be47a4e578c0921aaf2ba75d81808122fb6d85280ee0806de9cc0e5333ca0fd47300
7
+ data.tar.gz: 8b6a137d6006b9c3f861954930fb2a565c2a155b6b36fdba7a231dad65a9f89acafe25abd7076618f4b64bae846a44568f1b711a5a510c62a2387ae75986984a
@@ -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.3
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-12 00:00:00.000000000 Z
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: