urifetch 0.1.1.rc2 → 0.1.1.rc3

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.
@@ -49,14 +49,14 @@ module Urifetch
49
49
  # Start by setting the URI
50
50
  set :url, uri.to_s.sub(/\/$/,"")
51
51
 
52
- doc = Nokogiri::HTML.parse(@request)
52
+ doc = Nokogiri::HTML.parse(@request,false)
53
53
 
54
54
  # Open Auth data
55
55
  if og = OpenGraph.parse(doc)
56
- set :url, og.url.to_s.sub(/\/$/,""), override: true
57
- set :title, og.title
58
- set :image, og.image
59
- set :description, og.description
56
+ set :url, og.url.to_s.sub(/\/$/,""), override: true if og.url
57
+ set :title, og.title if og.title
58
+ set :image, og.image if og.image
59
+ set :description, og.description if og.description
60
60
  end
61
61
 
62
62
  # Custom CSS data
@@ -5,7 +5,7 @@ module Urifetch
5
5
  MAJOR = 0
6
6
  MINOR = 1
7
7
  PATCH = 1
8
- BUILD = 'rc2'
8
+ BUILD = 'rc3'
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
11
11
 
data/urifetch.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "urifetch"
8
- s.version = "0.1.1.rc2"
8
+ s.version = "0.1.1.rc3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Philip Vieira"]
12
- s.date = "2012-11-14"
12
+ s.date = "2012-11-16"
13
13
  s.description = "Urifetch allows you to fetch data from any URL using pattern matching. The library allows for dynamically adding match handlers as well as build your own strategies."
14
14
  s.email = "philip@vallin.se"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: urifetch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.rc2
4
+ version: 0.1.1.rc3
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-14 00:00:00.000000000 Z
12
+ date: 2012-11-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: addressable
@@ -249,7 +249,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
249
249
  version: '0'
250
250
  segments:
251
251
  - 0
252
- hash: -2471685244619805773
252
+ hash: -2068586729920821913
253
253
  required_rubygems_version: !ruby/object:Gem::Requirement
254
254
  none: false
255
255
  requirements: