jubilee 0.5.0 → 1.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +57 -12
- data/Rakefile +3 -3
- data/VERSION +1 -1
- data/bin/jubilee_d +6 -3
- data/examples/client/sockjs-0.3.4.min.js +27 -0
- data/examples/client/vertxbus.js +216 -0
- data/examples/jubilee.conf.rb +18 -0
- data/jars/hazelcast-2.6.jar +0 -0
- data/jars/jackson-annotations-2.2.2.jar +0 -0
- data/jars/jackson-databind-2.2.2.jar +0 -0
- data/java/src/org/jruby/jubilee/Server.java +138 -119
- data/java/src/org/jruby/jubilee/vertx/JubileeVertx.java +38 -0
- data/jubilee.gemspec +16 -6
- data/lib/jubilee/cli.rb +30 -18
- data/lib/jubilee/configuration.rb +130 -18
- data/lib/jubilee/jubilee.jar +0 -0
- data/lib/jubilee.rb +3 -0
- data/lib/vertx/README.md +7 -0
- data/lib/vertx/buffer.rb +251 -0
- data/lib/vertx/event_bus.rb +206 -0
- data/lib/vertx/shared_data.rb +214 -0
- data/lib/vertx.rb +26 -0
- data/test/jubilee/{test_config.rb → test_configuration.rb} +2 -1
- metadata +17 -10
- data/examples/ssl/ServerTest.java +0 -19
- data/examples/ssl/webroot/index.html +0 -10
@@ -2,12 +2,13 @@ require 'test_helper'
|
|
2
2
|
require 'jubilee/configuration'
|
3
3
|
|
4
4
|
class TestConfig < MiniTest::Unit::TestCase
|
5
|
+
|
5
6
|
def setup
|
6
7
|
@config = Jubilee::Configuration.new({rackup: "config/app.rb"})
|
7
8
|
end
|
9
|
+
|
8
10
|
def test_load
|
9
11
|
resp = [200, {"Content-Type" => "text/plain"}, ["embeded app"]]
|
10
|
-
#skip "hard to test because of Rack::Lint"
|
11
12
|
assert_equal resp, @config.app.call({})
|
12
13
|
end
|
13
14
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jubilee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
4
|
+
version: 1.0.0.beta1
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Isaiah Peng
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-09-
|
12
|
+
date: 2013-09-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|
@@ -79,11 +79,15 @@ files:
|
|
79
79
|
- VERSION
|
80
80
|
- bin/jubilee
|
81
81
|
- bin/jubilee_d
|
82
|
+
- examples/client/sockjs-0.3.4.min.js
|
83
|
+
- examples/client/vertxbus.js
|
84
|
+
- examples/jubilee.conf.rb
|
82
85
|
- examples/jubilee/keystore.jks
|
83
86
|
- examples/jubilee/server-keystore.jks
|
84
|
-
-
|
85
|
-
-
|
87
|
+
- jars/hazelcast-2.6.jar
|
88
|
+
- jars/jackson-annotations-2.2.2.jar
|
86
89
|
- jars/jackson-core-2.2.2.jar
|
90
|
+
- jars/jackson-databind-2.2.2.jar
|
87
91
|
- jars/netty-all-4.0.4.Final.jar
|
88
92
|
- jars/vertx-core-2.1.0-SNAPSHOT.jar
|
89
93
|
- java/src/jubilee/JubileeService.java
|
@@ -99,6 +103,7 @@ files:
|
|
99
103
|
- java/src/org/jruby/jubilee/impl/NullIO.java
|
100
104
|
- java/src/org/jruby/jubilee/impl/RubyIORackErrors.java
|
101
105
|
- java/src/org/jruby/jubilee/impl/RubyIORackInput.java
|
106
|
+
- java/src/org/jruby/jubilee/vertx/JubileeVertx.java
|
102
107
|
- jubilee.gemspec
|
103
108
|
- lib/jubilee.rb
|
104
109
|
- lib/jubilee/application.rb
|
@@ -110,10 +115,15 @@ files:
|
|
110
115
|
- lib/jubilee/server.rb
|
111
116
|
- lib/jubilee/version.rb
|
112
117
|
- lib/rack/handler/jubilee.rb
|
118
|
+
- lib/vertx.rb
|
119
|
+
- lib/vertx/README.md
|
120
|
+
- lib/vertx/buffer.rb
|
121
|
+
- lib/vertx/event_bus.rb
|
122
|
+
- lib/vertx/shared_data.rb
|
113
123
|
- test/.ruby-version
|
114
124
|
- test/config/app.rb
|
115
125
|
- test/jubilee/test_cli.rb
|
116
|
-
- test/jubilee/
|
126
|
+
- test/jubilee/test_configuration.rb
|
117
127
|
- test/jubilee/test_rack_server.rb
|
118
128
|
- test/jubilee/test_response.rb
|
119
129
|
- test/jubilee/test_server.rb
|
@@ -135,9 +145,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
135
145
|
- - '>='
|
136
146
|
- !ruby/object:Gem::Version
|
137
147
|
version: '0'
|
138
|
-
segments:
|
139
|
-
- 0
|
140
|
-
hash: 2
|
141
148
|
none: false
|
142
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
150
|
requirements:
|
@@ -150,5 +157,5 @@ rubyforge_project:
|
|
150
157
|
rubygems_version: 1.8.24
|
151
158
|
signing_key:
|
152
159
|
specification_version: 3
|
153
|
-
summary:
|
160
|
+
summary: More than a server for rack applications.
|
154
161
|
test_files: []
|
@@ -1,19 +0,0 @@
|
|
1
|
-
// -*- Mode: java; c-basic-offset: 4 -*- vim:set ft=java sw=4 sts=4:
|
2
|
-
// $Id$
|
3
|
-
import org.vertx.java.core.*;
|
4
|
-
import org.vertx.java.core.http.*;
|
5
|
-
public class ServerTest {
|
6
|
-
public static void main(String[] args) throws InterruptedException {
|
7
|
-
System.out.println("starting...");
|
8
|
-
Vertx vertx = Vertx.newVertx();
|
9
|
-
vertx.createHttpServer().requestHandler(new Handler<HttpServerRequest>() {
|
10
|
-
public void handle(HttpServerRequest req) {
|
11
|
-
req.response.end("hello world");
|
12
|
-
//String file = req.path.equals("/") ? "index.html" : req.path;
|
13
|
-
//req.response.sendFile("webroot/" + file);
|
14
|
-
}
|
15
|
-
}).setSSL(true).setKeyStorePath("../jubilee/server-keystore.jks").setKeyStorePassword("wibble").listen(8080);
|
16
|
-
while (true)
|
17
|
-
Thread.currentThread().sleep(1);
|
18
|
-
}
|
19
|
-
}
|