Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Correct some JRuby interface stuff -- I was trying to build it with a…

… broken JRuby install before.
  • Loading branch information...
commit e8d1efe2cb1b7cbe39f99616656365b6b8243358 1 parent 2055461
James Coglan jcoglan authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 ext/faye_websocket_mask/FayeWebsocketMaskService.java
5 ext/faye_websocket_mask/FayeWebsocketMaskService.java
View
@@ -1,6 +1,7 @@
package com.jcoglan.faye;
import java.lang.Long;
+import java.io.IOException;
import org.jruby.Ruby;
import org.jruby.RubyArray;
@@ -17,11 +18,11 @@
public class FayeWebsocketMaskService implements BasicLibraryService {
private Ruby runtime;
- public boolean basicLoad(Ruby runtime) {
+ public boolean basicLoad(Ruby runtime) throws IOException {
this.runtime = runtime;
RubyModule faye = runtime.defineModule("Faye");
- RubyModule webSocketMask = faye.defineClassUnder("WebSocketMask", runtime.getObject(), new ObjectAllocator() {
+ RubyClass webSocketMask = faye.defineClassUnder("WebSocketMask", runtime.getObject(), new ObjectAllocator() {
public IRubyObject allocate(Ruby runtime, RubyClass rubyClass) {
return new WebsocketMask(runtime, rubyClass);
}
Please sign in to comment.
Something went wrong with that request. Please try again.