57 Commits
Author SHA1 Message Date
James Coglan 50d39b2c18 Lock puma to < 6.0, and skip secure Thin, to get tests passing 2023-07-25 18:30:44 +01:00
James Coglan 7288459c17 Update the test TLS certificate 2021-05-18 00:40:07 +01:00
James Coglan 6257b2c473 Implement SSL certificate verification, based on Faraday's implementation: https://github.com/lostisland/faraday/blob/v1.0.1/lib/faraday/adapter/em_http_ssl_patch.rb 2020-07-31 12:51:23 +01:00
James Coglan b2e09c9731 Update the TLS certificate 2020-05-14 17:51:47 +01:00
James Coglan 664aabcd08 Formatting change: {...} should have spaces inside the braces 2019-06-11 16:18:17 +01:00
James Coglan 14b96256de Don't require rubygems, this has not been necessary since Ruby 1.8. 2017-08-08 23:41:16 +01:00
James Coglan 8267fd5041 Explicitly load some Puma components that don't load by default in 3.7.0. 2017-01-28 16:14:13 +00:00
James Coglan 84fe636b69 For some reason on macOS Sierra, using 'localhost' to connect to Puma does not work; these spec changes seem to fix things. 2016-10-25 20:50:09 +01:00
James Coglan 8be7355666 Silence all -W2 warnings. 2016-05-18 23:24:57 +01:00
James Coglan 368e0bdcf6 Add checks for the headers and status to the tests. 2015-11-25 22:25:41 +00:00
Victor f56c04c442 classic integer formatting instead of method chain 2015-07-21 16:00:01 +03:00
James Coglan e16cbcd465 Update the TLS certificates since the old ones had expired. 2015-06-22 11:17:46 +01:00
James Coglan 26afcfb260 Skip proxy tests on JRuby. 2014-11-08 20:03:47 +00:00
James Coglan 206929c89b Migrate to the improved websocket-driver proxy API, and add integration tests for all existing scenarios going through an http: proxy. 2014-11-06 23:41:23 +00:00
James Coglan e1a53f186c Test that if the socket is closed immediately on creation, then the socket emits a close event. 2014-10-03 01:05:30 +01:00
James Coglan 1525b57a12 Upgrade rspec and rspec-eventmachine now that the latter supports RSpec 3. 2014-07-06 11:16:25 +01:00
James Coglan a682146e89 Update the self-signed certs used for HTTPS testing. 2014-07-05 11:10:21 +01:00
James Coglan d0348d923d Trailing blank lines are bad. 2014-05-17 00:32:02 +01:00
James Coglan 7993407fdd Update SSL certs. 2013-12-22 14:50:21 +00:00
James Coglan 367fa2d495 Change spec structure to hopefully make Travis work better. 2013-12-02 10:28:22 +00:00
James Coglan 2f911afcb0 Slow tests down even further to try and make Travis happy. 2013-11-29 12:39:49 +00:00
James Coglan 5fa2ec430a Replace em-rspec submodule with rspec-eventmachine gem. 2013-11-28 22:49:45 +00:00
James Coglan f5f94a1470 Make specs even slower, hopefully Travis will enjoy this. 2013-09-09 22:47:57 +01:00
James Coglan 2851333a98 Lengthen timers in specs so Travis hopefully becomes more stable. 2013-07-18 11:23:25 +01:00
James Coglan 3104f95ac2 Base the EventTarget module on the WebSocket::Protocol::EventEmitter module. 2013-05-04 14:44:25 +01:00
James Coglan 7d4d153702 Sort our server/ruby compatibility. Now running on Puma, Thin, old and new Rainbows, and Goliath, on MRI/JRuby/RBX. 2013-05-03 09:06:48 +01:00
James Coglan bbb641fd64 Backport changes from the rack_hijack branch to support Puma and Rainbows. 2013-05-02 08:32:41 +01:00
James Coglan 670bb58251 Expose parser error events to the user. 2013-05-02 00:15:26 +01:00
James Coglan 14a71d38b7 Change the port used for tests. 2013-05-01 01:15:05 +01:00
James Coglan 4cdea1433d Fix checks for JRbuby and Rubinius in tests. 2013-04-21 00:25:54 +01:00
James Coglan fa70313f84 Migrate to WebSocket::Protocol. 2013-04-20 14:23:11 +01:00
James Coglan f4b693a2fd Remove parser classes from the tree. 2013-04-15 06:59:47 +01:00
James Coglan 41a1968ed6 Remove trailing whitespace. 2013-02-10 22:58:09 +00:00
James Coglan ef6b944de8 Fix EventMachine-based specs. 2012-11-04 18:03:34 +00:00
James Coglan 752da3db34 Remove an expensive test. 2012-05-21 19:46:38 +01:00
James Coglan a439f24744 Fix build on 1.8.7, exclude rbx-19mode. 2012-03-07 23:52:12 +00:00
James Coglan b74a1899f5 Bleurgh, exclude some more things from the build to see if we can pass on RBX. 2012-03-07 23:43:32 +00:00
James Coglan 4a5a6a9b60 Some JRuby/RBX platform adjustments. 2012-03-07 23:39:41 +00:00
James Coglan 10d85183c9 Merge branch 'master' into jruby 2012-03-03 15:47:55 +00:00
James Coglan 6c2c068761 Use rack_response in the test server. 2012-03-03 15:47:47 +00:00
James Coglan 6a415f8925 Fix tests on MRI. 2012-03-03 15:40:07 +00:00
James Coglan 0f74259dc8 Adjust tests on JRuby. 2012-03-03 15:31:00 +00:00
Jon Leighton 73479a87c6 Support JRuby without a C extension. Closes #5. 2012-03-02 23:21:06 +00:00
James Coglan d4b589d4dd Treat numbers as strings when calling Socket#send. 2012-02-16 23:15:59 +00:00
James Coglan 66f12bdbfe Set encoding correctly. 2012-02-08 21:54:34 +00:00
James Coglan 1df9583f31 Make shared examples load first. 2012-02-08 21:53:05 +00:00
James Coglan 309aca6bbe Mostly working Goliath adapter. Works for Hybi both with and without HAProxy, doesn't work on draft-76. 2012-01-08 21:40:00 +00:00
James Coglan 19eeb5ffd2 Include Rainbows server in automated tests. 2012-01-07 12:55:17 +00:00
James Coglan 530ce4b71d Initial pass at extracting Rainbows support from Cramp. 2012-01-07 12:25:34 +00:00
James Coglan 0347f5f0b8 Implement the complete frame parsing protocol for draft-75/76. 2011-12-20 20:12:37 +00:00