jubilee 2.1.0.rc1-java → 3.0.0.beta2-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +2 -14
- data/Guardfile +24 -0
- data/README.md +34 -66
- data/Rakefile +1 -1
- data/examples/chatapp/Gemfile +2 -1
- data/examples/chatapp/Gemfile.lock +2 -2
- data/examples/chatapp/README.md +2 -14
- data/examples/chatapp/app.rb +19 -11
- data/examples/chatapp/public/assets/javascripts/application.js +1 -1
- data/examples/chatapp/public/assets/javascripts/vertxbus.js +60 -48
- data/examples/client/vertxbus.js +60 -48
- data/examples/shims_example/log/development.log +0 -0
- data/jars/hazelcast-3.5.2.jar +0 -0
- data/jars/jackson-annotations-2.6.0.jar +0 -0
- data/jars/jackson-core-2.6.1.jar +0 -0
- data/jars/jackson-databind-2.6.1.jar +0 -0
- data/jars/netty-buffer-4.0.33.Final.jar +0 -0
- data/jars/netty-codec-4.0.33.Final.jar +0 -0
- data/jars/netty-codec-http-4.0.33.Final.jar +0 -0
- data/jars/netty-common-4.0.33.Final.jar +0 -0
- data/jars/netty-handler-4.0.33.Final.jar +0 -0
- data/jars/netty-transport-4.0.33.Final.jar +0 -0
- data/jars/vertx-auth-common-3.2.1.jar +0 -0
- data/jars/vertx-core-3.2.1.jar +0 -0
- data/jars/vertx-hazelcast-3.2.1.jar +0 -0
- data/jars/vertx-lang-ruby-3.2.1.jar +0 -0
- data/jars/vertx-web-3.2.1.jar +0 -0
- data/jubilee.gemspec +40 -42
- data/lib/jubilee.rb +7 -2
- data/lib/jubilee/cli.rb +4 -4
- data/lib/jubilee/jubilee.jar +0 -0
- data/lib/jubilee/response.rb +1 -1
- data/lib/jubilee/version.rb +3 -3
- data/pom.xml +10 -94
- data/spec/apps/rails4/basic/Gemfile +2 -2
- data/spec/apps/rails4/basic/Gemfile.lock +5 -6
- data/src/main/java/org/jruby/jubilee/Const.java +1 -4
- data/src/main/java/org/jruby/jubilee/JubileeVerticle.java +41 -46
- data/src/main/java/org/jruby/jubilee/RackApplication.java +37 -57
- data/src/main/java/org/jruby/jubilee/RackEnvironment.java +38 -35
- data/src/main/java/org/jruby/jubilee/RackEnvironmentHash.java +1 -7
- data/src/main/java/org/jruby/jubilee/RubyHttpServerResponse.java +12 -6
- data/src/main/java/org/jruby/jubilee/RubyNetSocket.java +9 -12
- data/src/main/java/org/jruby/jubilee/RubyPlatformManager.java +39 -43
- data/src/main/java/org/jruby/jubilee/impl/RubyIORackInput.java +2 -1
- data/src/main/java/org/jruby/jubilee/vertx/JubileeVertx.java +1 -1
- metadata +30 -54
- data/examples/chatapp/config.json +0 -4
- data/jars/annotations-1.3.2.jar +0 -0
- data/jars/hazelcast-3.2.3.jar +0 -0
- data/jars/jackson-annotations-2.2.2.jar +0 -0
- data/jars/jackson-core-2.2.2.jar +0 -0
- data/jars/jackson-databind-2.2.2.jar +0 -0
- data/jars/lang-jruby-2.1.0-final.jar +0 -0
- data/jars/log4j-1.2.16.jar +0 -0
- data/jars/netty-all-4.0.20.Final.jar +0 -0
- data/jars/slf4j-api-1.6.2.jar +0 -0
- data/jars/vertx-core-2.1.2.jar +0 -0
- data/jars/vertx-hazelcast-2.1.2.jar +0 -0
- data/jars/vertx-platform-2.1.2.jar +0 -0
- data/lib/container.rb +0 -117
- data/lib/core/buffer.rb +0 -251
- data/lib/core/datagram.rb +0 -280
- data/lib/core/dns.rb +0 -143
- data/lib/core/event_bus.rb +0 -277
- data/lib/core/file_system.rb +0 -479
- data/lib/core/http.rb +0 -1307
- data/lib/core/net.rb +0 -251
- data/lib/core/network_support.rb +0 -77
- data/lib/core/parsetools.rb +0 -105
- data/lib/core/shared_data.rb +0 -214
- data/lib/core/sock_js.rb +0 -116
- data/lib/core/ssl_support.rb +0 -163
- data/lib/core/streams.rb +0 -183
- data/lib/core/tcp_support.rb +0 -136
- data/lib/core/timers.rb +0 -73
- data/lib/core/vertx_require.rb +0 -25
- data/lib/core/wrapped_handler.rb +0 -28
- data/lib/jubilee/jubilee_require.rb +0 -24
- data/lib/test_utils.rb +0 -66
- data/lib/vertx.rb +0 -30
- data/lib/vertx_tests.rb +0 -8
- data/src/main/assembly/mod.xml +0 -21
- data/src/main/java/org/jruby/jubilee/JubileeVerticleFactory.java +0 -258
- data/src/main/java/org/jruby/jubilee/RubyCallable.java +0 -52
- data/src/main/resources/META-INF/services/org.vertx.java.deploy.impl.jruby.JubileeVerticleFactory +0 -1
- data/src/main/resources/mod.json +0 -11
- data/vertx_classpath.txt +0 -12
@@ -1,52 +0,0 @@
|
|
1
|
-
package org.jruby.jubilee;
|
2
|
-
|
3
|
-
import org.jruby.Ruby;
|
4
|
-
import org.jruby.RubyClass;
|
5
|
-
import org.jruby.RubyModule;
|
6
|
-
import org.jruby.RubyObject;
|
7
|
-
import org.jruby.anno.JRubyMethod;
|
8
|
-
import org.jruby.runtime.ObjectAllocator;
|
9
|
-
import org.jruby.runtime.ThreadContext;
|
10
|
-
import org.jruby.runtime.builtin.IRubyObject;
|
11
|
-
|
12
|
-
/**
|
13
|
-
* A RubyClass that expose a call method, like a proc
|
14
|
-
* There must be a class in JRuby for this, but I just couldn't find it.
|
15
|
-
*/
|
16
|
-
public class RubyCallable extends RubyObject {
|
17
|
-
private Callable callable;
|
18
|
-
|
19
|
-
public static RubyClass createClallableClass(final Ruby runtime) {
|
20
|
-
RubyModule jubilee = runtime.getOrCreateModule("Jubilee");
|
21
|
-
RubyClass klazz = jubilee.defineClassUnder("Callable", runtime.getObject(), new ObjectAllocator() {
|
22
|
-
@Override
|
23
|
-
public IRubyObject allocate(Ruby ruby, RubyClass rubyClass) {
|
24
|
-
return new RubyCallable(ruby, rubyClass);
|
25
|
-
}
|
26
|
-
});
|
27
|
-
klazz.defineAnnotatedMethods(RubyCallable.class);
|
28
|
-
return klazz;
|
29
|
-
}
|
30
|
-
|
31
|
-
public RubyCallable(Ruby ruby, RubyClass rubyClass) {
|
32
|
-
super(ruby, rubyClass);
|
33
|
-
}
|
34
|
-
|
35
|
-
public RubyCallable(Ruby ruby, RubyClass rubyClass, Callable callable) {
|
36
|
-
super(ruby, rubyClass);
|
37
|
-
this.callable = callable;
|
38
|
-
}
|
39
|
-
|
40
|
-
@JRubyMethod
|
41
|
-
public IRubyObject call(ThreadContext context) {
|
42
|
-
this.callable.call();
|
43
|
-
return context.runtime.getNil();
|
44
|
-
}
|
45
|
-
|
46
|
-
public static abstract class Callable {
|
47
|
-
public void call() {
|
48
|
-
}
|
49
|
-
|
50
|
-
;
|
51
|
-
}
|
52
|
-
}
|
data/src/main/resources/META-INF/services/org.vertx.java.deploy.impl.jruby.JubileeVerticleFactory
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
org.vertx.java.deploy.impl.jruby.JubileeVerticleFactory
|
data/src/main/resources/mod.json
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"system": true,
|
3
|
-
"resident": true,
|
4
|
-
"includes": "io.vertx~lang-jruby~2.1.0-final",
|
5
|
-
|
6
|
-
"description":"Rack application runner",
|
7
|
-
"licenses": ["MIT"],
|
8
|
-
"author": "isaiah",
|
9
|
-
"keywords": ["rack", "rails"],
|
10
|
-
"homepage": "https://github.com/isaiah/jubilee"
|
11
|
-
}
|
data/vertx_classpath.txt
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
# This file contains information on where to find the resources of your module during development
|
2
|
-
# This file is used when running your module as you develop - it tells Vert.x where to find
|
3
|
-
# the resources of your module
|
4
|
-
|
5
|
-
# Feel free to edit it if you have a non standard project structure and put the resources of your
|
6
|
-
# module elsewhere
|
7
|
-
|
8
|
-
src/main/resources
|
9
|
-
target/classes
|
10
|
-
target/dependencies
|
11
|
-
lib/
|
12
|
-
bin
|