torqbox 0.1.6-java → 0.1.7-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/CHANGELOG.md +9 -2
- data/lib/torqbox/cli.rb +1 -1
- data/lib/torqbox/server.rb +8 -8
- data/lib/torqbox/version.rb +1 -1
- data/lib/wunderboss-rack.jar +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1f6cc698aaac887bf1e3396125eae2b8059780a4
|
|
4
|
+
data.tar.gz: bb866bd83ece10e0089a831528031db4c85c8dc9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 384928054e028536a61ea1ddea5f75d82286389bd42cb899c7fdc10b1d8cb2831fb06966833d7b4af2c8d7d463c36e03fdd9fb9461a9a590207a0f2e81853b55
|
|
7
|
+
data.tar.gz: a362371de000a05bfdb563265d530dc0793cb43c476b795ab11d0592235f5d636e93ede6f06ae77be9a20c3305838176f530136f6454ba293db3d8cfbcad8215
|
data/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
## 0.1.7
|
|
2
|
+
|
|
3
|
+
* Bundled wunderboss-rack commit
|
|
4
|
+
fc2378dfe02394fa406e1aba1ac2efe07305cadd that upgrades to Undertow
|
|
5
|
+
1.0.0.Beta30
|
|
6
|
+
|
|
1
7
|
## 0.1.6
|
|
2
8
|
|
|
3
9
|
* Bundled wunderboss-rack commit
|
|
4
|
-
|
|
5
|
-
Rails 3.2 apps from working
|
|
10
|
+
7bce2a980976cb215ff28548d2eef19c48a7410f to fix a bug preventing
|
|
11
|
+
Rails 3.2 apps from working and some Ruby runtime creation/destory
|
|
12
|
+
changes to get our specs passing again
|
|
6
13
|
|
|
7
14
|
## 0.1.5
|
|
8
15
|
|
data/lib/torqbox/cli.rb
CHANGED
|
@@ -32,7 +32,7 @@ module TorqBox
|
|
|
32
32
|
@boot_options[:host] = arg
|
|
33
33
|
end
|
|
34
34
|
opts.on '--dir DIR', 'Change directory before starting' do |arg|
|
|
35
|
-
@
|
|
35
|
+
@boot_options[:root] = arg
|
|
36
36
|
end
|
|
37
37
|
opts.on '-E', '--env ENVIRONMENT', 'Environment to run under (default: development)' do |arg|
|
|
38
38
|
ENV['RACK_ENV'] = ENV['RAILS_ENV'] = arg
|
data/lib/torqbox/server.rb
CHANGED
|
@@ -24,18 +24,18 @@ module TorqBox
|
|
|
24
24
|
SERVER_DEFAULT_OPTIONS = {
|
|
25
25
|
:host => 'localhost',
|
|
26
26
|
:port => 8080,
|
|
27
|
-
:log_level => 'INFO'
|
|
27
|
+
:log_level => 'INFO',
|
|
28
|
+
:root => '.'
|
|
28
29
|
}
|
|
29
30
|
APP_DEFAULT_OPTIONS = {
|
|
30
31
|
:context => '/',
|
|
31
|
-
:root => '.',
|
|
32
32
|
:rackup => 'config.ru',
|
|
33
33
|
:rack_app => nil
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
def initialize(options)
|
|
37
37
|
options = SERVER_DEFAULT_OPTIONS.merge(options)
|
|
38
|
-
@container = WunderBoss.container
|
|
38
|
+
@container = WunderBoss.container('root' => options[:root])
|
|
39
39
|
@container.log_level = options[:log_level]
|
|
40
40
|
@container.register_language('ruby', Java::OrgProjectoddWunderbossRuby::RubyLanguage.new)
|
|
41
41
|
@container.register_component('web', Java::OrgProjectoddWunderbossWeb::WebComponent.new)
|
|
@@ -47,15 +47,15 @@ module TorqBox
|
|
|
47
47
|
def start(options)
|
|
48
48
|
options = APP_DEFAULT_OPTIONS.merge(options)
|
|
49
49
|
@logger.info("TorqBox #{::TorqBox::VERSION} starting...")
|
|
50
|
-
app = @container.new_application('ruby')
|
|
51
|
-
app.start('rack', 'context' => options[:context],
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
'rack_app' => options[:rack_app])
|
|
50
|
+
@app = @container.new_application('ruby')
|
|
51
|
+
@app.start('rack', 'context' => options[:context],
|
|
52
|
+
'rackup' => options[:rackup],
|
|
53
|
+
'rack_app' => options[:rack_app])
|
|
55
54
|
end
|
|
56
55
|
|
|
57
56
|
def stop
|
|
58
57
|
@logger.info("Stopping TorqBox...")
|
|
58
|
+
@app.stop
|
|
59
59
|
@container.stop
|
|
60
60
|
end
|
|
61
61
|
end
|
data/lib/torqbox/version.rb
CHANGED
data/lib/wunderboss-rack.jar
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: torqbox
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.7
|
|
5
5
|
platform: java
|
|
6
6
|
authors:
|
|
7
7
|
- The TorqueBox Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-01-
|
|
11
|
+
date: 2014-01-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rack
|