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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d234bea4b2c6f26c897f1135cfd266874346e7c
4
- data.tar.gz: 5ec41308b56fe3d639d83b880ab24354df45a398
3
+ metadata.gz: 85ecdde30b93358a2c9aa47a6c88fcd1df786086
4
+ data.tar.gz: 15ae9207f157eae81bb2a19fc4f4f9bf2b56882f
5
5
  SHA512:
6
- metadata.gz: b489f32ebd5873b754860971b571f1375490fc29db6495adfc576a882aad9d8c21de6e92083f8bb0017271eefa8433aab728a8c0ca50fbc09384b1eccecc0b41
7
- data.tar.gz: b6f990bcbdfa495f24b4862777c32cc712dbfb511039de0f20437e60ef8c149c145f4dc73420016305ec08306a8d13af9ed24fb291e01238e09a0eb90fad6878
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
- @connection.builder.insert(0, middleware)
96
+ @connection.builder.insert(0, middleware)
97
97
  end
98
98
  end
99
99
  end
@@ -1,4 +1,4 @@
1
1
  module OpenGraphReader
2
2
  # Tbe library version
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  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.0
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-07 00:00:00.000000000 Z
11
+ date: 2014-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri