html-proofer 3.3.0 → 3.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4bd65ec0e68209dd5779fe7fc1b7eb2ee685b67b
4
- data.tar.gz: e2a1ba66e4ff4294d1cc13d7374c9319abfab422
3
+ metadata.gz: 1362c6dbcda2e6b32a8794d8059a2faed3d53220
4
+ data.tar.gz: 367c4016f9c5f916f296a1aa0db2ddf7b4504212
5
5
  SHA512:
6
- metadata.gz: 775c6de3a7beb3bd5af2c9897fd3ce2497ffa6e5667e4fce5a7b90b49fa3ab847f78dba354cb7e9628e8fbc4fde5747a89565db0e61964e128262a7b003b347a
7
- data.tar.gz: 8c7475082e66945cc1f3b821da41284a0a7500edb73f7902942a3873aaead54a6edf1e04018925a9aa80082a6bfbc086fd5980cc22414e5a792f16e0e0ab2b57
6
+ metadata.gz: 40257c5bfc71ebcdb65215d1a4e1c18009453c8d16115b8555d262e985e57ff7801e6425c0af087247ab7efa7dbd65391476e3cf7375b570d4989da981085966
7
+ data.tar.gz: 0f673f255d4641a3e8c61943729b9fcd76c36e2b0f03201abbff81fdf961ceb9ead4ea618149e4d8e72db24c5bb991bc34cc3b7b04ffdfe0b7537607e65dc6fa
@@ -1,12 +1,14 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  class OpenGraphElement < ::HTMLProofer::Element
4
- def src
5
- @content
6
- end
7
-
8
- def url
9
- src
4
+ attr_reader :src
5
+
6
+ def initialize(obj, check)
7
+ super(obj, check)
8
+ # Fake up src from the content attribute
9
+ instance_variable_set("@src", @content)
10
+
11
+ @src.insert 0, 'http:' if @src =~ %r{^//}
10
12
  end
11
13
  end
12
14
 
@@ -1,3 +1,3 @@
1
1
  module HTMLProofer
2
- VERSION = '3.3.0'.freeze
2
+ VERSION = '3.3.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html-proofer
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-07 00:00:00.000000000 Z
11
+ date: 2016-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mercenary