262 Commits
Author SHA1 Message Date
James Coglan 854d185d5d Bump version to 0.3.3. 0.3.3 2014-04-24 23:37:11 +01:00
James Coglan 23c8e8eb91 The file that loads the C code is not executable and does not need a shebang. 2014-04-17 02:29:56 +01:00
James Coglan 2f8f281615 Correct the draft-76 status line reason phrase. 2014-04-17 02:22:19 +01:00
James Coglan ddd90b5438 Tweak the regexes for parsing HTTP. 2014-04-17 02:19:14 +01:00
James Coglan c57cc359b2 Merge pull request #17 from stevenwilliamson/native_ext_loading_fix
Native ext loading fix
2014-04-16 23:52:47 +01:00
Steven Williamson d643bd284d Fix java native extension loading. 2014-04-15 17:03:33 +01:00
Steven Williamson 42503cd345 Update rake file to build extension in new dir
- Changed name of ext directory to match gemname, updated rake file
  accordingly.

  It would probably make sense just to name the actual extension after
  the gem name as well, Rake would then just do "the right thing"

  Confirmed tests pass on OSX and Linux for C native ext not tested
  Java.
2014-04-15 09:25:13 +01:00
Steven Williamson 08189c2a30 Minor fixes to allow native gems to load.
- websocket_mask.rb is in lib which in turn then loads websocket_mask.so
  which should reside in the extensions directory external to the gem
  directory at least as of rubygems 2.2.2.

- Changed extensions directory to match gemname as suggested in rubygems
  guide

Simplifies loading the native extension but only tested on ruby 2.1.1
and only in my environment.
2014-04-14 17:18:54 +01:00
James Coglan d2be696be0 Merge pull request #15 from ryansouza/ruby21
Test MRI 2.1 in travis
2014-03-29 03:48:53 +00:00
Ryan Souza ec32c8b851 Run MRI 2.1 in Travis 2014-03-28 14:49:55 -07:00
James Coglan 5cc3c39c9b Workaround to make Ruby 1.8 work on Travis. 2013-12-29 12:36:55 +00:00
James Coglan 2b389ed50c Bump version to 0.3.2. 0.3.2 2013-12-29 12:33:30 +00:00
James Coglan 45fbc9e2e9 Document the new lower frame size limit. 2013-12-28 16:57:15 +00:00
James Coglan c24457b322 Revert "Run jruby-20mode on Travis."
This reverts commit 28dd52dbb3.
2013-12-27 18:24:43 +00:00
James Coglan 13780f7a61 Reduce MAX_LENGTH to 64 MB. 2013-12-27 18:19:09 +00:00
James Coglan 28dd52dbb3 Run jruby-20mode on Travis. 2013-12-27 18:14:02 +00:00
James Coglan 18170c0c61 Stop parsing Hybi once we go into a failure state. 2013-12-27 18:13:31 +00:00
James Coglan 74c4cc1190 Extend max-length checking to draft-{75,76}. 2013-12-20 10:27:48 +00:00
James Coglan fafd949641 Extend max-length checking to short (<= 125 bytes) frames and to sequences of continuation frames. 2013-12-20 10:23:53 +00:00
James Coglan f098f1d0d1 Bump version to 0.3.1. 0.3.1 2013-12-03 00:52:48 +00:00
James Coglan a1719cc86a Sort Travis build out for Rubinius. 2013-12-02 22:13:09 +00:00
James Coglan e3587fcbb1 Add a max_length option to the Hybi/Client class. 2013-12-02 21:55:43 +00:00
James Coglan 5c08d92dd3 Add a license to the gemspec. 2013-09-12 10:34:41 +01:00
James Coglan 2264d94961 Bump version to 0.3.0. 0.3.0 2013-09-09 20:44:39 +01:00
James Coglan eae69314f1 Add support for Basic Auth URLs to the client driver. 2013-09-09 20:28:29 +01:00
James Coglan de8a5c4a8d Silence RSpec deprecation warnings. 2013-09-09 20:17:29 +01:00
James Coglan ceefe74d05 Lock rake-compiler down to ~>0.8.0. 2013-09-09 20:17:03 +01:00
James Coglan d5a270a655 Bump version to 0.2.3. 0.2.3 2013-08-04 14:01:30 +01:00
James Coglan 46af51d04e Dup the listener list during EventEmitter#emit so that events unregistered during this call don't cause others to be skipped. 2013-08-04 13:57:08 +01:00
James Coglan 7b304697db Bump version to 0.2.2. 0.2.2 2013-08-04 12:23:00 +01:00
James Coglan cd53761699 Fix EventEmitter#listener_count in the case where the event type does not exist, and add EventEmitter#listners. 2013-08-04 12:11:37 +01:00
James Coglan cdd83c4c9d Bump version to 0.2.1. 0.2.1 2013-07-05 15:12:19 +01:00
James Coglan ac3bb51cbd Adjust encoding operations so that encoding is explicit at the call site, and all strings written to I/O are ASCII-8BIT. 2013-07-02 09:46:29 +01:00
James Coglan ee5fe9ec5f Messages should be queued when the client is in the 'pre-connecting' state, as the client is initially. 2013-06-06 10:25:10 +01:00
James Coglan ae84f0eaf7 Headers#inspect should call @raw.inspect. 0.2.0 2013-05-12 15:12:44 +01:00
James Coglan 8cd6ff1dde Set status and headers as soon as they are known, so they are available in case of an error. 2013-05-12 14:49:59 +01:00
James Coglan 28f8cbc7b3 Bump version to 0.2.0. 2013-05-12 14:06:50 +01:00
James Coglan be00c65ebd Make Headers#inspect do something useful. 2013-05-12 14:01:15 +01:00
James Coglan bc6accf08a A few build artifacts are now in my global gitignore. 2013-05-12 13:37:21 +01:00
James Coglan cfd2806683 Remove an unneeded instance variable. 2013-05-12 12:41:51 +01:00
James Coglan 467eacefd6 Parameterize the port the example server runs on. 2013-05-12 12:41:39 +01:00
James Coglan 329ce6cfb8 Check that TCP requests are actually WebSockets before proceeding. 2013-05-12 01:31:44 +01:00
James Coglan 3902b8bc4f Around here we use square brackets for arrays. 2013-05-11 23:03:17 +01:00
James Coglan b0fa32b9c5 Move a couple of tests. 2013-05-11 22:27:08 +01:00
James Coglan 074a8a2f16 Add #status and #headers methods to the Client driver. 2013-05-11 20:42:06 +01:00
James Coglan 5a7fadbcbe Add API for setting custom handshake headers. 2013-05-11 20:28:36 +01:00
James Coglan 2aac685c24 One more typo. 2013-05-11 19:47:27 +01:00
James Coglan 33f6c4c52b Fix some typos in the previous commit. 2013-05-11 19:43:47 +01:00
James Coglan 216914b85c Update the readme for TCP-server drivers. 2013-05-11 19:43:04 +01:00
James Coglan 020c094e96 Add a driver for handling TCP servers, where we don't want to make the user parse the HTTP request. 2013-05-11 19:28:59 +01:00