Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #97 from lsylvester/speed-up-tests | Jeremy Daer | 2015-10-16 | 1 | -1/+2 |
|\ | | | | | Speed up tests be calling EM.run_deferred_callbacks instead of setting a timer | ||||
| * | Speed up tests be calling EM.run_deferred_callbacks instead of setting a timer | Lachlan Sylvester | 2015-10-17 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The run_in_eventmachine test helper method is setting a 0.1 second timer to stop the event machine loop. This causes each test that requires an event machine loop to wait for 0.1 second regardless of how long the test takes to process. This changes that to call EM.run_deferred_callbacks, which immediatly process pending actions in the event loop and then is able to exit the event loop without doing any waiting. Before this change, running tests produced Finished in 2.957857s, 15.8899 runs/s, 27.7228 assertions/s. After, the tests get Finished in 0.065942s, 712.7514 runs/s, 1243.5237 assertions/s. | ||||
* | | Devolve blanket #require to reveal intent and responsibility | Jeremy Daer | 2015-10-16 | 3 | -5/+7 |
| | | | | | | | | | | | | | | | | * Move specific requires close to where they're needed. * Use the private active_support/rails dep to wrap up common needs like eager autoload and module delegation. * Use a single Rails engine rather than an engine and a railtie. * Prefer `AS::JSON.encode` to `Object#to_json`. | ||||
* | | Shush some low-hanging Ruby warnings | Jeremy Daer | 2015-10-16 | 2 | -2/+11 |
|/ | |||||
* | Websockets -> WebSocket spelling [ci skip] | Jeremy Daer | 2015-10-15 | 1 | -1/+1 |
| | |||||
* | Run connection tests in EM loop | Pratik Naik | 2015-10-15 | 10 | -128/+242 |
| | |||||
* | Merge pull request #85 from rails/cross-site-forgery-protection | Pratik | 2015-10-12 | 2 | -1/+59 |
|\ | | | | | Add support for cross site forgery protection | ||||
| * | Treat ORIGIN as an opaque identifier and do equality comparison with the ↵ | Pratik Naik | 2015-10-12 | 2 | -7/+8 |
| | | | | | | | | specified whitelist | ||||
| * | Set appropriate origin and host in the tests | Pratik Naik | 2015-10-12 | 1 | -2/+3 |
| | | |||||
| * | First take at cross site forgery protection | Pratik Naik | 2015-10-07 | 2 | -0/+56 |
| | | |||||
* | | Run a single eventmachine timer to send heartbeats | Pratik Naik | 2015-10-08 | 1 | -3/+1 |
|/ | |||||
* | support connection identifiers that don't implement to_global_id by ↵ | Mark Humphreys | 2015-08-24 | 1 | -0/+39 |
| | | | | defaulting to to_s | ||||
* | refactor channel look up to use a hash instead of an array and reduce the ↵ | Lachlan Sylvester | 2015-07-30 | 1 | -1/+1 |
| | | | | number of calls to safe_constantize because it can be slow | ||||
* | Merge pull request #34 from ↵ | Kasper Timm Hansen | 2015-07-29 | 4 | -3/+54 |
|\ | | | | | | | | | lsylvester/add-broadcast_to-and-stream_for-methods-to-channel add broadcast_to and stream_for methods as per #26 | ||||
| * | add broadcast_to and stream_for methods as per #26 | Lachlan Sylvester | 2015-07-28 | 4 | -3/+54 |
| | | |||||
* | | Improve channel actions dispatcher to allow inheritance/mixins | Cristian Bica | 2015-07-23 | 1 | -2/+38 |
| | | | | | | | | Fixes #14 | ||||
* | | Update gems and requires | Thomas Walpole | 2015-07-22 | 1 | -0/+2 |
|/ | |||||
* | Worker tests | Pratik Naik | 2015-07-14 | 2 | -0/+48 |
| | |||||
* | Remove busted tests | Pratik Naik | 2015-07-13 | 2 | -61/+0 |
| | |||||
* | Tests for channel subscriptions | Pratik Naik | 2015-07-13 | 1 | -0/+87 |
| | |||||
* | Always load all the stub files | Pratik Naik | 2015-07-13 | 5 | -6/+18 |
| | |||||
* | Connection identifier tests | Pratik Naik | 2015-07-12 | 2 | -0/+81 |
| | |||||
* | Test auth failure | Pratik Naik | 2015-07-12 | 1 | -0/+26 |
| | |||||
* | More connection tests | Pratik Naik | 2015-07-12 | 3 | -6/+65 |
| | |||||
* | Add some more tests | Pratik Naik | 2015-07-12 | 8 | -24/+129 |
| | |||||
* | Tests for the Channel API | Pratik Naik | 2015-07-12 | 1 | -18/+120 |
| | |||||
* | Load mocha for tests | Pratik Naik | 2015-07-12 | 1 | -0/+2 |
| | |||||
* | Tests are busted at the moment. Note that. | David Heinemeier Hansson | 2015-07-07 | 2 | -49/+49 |
| | |||||
* | Removing unused matches? method | David Heinemeier Hansson | 2015-07-07 | 2 | -6/+0 |
| | | | | | @lifo I couldn’t find any use of documentation for this, so removed it for now. Was it just for testing? | ||||
* | Extract Server configuration into a Configuration object | David Heinemeier Hansson | 2015-07-05 | 1 | -1/+1 |
| | |||||
* | Move server classes to its own namespace | David Heinemeier Hansson | 2015-06-29 | 2 | -2/+2 |
| | |||||
* | Switch internal actions to be called commands instead, such that we can use ↵ | David Heinemeier Hansson | 2015-06-19 | 1 | -1/+1 |
| | | | | action as the routing word on the user side | ||||
* | Dont create the test log file | Pratik Naik | 2015-02-13 | 1 | -4/+0 |
| | |||||
* | No cramp and use celluloid workers to run callbacks | Pratik Naik | 2015-02-05 | 1 | -2/+1 |
| | |||||
* | Add some tests. Work in progress. Testing websockets is hard. | Pratik Naik | 2015-01-15 | 3 | -0/+105 |