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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bea117585bfa69485f75b5d59b4dad888798ac1d
4
- data.tar.gz: e9154a2819b575e21dcf59a041939c77d7509f19
3
+ metadata.gz: 384b604e728c753c47f036b2c714b10cf26a8549
4
+ data.tar.gz: 0d8c11d04441682e63c0b5a2c644143008fe7530
5
5
  SHA512:
6
- metadata.gz: d59d5961e6eafedd3ee53c48dca84d7e247f7ac48b94f0336bf3dd2eaf00a4fe2fc18e90b9d2e506aad75a6d6363756c3b21d67ed432ce4b743e5f2737d958f7
7
- data.tar.gz: 65b6316b6fad3166f3d22bfc416e2e4219062c941dc114d2cc0717793d190218ef1c58991912299ac8d50ff814b3ec3ed882f0d87851bc3df581bf5ade557833
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
- (og.title || meta.title || body.title).strip
11
+ title = og.title || meta.title || body.title
12
+ title.strip if title
12
13
  end
13
14
 
14
15
  def description
15
- (og.description || meta.description || body.description).strip
16
+ description = og.description || meta.description || body.description
17
+ description.strip if description
16
18
  end
17
19
 
18
20
  def image_url
@@ -1,3 +1,3 @@
1
1
  class LinkOracle
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
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
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-09-24 00:00:00.000000000 Z
16
+ date: 2014-10-02 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: nokogiri