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 +4 -4
- data/lib/html-proofer/check/opengraph.rb +8 -6
- data/lib/html-proofer/version.rb +1 -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: 1362c6dbcda2e6b32a8794d8059a2faed3d53220
|
4
|
+
data.tar.gz: 367c4016f9c5f916f296a1aa0db2ddf7b4504212
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
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
|
|
data/lib/html-proofer/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mercenary
|