open_graph_reader 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/open_graph_reader/version.rb +1 -1
- data/spec/open_graph_reader/fetcher_spec.rb +4 -3
- data/spec/spec_helper.rb +0 -1
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6946bdd3bb2cb2f59249d7310080adb70d26338688d78ab83b88003fbd14758a
|
4
|
+
data.tar.gz: 88d44535006044e26d590cde520be5fb44b8684f101604f5a4f2049574989e1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5022521d6e888ecee9d4e6768cbea7813633f8374db3017d661c2ed33f6522645c408c5eb3b53f66f8881cb0027a32a98a0def24a7211bb778c37631e2707c9
|
7
|
+
data.tar.gz: 9db30aff21f2087b3dfba8f399497fa9d84b7ff8abe8f9d5bb89cef12cc4b52e12b92c653cc7f107ec4f3ff86e70267bc7fe68d8425c46ad0a9d00cbb95e15eb
|
@@ -1,14 +1,15 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
3
|
RSpec.describe OpenGraphReader::Fetcher do
|
4
|
-
let(:
|
4
|
+
let(:host) { "example.org" }
|
5
|
+
let(:uri) { URI("http://#{host}") }
|
5
6
|
let(:fetcher) { described_class.new uri }
|
6
7
|
let(:good_response) { {status: 200, body: "", headers: {"Content-Type" => "text/html"}} }
|
7
8
|
|
8
9
|
context "error during body fetch" do
|
9
10
|
before do
|
10
|
-
stub_request(:head,
|
11
|
-
stub_request(:get,
|
11
|
+
stub_request(:head, host).to_return(good_response)
|
12
|
+
stub_request(:get, host).to_raise(Faraday::ConnectionFailed.new("execution expired"))
|
12
13
|
end
|
13
14
|
|
14
15
|
describe "#body" do
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: open_graph_reader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonne Haß
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '13.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '13.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -194,7 +194,7 @@ homepage: https://github.com/jhass/open_graph_reader
|
|
194
194
|
licenses:
|
195
195
|
- MIT
|
196
196
|
metadata: {}
|
197
|
-
post_install_message:
|
197
|
+
post_install_message:
|
198
198
|
rdoc_options: []
|
199
199
|
require_paths:
|
200
200
|
- lib
|
@@ -209,9 +209,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
209
209
|
- !ruby/object:Gem::Version
|
210
210
|
version: '0'
|
211
211
|
requirements: []
|
212
|
-
|
213
|
-
|
214
|
-
signing_key:
|
212
|
+
rubygems_version: 3.1.2
|
213
|
+
signing_key:
|
215
214
|
specification_version: 4
|
216
215
|
summary: OpenGraph protocol parser
|
217
216
|
test_files:
|