poltergeist 1.0.3 → 1.1.0

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.
@@ -1,25 +0,0 @@
1
- module Capybara::Poltergeist
2
- module JSON
3
- def self.load(message)
4
- if dumpy_multi_json?
5
- MultiJson.load(message)
6
- else
7
- MultiJson.decode(message)
8
- end
9
- end
10
-
11
- def self.dump(message)
12
- if dumpy_multi_json?
13
- MultiJson.dump(message)
14
- else
15
- MultiJson.encode(message)
16
- end
17
- end
18
-
19
- private
20
-
21
- def self.dumpy_multi_json?
22
- MultiJson.respond_to?(:dump) && MultiJson.respond_to?(:load)
23
- end
24
- end
25
- end
@@ -1,17 +0,0 @@
1
- require 'childprocess'
2
-
3
- module Capybara::Poltergeist
4
- module Spawn
5
- def self.spawn(*args)
6
- args = args.map(&:to_s)
7
-
8
- if RUBY_VERSION >= "1.9"
9
- Process.spawn(*args)
10
- else
11
- process = ChildProcess.build(*args)
12
- process.start
13
- process.pid
14
- end
15
- end
16
- end
17
- end
@@ -1,12 +0,0 @@
1
- require 'socket'
2
-
3
- module Capybara::Poltergeist
4
- module Util
5
- def self.find_available_port
6
- server = TCPServer.new('127.0.0.1', 0)
7
- server.addr[1]
8
- ensure
9
- server.close if server
10
- end
11
- end
12
- end