Update open_graph_reader gem

closes #8307
This commit is contained in:
Thorsten Claus 2021-10-13 08:11:01 +02:00 committed by Benjamin Neff
parent 3292ce64fc
commit 88e2e593a4
No known key found for this signature in database
GPG key ID: 971464C3F1A90194
4 changed files with 5 additions and 5 deletions

View file

@ -144,7 +144,7 @@ gem "leaflet-rails", "1.7.0"
# Parsing
gem "nokogiri", "1.11.7"
gem "open_graph_reader", "0.7.1" # also update User-Agent in features/support/webmock.rb and open_graph_cache_spec.rb
gem "open_graph_reader", "0.7.2" # also update User-Agent in features/support/webmock.rb and open_graph_cache_spec.rb
gem "redcarpet", "3.5.1"
gem "ruby-oembed", "0.15.0"
gem "twitter-text", "1.14.7"

View file

@ -450,7 +450,7 @@ GEM
rack
omniauth-wordpress (0.2.2)
omniauth-oauth2 (>= 1.1.0)
open_graph_reader (0.7.1)
open_graph_reader (0.7.2)
faraday (>= 0.9.0)
nokogiri (~> 1.6)
openid_connect (1.2.0)
@ -858,7 +858,7 @@ DEPENDENCIES
omniauth-tumblr (= 1.2)
omniauth-twitter (= 1.4.0)
omniauth-wordpress (= 0.2.2)
open_graph_reader (= 0.7.1)
open_graph_reader (= 0.7.2)
openid_connect (= 1.2.0)
pg (= 1.2.3)
pronto (= 0.11.0)

View file

@ -7,7 +7,7 @@ Before do
stub_request(:head, /.+/).with(
headers: {
"Accept" => "text/html",
"User-Agent" => "OpenGraphReader/0.7.1 (+https://github.com/jhass/open_graph_reader)"
"User-Agent" => "OpenGraphReader/0.7.2 (+https://github.com/jhass/open_graph_reader)"
}
).to_return(status: 200, body: "", headers: {"Content-Type" => "text/plain"})
end

View file

@ -63,7 +63,7 @@ describe OpenGraphCache, type: :model do
stub_request(:head, "http:///wetter.com")
.with(headers: {
"Accept" => "text/html",
"User-Agent" => "OpenGraphReader/0.7.1 (+https://github.com/jhass/open_graph_reader)"
"User-Agent" => "OpenGraphReader/0.7.2 (+https://github.com/jhass/open_graph_reader)"
})
.to_return(status: 200, body: "", headers:
{"Set-Cookie" => "Dabgroup=A;path=/;Expires=Thu, 23 May 2019 16:12:01 GMT;httpOnly"})