link_oracle 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/link_oracle/link_data.rb +4 -2
- data/lib/link_oracle/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: 384b604e728c753c47f036b2c714b10cf26a8549
|
4
|
+
data.tar.gz: 0d8c11d04441682e63c0b5a2c644143008fe7530
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a99406314c99255ec4be08fd66bf60b93491332c5b28a947c1d569e64c90d7d95d60869f01620ccac6231ec9bc22ecd8fa29c9d81a0e702034b09b597ef6730c
|
7
|
+
data.tar.gz: e3a4a293759f35aa51d9e2ab6b47ec3f60c18f62d32c8967df9435050caf12db5dc0a47db5464035120d933ee8af3b659021e06724861087e2d715e960056c65
|
@@ -8,11 +8,13 @@ class LinkOracle
|
|
8
8
|
|
9
9
|
#TODO: Need to write tests for these
|
10
10
|
def title
|
11
|
-
|
11
|
+
title = og.title || meta.title || body.title
|
12
|
+
title.strip if title
|
12
13
|
end
|
13
14
|
|
14
15
|
def description
|
15
|
-
|
16
|
+
description = og.description || meta.description || body.description
|
17
|
+
description.strip if description
|
16
18
|
end
|
17
19
|
|
18
20
|
def image_url
|
data/lib/link_oracle/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: link_oracle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Cooper
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2014-
|
16
|
+
date: 2014-10-02 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: nokogiri
|