bump open_graph_reader
This commit is contained in:
parent
6dfc77f385
commit
2c7b7bb0dc
4 changed files with 8 additions and 6 deletions
2
Gemfile
2
Gemfile
|
|
@ -125,7 +125,7 @@ gem 'redcarpet', '3.2.2'
|
|||
gem 'twitter-text', '1.11.0'
|
||||
gem 'roxml', '3.1.6'
|
||||
gem 'ruby-oembed', '0.8.12'
|
||||
gem 'open_graph_reader', '0.4.0'
|
||||
gem 'open_graph_reader', '0.5.0'
|
||||
|
||||
|
||||
# Services
|
||||
|
|
|
|||
|
|
@ -435,7 +435,7 @@ GEM
|
|||
omniauth-oauth (~> 1.0)
|
||||
omniauth-wordpress (0.2.1)
|
||||
omniauth-oauth2 (~> 1.1.0)
|
||||
open_graph_reader (0.4.0)
|
||||
open_graph_reader (0.5.0)
|
||||
faraday (~> 0.9.0)
|
||||
nokogiri (~> 1.6)
|
||||
orm_adapter (0.5.0)
|
||||
|
|
@ -744,7 +744,7 @@ DEPENDENCIES
|
|||
omniauth-tumblr (= 1.1)
|
||||
omniauth-twitter (= 1.0.1)
|
||||
omniauth-wordpress (= 0.2.1)
|
||||
open_graph_reader (= 0.4.0)
|
||||
open_graph_reader (= 0.5.0)
|
||||
pry
|
||||
pry-byebug
|
||||
pry-debundle
|
||||
|
|
|
|||
|
|
@ -41,6 +41,6 @@ class OpenGraphCache < ActiveRecord::Base
|
|||
self.description = object.og.description
|
||||
|
||||
self.save
|
||||
rescue OpenGraphReader::NoOpenGraphDataError
|
||||
rescue OpenGraphReader::NoOpenGraphDataError, OpenGraphReader::InvalidObjectError
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
OpenGraphReader.configure do |config|
|
||||
config.synthesize_title = true
|
||||
config.synthesize_image_url = true
|
||||
config.synthesize_title = true
|
||||
config.synthesize_url = true
|
||||
config.synthesize_image_url = true
|
||||
config.guess_datetime_format = true
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue