open_graph_reader 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/open_graph_reader/fetcher.rb +5 -5
- data/lib/open_graph_reader/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85ecdde30b93358a2c9aa47a6c88fcd1df786086
|
4
|
+
data.tar.gz: 15ae9207f157eae81bb2a19fc4f4f9bf2b56882f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e744d0d5d4f9636faea468b890601a2d89a46ba04b09b5cf62699cd1e6f19eac4e993861e0141a9cc5c9194a3d47c1c3ba5fb70d33f6fd96138d745bfb8070f
|
7
|
+
data.tar.gz: 300f625f8ed16b5c27b192a5e7ca5ec2a98952f70c48df2e72c4fe2f9ad6698fc1a71924b0d7760286715f43dd947bd42f2484955f857898fd3000f97500c579
|
@@ -21,13 +21,13 @@ module OpenGraphReader
|
|
21
21
|
@uri = uri
|
22
22
|
@connection = Faraday.default_connection.dup
|
23
23
|
|
24
|
-
if defined? FaradayMiddleware
|
25
|
-
prepend_middleware FaradayMiddleware::FollowRedirects
|
26
|
-
end
|
27
|
-
|
28
24
|
if defined? Faraday::CookieJar
|
29
25
|
prepend_middleware Faraday::CookieJar
|
30
26
|
end
|
27
|
+
|
28
|
+
if defined? FaradayMiddleware
|
29
|
+
prepend_middleware FaradayMiddleware::FollowRedirects
|
30
|
+
end
|
31
31
|
end
|
32
32
|
|
33
33
|
# The URL to fetch
|
@@ -93,7 +93,7 @@ module OpenGraphReader
|
|
93
93
|
|
94
94
|
def prepend_middleware middleware
|
95
95
|
unless @connection.builder.handlers.include? middleware
|
96
|
-
|
96
|
+
@connection.builder.insert(0, middleware)
|
97
97
|
end
|
98
98
|
end
|
99
99
|
end
|
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.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonne Haß
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|