jetty-rackup 0.2.0 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -52,6 +52,7 @@ the official web sites of the respective projects:
52
52
  * <http://jetty.codehaus.org/jetty/>
53
53
  * <http://kenai.com/projects/jruby-rack/pages/Home>
54
54
 
55
+ The major gem version (7) now matches the used jetty version.
55
56
 
56
57
  FAQ
57
58
  ---
@@ -60,6 +61,11 @@ FAQ
60
61
 
61
62
  jruby -J-Xmx2048m /usr/local/lib/jetty-rackup/jetty-rackup config.ru
62
63
 
64
+ TODO
65
+ ----
66
+
67
+ Tests ;-)
68
+
63
69
  See also
64
70
  --------
65
71
  For Rails deployment you may prefer jetty-rails
@@ -73,11 +79,11 @@ Copyright
73
79
 
74
80
  Author
75
81
  ------
76
- Vladimir Dobriakov, innoQ Deutschland GmbH
77
- <http://blog.geekq.net>, <http://www.innoq.com/blog/vd>
82
+ Vladimir Dobriakov
83
+ <http://blog.geekq.net>, <http://www.mobile-web-consulting.de>
78
84
 
79
85
  With contributions by [Leandro Silva](http://leandrosilva.com.br/) and
80
- [Jason Rogers](http://wordsanddeeds.org/)
86
+ Jason Rogers.
81
87
 
82
88
  Further Credits
83
89
  ---------------
@@ -85,5 +91,6 @@ Further Credits
85
91
  application. <http://michal.hantl.cz/>
86
92
  * Nick Sieger for the explanation of servlet context init params and of
87
93
  course jruby-rack itself. <http://blog.nicksieger.com/>
94
+ * Thanks to [Nik](https://github.com/11xor6) for the Jetty 7.0 port.
88
95
 
89
96
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 7.0.0
Binary file
Binary file
Binary file
Binary file
@@ -3,38 +3,37 @@ class Rack::Handler::Jetty
3
3
  Dir["#{File.dirname(__FILE__)}/../../jars/*.jar"].each { |jar| require jar }
4
4
 
5
5
  include_class 'javax.servlet.http.HttpServlet'
6
- include_class 'org.mortbay.jetty.Server'
7
- include_class 'org.mortbay.jetty.servlet.Context'
8
- include_class 'org.mortbay.jetty.servlet.ServletHolder'
6
+ include_class 'org.eclipse.jetty.server.Server'
7
+ include_class 'org.eclipse.jetty.servlet.ServletContextHandler'
8
+ include_class 'org.eclipse.jetty.servlet.ServletHolder'
9
9
  include_class 'org.jruby.rack.servlet.ServletRackContext'
10
- include_class 'org.mortbay.jetty.handler.ResourceHandler'
11
- include_class 'org.mortbay.jetty.handler.DefaultHandler'
12
- include_class 'org.mortbay.jetty.handler.HandlerList'
13
- include_class 'org.mortbay.jetty.handler.ContextHandlerCollection'
14
- include_class 'org.mortbay.jetty.servlet.DefaultServlet'
10
+ include_class 'org.eclipse.jetty.server.handler.ResourceHandler'
11
+ include_class 'org.eclipse.jetty.server.handler.DefaultHandler'
12
+ include_class 'org.eclipse.jetty.server.handler.HandlerList'
13
+ include_class 'org.eclipse.jetty.server.handler.ContextHandlerCollection'
14
+ include_class 'org.eclipse.jetty.servlet.DefaultServlet'
15
15
 
16
- jetty = org.mortbay.jetty.Server.new options[:Port]
16
+ jetty = org.eclipse.jetty.server.Server.new options[:Port]
17
17
 
18
- context = org.mortbay.jetty.servlet.Context.new(nil, "/", org.mortbay.jetty.servlet.Context::NO_SESSIONS)
19
- context.add_filter("org.jruby.rack.RackFilter", "/*", org.mortbay.jetty.Handler::DEFAULT)
18
+ context = org.eclipse.jetty.servlet.ServletContextHandler.new(nil, "/", org.eclipse.jetty.servlet.ServletContextHandler::NO_SESSIONS)
19
+ context.add_filter("org.jruby.rack.RackFilter", "/*", 0)
20
20
  context.set_resource_base(File.dirname(__FILE__))
21
21
  context.add_event_listener(org.jruby.rack.RackServletContextListener.new)
22
22
 
23
- context.set_init_params(java.util.HashMap.new(
24
- 'org.mortbay.jetty.servlet.Default.relativeResourceBase' => '/public',
25
- 'rackup' => rackup_content,
26
- 'jruby.max.runtimes' => '1'))
27
-
28
- context.add_servlet(org.mortbay.jetty.servlet.ServletHolder.new(
29
- org.mortbay.jetty.servlet.DefaultServlet.new), "/")
30
-
23
+ context.set_init_parameter('org.eclipse.jetty.servlet.Default.relativeResourceBase', '/public')
24
+ context.set_init_parameter('rackup', rackup_content)
25
+ context.set_init_parameter('jruby.max.runtimes', '1')
26
+
27
+ context.add_servlet(org.eclipse.jetty.servlet.ServletHolder.new(
28
+ org.eclipse.jetty.servlet.DefaultServlet.new), "/")
29
+
31
30
  JRuby.runtime.jruby_class_loader.add_url(java.io.File.new("WEB-INF/classes").to_url)
32
31
 
33
32
  Dir["WEB-INF/lib/**/*.jar"].each do |jar|
34
33
  JRuby.runtime.jruby_class_loader.add_url(java.io.File.new(jar).to_url)
35
34
  end
36
-
35
+
37
36
  jetty.set_handler(context)
38
37
  jetty.start
39
38
  end
40
- end
39
+ end
metadata CHANGED
@@ -3,10 +3,10 @@ name: jetty-rackup
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
+ - 7
6
7
  - 0
7
- - 2
8
8
  - 0
9
- version: 0.2.0
9
+ version: 7.0.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Vladimir Dobriakov
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-02-12 00:00:00 +01:00
19
+ date: 2012-01-02 00:00:00 +01:00
20
20
  default_executable: jetty-rackup
21
21
  dependencies: []
22
22
 
@@ -30,7 +30,6 @@ extra_rdoc_files:
30
30
  - LICENSE
31
31
  - README.markdown
32
32
  files:
33
- - .gitignore
34
33
  - LICENSE
35
34
  - README.markdown
36
35
  - Rakefile
@@ -46,10 +45,14 @@ files:
46
45
  - examples/using_java/java/Other.java
47
46
  - examples/using_java/java/Some.java
48
47
  - jars/core-3.1.1.jar
49
- - jars/jetty-6.1.14.jar
50
- - jars/jetty-plus-6.1.14.jar
51
- - jars/jetty-util-6.1.14.jar
52
- - jars/jruby-rack-0.9.5.jar
48
+ - jars/jetty-continuation-7.2.2.v20101205.jar
49
+ - jars/jetty-http-7.2.2.v20101205.jar
50
+ - jars/jetty-io-7.2.2.v20101205.jar
51
+ - jars/jetty-security-7.2.2.v20101205.jar
52
+ - jars/jetty-server-7.2.2.v20101205.jar
53
+ - jars/jetty-servlet-7.2.2.v20101205.jar
54
+ - jars/jetty-util-7.2.2.v20101205.jar
55
+ - jars/jruby-rack-1.1.2.jar
53
56
  - jars/jsp-2.1.jar
54
57
  - jars/jsp-api-2.1.jar
55
58
  - jars/servlet-api-2.5-6.1.14.jar
@@ -63,8 +66,8 @@ homepage: http://github.com/geekq/jetty-rackup
63
66
  licenses: []
64
67
 
65
68
  post_install_message:
66
- rdoc_options:
67
- - --charset=UTF-8
69
+ rdoc_options: []
70
+
68
71
  require_paths:
69
72
  - lib
70
73
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -88,8 +91,5 @@ rubygems_version: 1.3.6
88
91
  signing_key:
89
92
  specification_version: 3
90
93
  summary: Rack + Jetty = Retty
91
- test_files:
92
- - test/test_jetty-rackup.rb
93
- - test/helper.rb
94
- - examples/just_ruby/app.rb
95
- - examples/using_java/app.rb
94
+ test_files: []
95
+
data/.gitignore DELETED
@@ -1 +0,0 @@
1
- .DS_Store
Binary file
Binary file
Binary file
Binary file