metainspector 3.1.0 → 3.1.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: 46f73f718a436065bc4353e279e997afebb0c43b
4
- data.tar.gz: ed7aa01afb850aacca6ed942beb7ba9d5e596d3b
3
+ metadata.gz: 9335bc2c238b50b6674633cbed8575ca4b8f839d
4
+ data.tar.gz: aa6f0afd00f2f42662a2d0048851476bf0da8afe
5
5
  SHA512:
6
- metadata.gz: 469d195a8b0f8fb5417bff510f3703b5cfde6ce5dba9866851e629f8c8d64dd73a680da7e3fb7614f556302ad1f12f7a59014df66b10ca1cf4f8cdead00ad67a
7
- data.tar.gz: 0d7e3ae71b4beec707e293067c2f76db5698d399ea42071ef8845b551fedee2e7f400a62a066225572dc195ae21fc2504043419ef60b75ef0adf22ae6220034a
6
+ metadata.gz: 29694513da14081b5197bd3e7ebe2a52e8b0a64cd629ff5f45425a08a546651df454381da0f8b89cb98a03b4b925dbf11ece9baa9cef61c5e643afdf8ccd5cd4
7
+ data.tar.gz: df6617ce0020ea959dd3e5707dfff94b1157f62cf305866c86052d38bc36c6ebfe3748753d79d3c96a2f2ba36ffd789f426699ac893c3094b2e04d0d9740f53b
@@ -13,7 +13,7 @@ module MetaInspector
13
13
 
14
14
  def initialize(initial_url, options = {})
15
15
  @url = initial_url
16
-
16
+
17
17
  @allow_redirections = options[:allow_redirections]
18
18
  @timeout = options[:timeout]
19
19
  @retries = options[:retries]
@@ -43,7 +43,7 @@ module MetaInspector
43
43
  rescue Timeout::Error
44
44
  retry unless @retries == request_count
45
45
  @exception_log << TimeoutError.new("Attempt to fetch #{url} timed out 3 times.")
46
- rescue Faraday::ConnectionFailed, RuntimeError => e
46
+ rescue Faraday::Error::ConnectionFailed, RuntimeError => e
47
47
  @exception_log << e
48
48
  nil
49
49
  end
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  module MetaInspector
4
- VERSION = "3.1.0"
4
+ VERSION = "3.1.1"
5
5
  end
@@ -16,9 +16,9 @@ Gem::Specification.new do |gem|
16
16
  gem.version = MetaInspector::VERSION
17
17
 
18
18
  gem.add_dependency 'nokogiri', '~> 1.6'
19
- gem.add_dependency 'faraday'
20
- gem.add_dependency 'faraday_middleware'
21
- gem.add_dependency 'faraday-cookie_jar'
19
+ gem.add_dependency 'faraday', '~> 0.9.0'
20
+ gem.add_dependency 'faraday_middleware', '~> 0.9.1'
21
+ gem.add_dependency 'faraday-cookie_jar', '~> 0.0.6'
22
22
  gem.add_dependency 'addressable', '~> 2.3.5'
23
23
 
24
24
  gem.add_development_dependency 'rspec', '2.14.1'
data/spec/request_spec.rb CHANGED
@@ -39,7 +39,7 @@ describe MetaInspector::Request do
39
39
 
40
40
  it "should handle socket errors" do
41
41
  TCPSocket.stub(:open).and_raise(SocketError)
42
- logger.should receive(:<<).with(an_instance_of(Faraday::ConnectionFailed))
42
+ logger.should receive(:<<).with(an_instance_of(Faraday::Error::ConnectionFailed))
43
43
 
44
44
  MetaInspector::Request.new(url('http://caca232dsdsaer3sdsd-asd343.org'), exception_log: logger)
45
45
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metainspector
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaime Iniesta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-09 00:00:00.000000000 Z
11
+ date: 2014-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -28,44 +28,44 @@ dependencies:
28
28
  name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 0.9.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 0.9.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: faraday_middleware
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 0.9.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 0.9.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: faraday-cookie_jar
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 0.0.6
62
62
  type: :runtime
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: '0'
68
+ version: 0.0.6
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: addressable
71
71
  requirement: !ruby/object:Gem::Requirement