phantom_client 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -99,6 +99,7 @@ module PhantomJSProxy
99
99
  @connection.do_request(element, url, req)
100
100
  rescue
101
101
  if count == 0
102
+ raise NoProxy, "Could not reach any Proxy"
102
103
  resp = DummyResponse.new()
103
104
  resp.code = 500
104
105
  resp.body ="Could not connect to proxy"
@@ -0,0 +1,5 @@
1
+ module PhantomJSProxy
2
+ class NoProxy < Exception
3
+
4
+ end
5
+ end
@@ -1,4 +1,5 @@
1
1
  require 'rubygems'
2
2
 
3
+ require File.expand_path(File.dirname(__FILE__))+'/phantom_client/phantom_client_no_proxy.rb'
3
4
  require File.expand_path(File.dirname(__FILE__))+'/phantom_client/phantom_client.rb'
4
5
  require File.expand_path(File.dirname(__FILE__))+'/phantom_client/phantom_client_connection.rb'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phantom_client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 1
10
- version: 1.2.1
9
+ - 2
10
+ version: 1.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Daniel Sudmann
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-10 00:00:00 +02:00
18
+ date: 2012-06-27 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -44,6 +44,7 @@ extra_rdoc_files: []
44
44
 
45
45
  files:
46
46
  - lib/phantom_client/phantom_client_connection.rb
47
+ - lib/phantom_client/phantom_client_no_proxy.rb
47
48
  - lib/phantom_client/phantom_client.rb
48
49
  - lib/phantom_client.rb
49
50
  - bin/phantom_client