1
0
Fork 0
mirror of https://github.com/teampoltergeist/poltergeist.git synced 2022-11-09 12:05:00 -05:00
Commit graph

18 commits

Author SHA1 Message Date
Sumit Shah
6ac4078b3a support setting http request headers 2012-07-02 15:07:33 -07:00
Tom Stuart
0db1eb9767 Allow passing desired browser size as an option 2012-06-04 17:18:25 +02:00
Tom Stuart
96ab96a494 Remove all of the shoulds 2012-06-04 14:21:09 +02:00
Rodrigo Manhães
04118450c2 fix multi_json deprecated calls 2012-04-18 10:17:11 -03:00
Jon Leighton
e251839ed9 JSON -> MultiJson 2012-03-11 11:03:08 +00:00
Jon Leighton
98c3bb564f Remove posix-spawn dependency.
posix-spawn relies on a C extension. This does work under JRuby, but it
won't work on Travis CI as they disallow JRuby C extensions, as they are
considered to not be a good practice.

Instead we are using either Process.spawn on Ruby 1.9, or the
childprocess gem on Ruby 1.8. childprocess uses native JVM APIs on
JRuby, and fork+exec on others.
2012-03-11 10:35:02 +00:00
Jon Leighton
f61ca77cd4 Use posix-spawn gem rather than sfl, as sfl requires fork, which can't work on JRuby. 2012-02-29 22:52:27 +00:00
Jon Leighton
edf3bae153 Add test for :timeout option to driver setting the server's timeout. Closes #36, which was fixed by 84feb34e16. 2012-02-29 12:36:37 +00:00
Jon Leighton
84feb34e16 refactoring 2012-02-29 12:32:13 +00:00
Jon Leighton
335b1d300c fix specs 2012-02-29 12:01:37 +00:00
Jon Leighton
806a204697 Raise a better error when phantomjs returns a non-zero exit status. Fixes #23. 2012-02-29 11:44:05 +00:00
Jon Leighton
3645c3e295 Add test for #22. Closes #22. 2012-02-29 11:25:43 +00:00
Jon Leighton
8d9b224de1 Extract inspector code to a separate class. Implement Driver#debug and Driver#pause methods for using inspector. 2012-02-29 00:02:43 +00:00
Jon Leighton
3810618ea0 Check PhantomJS version from Ruby. Fixes #13. 2012-01-27 17:31:21 +00:00
Jon Leighton
34af795960 Stop using EventMachine for WebSocket server.
Using EventMachine was causing issues when run alongside Thin.

In general running the event loop is quite slow, presumably because it
is mostly spinning idly wasting cycles (unsure). We were mitigating
this by stopping the thread when it wasn't needed, but this is
incorrect when Thin is also running.

Implemented WebSocket server using raw TCP sockets and a WebSocket
parser provided by faye-websocket. This is faster and neater and removes
the need to dick around with threads.

Fixes #6.
2012-01-13 14:34:36 +00:00
Jon Leighton
8745b8bcce Move TimeoutError up a namespace level, and fix the message 2011-10-30 19:02:37 +00:00
Jon Leighton
0bf7501271 Deal with the ServerManager timeout properly 2011-10-28 19:11:36 +01:00
Jon Leighton
76fe32debd omg 2011-10-27 23:34:14 +01:00