Sha256: f009268170bc858cb612816b81912810ff97439b7a04883764b494b293dbc3b2

Contents?: true

Size: 310 Bytes

Versions: 7

Compression:

Stored size: 310 Bytes

Contents

require 'childprocess'

module Capybara::Poltergeist
  module Spawn
    def self.spawn(*args)
      args = args.map(&:to_s)

      if RUBY_VERSION >= "1.9"
        Process.spawn(*args)
      else
        process = ChildProcess.build(*args)
        process.start
        process.pid
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
poltergeist-1.0.3 lib/capybara/poltergeist/spawn.rb
poltergeist-1.0.2 lib/capybara/poltergeist/spawn.rb
poltergeist-1.0.1 lib/capybara/poltergeist/spawn.rb
poltergeist-1.0.0 lib/capybara/poltergeist/spawn.rb
poltergeist-0.7.0 lib/capybara/poltergeist/spawn.rb
poltergeist-0.6.0 lib/capybara/poltergeist/spawn.rb
poltergeist-0.5.0 lib/capybara/poltergeist/spawn.rb