James Coglan
77ae543784
Reformat the C and Java native extension modules.
2019-05-28 22:23:36 +01:00
James Coglan
39824f5ace
Silence C compiler warnings; use 'long' instead of 'int' for ruby string lengths.
2015-10-11 14:15:57 +01:00
James Coglan
eb20069011
Migrate the internal representation of buffers from arrays to ASCII-8BIT strings, since this is what we're planning on handing off to extensions.
2014-12-05 09:17:09 +00:00
James Coglan
648e0c4cd1
Fix C compilation warnings about interleaved declarations and code.
2014-10-27 21:15:48 +00:00
James Coglan
d00cbadedb
Stop the Hybi parser hanging onto data it doesn't need after emitFrame().
2014-06-16 20:45:48 +01:00
James Coglan
1b3f32bbc7
Trailing blank lines are bad.
2014-05-17 00:34:48 +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
1be1a33eb1
Rename all of the things: Faye::WebSocket is now WebSocket::Protocol.
2013-04-20 13:00:25 +01:00
James Coglan
41a1968ed6
Remove trailing whitespace.
2013-02-10 22:58:09 +00:00
James Coglan
1cd15aa90f
Fix installation on JRuby by building platform-specific gem.
2012-03-16 21:44:15 +00:00
James Coglan
d60f5bc280
Use 'unless' rather than 'return' to skip extconf.rb on JRuby.
2012-03-14 23:21:44 +00:00
Jon Leighton
1f40cba2dd
skip extconf.rb on jruby
2012-03-11 11:22:06 +00:00
James Coglan
e8d1efe2cb
Correct some JRuby interface stuff -- I was trying to build it with a broken JRuby install before.
2012-03-07 22:18:21 +00:00
James Coglan
2055461ad5
Remove IOException from Java extension.
2012-03-05 01:02:20 +00:00
James Coglan
fed630647d
Remove java.lang.System import.
2012-03-04 23:54:17 +00:00
James Coglan
83059e59b1
Rewrite masking function in Java for JRuby.
2012-03-04 23:16:02 +00:00
James Coglan
870c300608
Get rake-compiler to build the gem.
2011-12-20 21:55:18 +00:00
James Coglan
2f9a318064
Don't use a loop to build the mask array.
2011-12-18 12:59:17 +00:00
James Coglan
092dbcbe33
No tabs.
2011-12-18 12:57:36 +00:00
James Coglan
5750e25a07
Cast mask numbers to C ints once.
2011-12-18 11:39:19 +00:00
James Coglan
7f4880fd0e
Rewrite masking routine in C.
2011-12-18 10:48:57 +00:00