jetty-rails 0.4 → 0.5

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.
data/History.txt CHANGED
@@ -1,3 +1,13 @@
1
+ == 0.5
2
+ * load all jars inside lib/ by default
3
+ * using GEM_PATH environment variable, if exists
4
+ * fix signal handling (ctrl + c) for jetty_merb
5
+
6
+ == 0.4
7
+ * Merb support! jruby -S jetty_merb
8
+ * Changed default ports to 3000 (rails) and 4000 (merb)
9
+ * More specs
10
+
1
11
  == 0.3
2
12
 
3
13
  * Improved Documentation: rdoc and site.
data/README.txt CHANGED
@@ -13,7 +13,8 @@ The project has born from my own needs. I needed to run JForum (http://jforum.ne
13
13
  == FEATURES:
14
14
 
15
15
  * Uses {JRuby Rack}[http://wiki.jruby.org/wiki/JRuby_Rack].
16
- * FIX (list of features)
16
+ * Loads all jars inside your application lib/ dir, by default.
17
+ * Supports rails and merb applications out of the box.
17
18
 
18
19
  == KNOWN ISSUES
19
20
 
@@ -24,12 +25,23 @@ jruby -S rake rcov
24
25
 
25
26
  == USAGE:
26
27
 
28
+ === Rails:
29
+
27
30
  cd myrailsapp
28
31
  jruby -S jetty_rails
29
32
 
30
33
  --help option shows usage details:
31
34
 
32
35
  jruby -S jetty_rails --help
36
+
37
+ === Merb:
38
+
39
+ cd mymerbapp
40
+ jruby -S jetty_merb
41
+
42
+ --help option shows usage details:
43
+
44
+ jruby -S jetty_rails --help
33
45
 
34
46
  == REQUIREMENTS:
35
47
 
data/bin/jetty_merb CHANGED
@@ -24,8 +24,8 @@
24
24
 
25
25
  require "java"
26
26
  require "jetty_rails"
27
- require 'rdoc/usage'
28
27
  require 'getoptlong'
28
+ require 'rdoc/usage'
29
29
 
30
30
  # fix to work with rubygems (use current file instead of main)
31
31
  def RDoc.usage_no_exit(*args)
data/bin/jetty_rails CHANGED
@@ -24,8 +24,8 @@
24
24
 
25
25
  require "java"
26
26
  require "jetty_rails"
27
- require 'rdoc/usage'
28
27
  require 'getoptlong'
28
+ require 'rdoc/usage'
29
29
 
30
30
  # fix to work with rubygems (use current file instead of main)
31
31
  def RDoc.usage_no_exit(*args)
@@ -14,15 +14,28 @@ module JettyRails
14
14
  'merb.root' => '/',
15
15
  'public.root' => '/public',
16
16
  'merb.environment' => config[:environment],
17
- 'gem.path' => 'tmp/war/WEB-INF/gems'
17
+ 'gem.path' => ENV['GEM_PATH'] || 'tmp/war/WEB-INF/gems'
18
18
  }
19
19
  end
20
20
 
21
- def rack_event_listener
22
- Rack::MerbServletContextListener.new
21
+ def event_listeners
22
+ [ Rack::MerbServletContextListener.new, SignalHandler.new ]
23
+ end
24
+
25
+ class SignalHandler
26
+ include Java::JavaxServlet::ServletContextListener
27
+
28
+ def contextInitialized(cfg)
29
+ trap("INT") do
30
+ puts "\nbye!"
31
+ java.lang.System.exit(0)
32
+ end
33
+ end
34
+
35
+ def contextDestroyed(cfg)
36
+ end
23
37
  end
24
38
 
25
39
  end
26
-
27
40
  end
28
41
  end
@@ -14,12 +14,12 @@ module JettyRails
14
14
  'rails.root' => '/',
15
15
  'public.root' => '/public',
16
16
  'rails.env' => config[:environment],
17
- 'gem.path' => 'tmp/war/WEB-INF/gems'
17
+ 'gem.path' => ENV['GEM_PATH'] || 'tmp/war/WEB-INF/gems'
18
18
  }
19
19
  end
20
20
 
21
- def rack_event_listener
22
- Rack::RailsServletContextListener.new
21
+ def event_listeners
22
+ [ Rack::RailsServletContextListener.new ]
23
23
  end
24
24
 
25
25
  end
@@ -11,6 +11,7 @@ module JettyRails
11
11
  :adapter => :rails,
12
12
  :environment => 'development',
13
13
  :context_path => '/',
14
+ :lib_dir => 'lib/**/*.jar',
14
15
  :port => 8080
15
16
  }
16
17
 
@@ -21,7 +22,7 @@ module JettyRails
21
22
 
22
23
  def initialize(config = {})
23
24
  @config = config.symbolize_keys!.reverse_merge!(@@defaults)
24
- add_root_method_to @config[:context_path]
25
+ @config[:context_path].extend ContextPath
25
26
 
26
27
  raise 'Basedir to be run must be provided' unless config[:base]
27
28
 
@@ -30,6 +31,7 @@ module JettyRails
30
31
  connector.port = config[:port]
31
32
  @server.add_connector(connector)
32
33
 
34
+ add_stuff_to_classpath
33
35
  add_public_dir_to server
34
36
  install_rack_on server
35
37
  end
@@ -40,6 +42,13 @@ module JettyRails
40
42
  end
41
43
 
42
44
  private
45
+ def add_stuff_to_classpath
46
+ lib_dir = "#{config[:base]}/#{config[:lib_dir]}"
47
+ Dir[lib_dir].each do |jar|
48
+ require jar
49
+ end
50
+ end
51
+
43
52
  def add_public_dir_to(server)
44
53
  @resources = Jetty::Handler::ResourceHandler.new
45
54
  @resources.resource_base = config[:base] + '/public'
@@ -63,7 +72,9 @@ module JettyRails
63
72
 
64
73
  adapter = adapter_for config[:adapter]
65
74
  @app_context.init_params = adapter.init_params
66
- @app_context.add_event_listener(adapter.rack_event_listener)
75
+ adapter.event_listeners.each do |listener|
76
+ @app_context.add_event_listener(listener)
77
+ end
67
78
 
68
79
  @app_context.add_filter(rack_filter, "/*", Jetty::Context::DEFAULT)
69
80
  server.add_handler(@app_context)
@@ -73,17 +84,16 @@ module JettyRails
73
84
  Jetty::FilterHolder.new(Rack::RackFilter.new)
74
85
  end
75
86
 
76
- def add_root_method_to(target)
77
- (class << target; self; end).class_eval do
78
- def root?
79
- self == '/'
80
- end
81
- end
82
- end
83
-
84
87
  def adapter_for(kind)
85
88
  @@adapters[kind.to_sym].new(config)
86
89
  end
87
90
 
88
91
  end
92
+
93
+ module ContextPath
94
+ def root?
95
+ self == '/'
96
+ end
97
+ end
98
+
89
99
  end
@@ -1,7 +1,7 @@
1
1
  module JettyRails #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
- MINOR = 4
4
+ MINOR = 5
5
5
 
6
6
  STRING = [MAJOR, MINOR].join('.')
7
7
  end
@@ -7,7 +7,7 @@ describe "binary executable with no command line arguments" do
7
7
  current_dir = Dir.pwd
8
8
  JettyRails::Runner.should_receive(:new) do |config|
9
9
  config.should have_key(:adapter)
10
- config[:adapter].should eql(:merb)
10
+ config[:adapter].should == :merb
11
11
  runner
12
12
  end
13
13
  load File.dirname(__FILE__) + '/../bin/jetty_merb'
@@ -18,7 +18,7 @@ describe "binary executable with no command line arguments" do
18
18
  current_dir = Dir.pwd
19
19
  JettyRails::Runner.should_receive(:new) do |config|
20
20
  config.should have_key(:base)
21
- config[:base].should eql(current_dir)
21
+ config[:base].should == current_dir
22
22
  runner
23
23
  end
24
24
  load File.dirname(__FILE__) + '/../bin/jetty_merb'
@@ -46,7 +46,7 @@ describe "binary executable with no command line arguments" do
46
46
  runner = mock("runner", :null_object => true)
47
47
  JettyRails::Runner.should_receive(:new) do |config|
48
48
  config.should have_key(:port)
49
- config[:port].should eql(4000)
49
+ config[:port].should == 4000
50
50
  runner
51
51
  end
52
52
  load File.dirname(__FILE__) + '/../bin/jetty_merb'
@@ -61,7 +61,7 @@ describe "binary executable with command line arguments" do
61
61
  runner = mock("runner", :null_object => true)
62
62
  JettyRails::Runner.should_receive(:new) do |config|
63
63
  config.should have_key(:base)
64
- config[:base].should eql('/any/app/dir')
64
+ config[:base].should == '/any/app/dir'
65
65
  runner
66
66
  end
67
67
  load File.dirname(__FILE__) + '/../bin/jetty_merb'
@@ -73,7 +73,7 @@ describe "binary executable with command line arguments" do
73
73
  runner = mock("runner", :null_object => true)
74
74
  JettyRails::Runner.should_receive(:new) do |config|
75
75
  config.should have_key(:context_path)
76
- config[:context_path].should eql('/myapp')
76
+ config[:context_path].should == '/myapp'
77
77
  runner
78
78
  end
79
79
  load File.dirname(__FILE__) + '/../bin/jetty_merb'
@@ -85,7 +85,7 @@ describe "binary executable with command line arguments" do
85
85
  runner = mock("runner", :null_object => true)
86
86
  JettyRails::Runner.should_receive(:new) do |config|
87
87
  config.should have_key(:context_path)
88
- config[:context_path].should eql('/myapp')
88
+ config[:context_path].should == '/myapp'
89
89
  runner
90
90
  end
91
91
  load File.dirname(__FILE__) + '/../bin/jetty_merb'
@@ -97,7 +97,7 @@ describe "binary executable with command line arguments" do
97
97
  runner = mock("runner", :null_object => true)
98
98
  JettyRails::Runner.should_receive(:new) do |config|
99
99
  config.should have_key(:environment)
100
- config[:environment].should eql('production')
100
+ config[:environment].should == 'production'
101
101
  runner
102
102
  end
103
103
  load File.dirname(__FILE__) + '/../bin/jetty_merb'
@@ -109,7 +109,7 @@ describe "binary executable with command line arguments" do
109
109
  runner = mock("runner", :null_object => true)
110
110
  JettyRails::Runner.should_receive(:new) do |config|
111
111
  config.should have_key(:environment)
112
- config[:environment].should eql('production')
112
+ config[:environment].should == 'production'
113
113
  runner
114
114
  end
115
115
  load File.dirname(__FILE__) + '/../bin/jetty_merb'
@@ -121,7 +121,7 @@ describe "binary executable with command line arguments" do
121
121
  runner = mock("runner", :null_object => true)
122
122
  JettyRails::Runner.should_receive(:new) do |config|
123
123
  config.should have_key(:port)
124
- config[:port].should eql(80)
124
+ config[:port].should == 80
125
125
  runner
126
126
  end
127
127
  load File.dirname(__FILE__) + '/../bin/jetty_merb'
@@ -133,7 +133,7 @@ describe "binary executable with command line arguments" do
133
133
  runner = mock("runner", :null_object => true)
134
134
  JettyRails::Runner.should_receive(:new) do |config|
135
135
  config.should have_key(:port)
136
- config[:port].should eql(80)
136
+ config[:port].should == 80
137
137
  runner
138
138
  end
139
139
  load File.dirname(__FILE__) + '/../bin/jetty_merb'
@@ -17,7 +17,7 @@ describe JettyRails::Handler::DelegateOnErrorsResponse do
17
17
  response = mock('original response')
18
18
  response.should_receive(:getContentType).once.and_return('text/html; charset=UTF-8')
19
19
  wrapper = JettyRails::Handler::DelegateOnErrorsResponse.new response, mock('request')
20
- wrapper.getContentType.should eql('text/html; charset=UTF-8')
20
+ wrapper.getContentType.should == 'text/html; charset=UTF-8'
21
21
  end
22
22
 
23
23
  it "should set request to not handled state on error" do
@@ -8,49 +8,54 @@ describe JettyRails::Runner, "with no extra configuration (rails adapter)" do
8
8
  it "should receive basedir configuration" do
9
9
  runner = JettyRails::Runner.new :base => '/any/app/dir'
10
10
  runner.config.should have_key(:base)
11
- runner.config[:base].should eql('/any/app/dir')
11
+ runner.config[:base].should == '/any/app/dir'
12
12
  end
13
13
 
14
14
  it "should default to development environment" do
15
15
  runner = JettyRails::Runner.new :base => Dir.pwd
16
16
  runner.config.should have_key(:environment)
17
- runner.config[:environment].should eql('development')
18
- runner.app_context.init_params['rails.env'].should eql('development')
17
+ runner.config[:environment].should == 'development'
18
+ runner.app_context.init_params['rails.env'].should == 'development'
19
19
  end
20
20
 
21
21
  it "should default to the root context path" do
22
22
  runner = JettyRails::Runner.new :base => Dir.pwd
23
23
  runner.config.should have_key(:context_path)
24
- runner.config[:context_path].should eql('/')
25
- runner.app_context.context_path.should eql('/')
24
+ runner.config[:context_path].should == '/'
25
+ runner.app_context.context_path.should == '/'
26
26
  end
27
27
 
28
28
  it "should set server default port to 8080" do
29
29
  runner = JettyRails::Runner.new :base => Dir.pwd
30
30
  runner.config.should have_key(:port)
31
- runner.config[:port].should eql(8080)
32
- runner.app_context.context_path.should eql('/')
31
+ runner.config[:port].should == 8080
32
+ end
33
+
34
+ it "should default lib_dir to lib/*.jar" do
35
+ runner = JettyRails::Runner.new :base => Dir.pwd
36
+ runner.config.should have_key(:lib_dir)
37
+ runner.config[:lib_dir].should == 'lib/**/*.jar'
33
38
  end
34
39
 
35
40
  it "should set rails root" do
36
41
  runner = JettyRails::Runner.new :base => Dir.pwd
37
- runner.app_context.init_params['rails.root'].should eql('/')
42
+ runner.app_context.init_params['rails.root'].should == '/'
38
43
  end
39
44
 
40
45
  it "should set public root" do
41
46
  runner = JettyRails::Runner.new :base => Dir.pwd
42
- runner.app_context.init_params['public.root'].should eql('/public')
47
+ runner.app_context.init_params['public.root'].should == '/public'
43
48
  end
44
49
 
45
50
  it "should set gem path" do
46
51
  runner = JettyRails::Runner.new :base => Dir.pwd
47
- runner.app_context.init_params['gem.path'].should eql('tmp/war/WEB-INF/gems')
52
+ runner.app_context.init_params['gem.path'].should == 'tmp/war/WEB-INF/gems'
48
53
  end
49
54
 
50
55
  it "should install RailsServletContextListener" do
51
56
  runner = JettyRails::Runner.new :base => Dir.pwd
52
57
  listeners = runner.app_context.event_listeners
53
- listeners.size.should eql(1)
58
+ listeners.size.should == 1
54
59
  listeners[0].should be_kind_of(JettyRails::Rack::RailsServletContextListener)
55
60
  end
56
61
 
@@ -61,19 +66,19 @@ describe JettyRails::Runner, "with no extra configuration (rails adapter)" do
61
66
  JettyRails::Jetty::Handler::WebAppContext.should_receive(:new).and_return(context)
62
67
  context.should_receive(:add_filter).once do |filter_holder, url_pattern, dispatches|
63
68
  filter_holder.filter.should be_kind_of(JettyRails::Rack::RackFilter)
64
- url_pattern.should eql('/*')
65
- dispatches.should eql(JettyRails::Jetty::Context::DEFAULT)
69
+ url_pattern.should == '/*'
70
+ dispatches.should == JettyRails::Jetty::Context::DEFAULT
66
71
  end
67
72
  runner = JettyRails::Runner.new :base => Dir.pwd
68
73
  end
69
74
 
70
75
  it "should have handlers for static and dynamic content" do
71
76
  runner = JettyRails::Runner.new :base => Dir.pwd
72
- runner.server.handlers.size.should eql(2)
77
+ runner.server.handlers.size.should == 2
73
78
  resource_handlers = runner.server.getChildHandlersByClass(JettyRails::Jetty::Handler::ResourceHandler)
74
- resource_handlers.size.should eql(1)
79
+ resource_handlers.size.should == 1
75
80
  webapp_handlers = runner.server.getChildHandlersByClass(JettyRails::Jetty::Handler::WebAppContext)
76
- webapp_handlers.size.should eql(1)
81
+ webapp_handlers.size.should == 1
77
82
  end
78
83
 
79
84
  it "should delegate to rails handler if requested dir has no welcome file" do
@@ -89,28 +94,28 @@ describe JettyRails::Runner, "with custom configuration" do
89
94
  it "should allow to override the environment" do
90
95
  runner = JettyRails::Runner.new :base => Dir.pwd, :environment => 'production'
91
96
  runner.config.should have_key(:environment)
92
- runner.config[:environment].should eql('production')
93
- runner.app_context.init_params['rails.env'].should eql('production')
97
+ runner.config[:environment].should == 'production'
98
+ runner.app_context.init_params['rails.env'].should == 'production'
94
99
  end
95
100
 
96
101
  it "should allow to override the context path" do
97
102
  runner = JettyRails::Runner.new :base => Dir.pwd, :context_path => "/myapp"
98
103
  runner.config.should have_key(:context_path)
99
- runner.config[:context_path].should eql('/myapp')
100
- runner.app_context.context_path.should eql('/myapp')
104
+ runner.config[:context_path].should == '/myapp'
105
+ runner.app_context.context_path.should == '/myapp'
101
106
  end
102
107
 
103
108
  it "should allow to override the server port" do
104
109
  runner = JettyRails::Runner.new :base => Dir.pwd, :port => 8585
105
110
  runner.config.should have_key(:port)
106
- runner.config[:port].should eql(8585)
107
- runner.server.connectors[0].port.should eql(8585)
111
+ runner.config[:port].should == 8585
112
+ runner.server.connectors[0].port.should == 8585
108
113
  end
109
114
 
110
115
  it "should handle custom context paths for static and dynamic content" do
111
116
  runner = JettyRails::Runner.new :base => Dir.pwd, :context_path => "/myapp"
112
117
  context_handlers = runner.server.getChildHandlersByClass(JettyRails::Jetty::Handler::ContextHandler)
113
- context_handlers.size.should eql(2) # one for static, one for dynamic
118
+ context_handlers.size.should == 2 # one for static, one for dynamic
114
119
  end
115
120
  end
116
121
 
@@ -118,29 +123,30 @@ describe JettyRails::Runner, "with merb adapter" do
118
123
 
119
124
  it "should set merb root" do
120
125
  runner = JettyRails::Runner.new :adapter => :merb, :base => Dir.pwd
121
- runner.app_context.init_params['merb.root'].should eql('/')
126
+ runner.app_context.init_params['merb.root'].should == '/'
122
127
  end
123
128
 
124
129
  it "should set public root" do
125
130
  runner = JettyRails::Runner.new :adapter => :merb, :base => Dir.pwd
126
- runner.app_context.init_params['public.root'].should eql('/public')
131
+ runner.app_context.init_params['public.root'].should == '/public'
127
132
  end
128
133
 
129
134
  it "should set gem path" do
130
135
  runner = JettyRails::Runner.new :adapter => :merb, :base => Dir.pwd
131
- runner.app_context.init_params['gem.path'].should eql('tmp/war/WEB-INF/gems')
136
+ runner.app_context.init_params['gem.path'].should == 'tmp/war/WEB-INF/gems'
132
137
  end
133
138
 
134
139
  it "should set merb environment to development" do
135
140
  runner = JettyRails::Runner.new :adapter => :merb, :base => Dir.pwd
136
- runner.app_context.init_params['merb.environment'].should eql('development')
141
+ runner.app_context.init_params['merb.environment'].should == 'development'
137
142
  end
138
143
 
139
- it "should install MerbServletContextListener" do
144
+ it "should install MerbServletContextListener and SignalHandler" do
140
145
  runner = JettyRails::Runner.new :adapter => :merb, :base => Dir.pwd
141
146
  listeners = runner.app_context.event_listeners
142
- listeners.size.should eql(1)
147
+ listeners.size.should == 2
143
148
  listeners[0].should be_kind_of(JettyRails::Rack::MerbServletContextListener)
149
+ listeners[1].should be_kind_of(JettyRails::Adapters::MerbAdapter::SignalHandler)
144
150
  end
145
151
  end
146
152
 
@@ -7,7 +7,7 @@ describe "binary executable with no command line arguments" do
7
7
  current_dir = Dir.pwd
8
8
  JettyRails::Runner.should_receive(:new) do |config|
9
9
  config.should have_key(:adapter)
10
- config[:adapter].should eql(:rails)
10
+ config[:adapter].should == :rails
11
11
  runner
12
12
  end
13
13
  load File.dirname(__FILE__) + '/../bin/jetty_rails'
@@ -18,7 +18,7 @@ describe "binary executable with no command line arguments" do
18
18
  current_dir = Dir.pwd
19
19
  JettyRails::Runner.should_receive(:new) do |config|
20
20
  config.should have_key(:base)
21
- config[:base].should eql(current_dir)
21
+ config[:base].should == current_dir
22
22
  runner
23
23
  end
24
24
  load File.dirname(__FILE__) + '/../bin/jetty_rails'
@@ -46,7 +46,7 @@ describe "binary executable with no command line arguments" do
46
46
  runner = mock("runner", :null_object => true)
47
47
  JettyRails::Runner.should_receive(:new) do |config|
48
48
  config.should have_key(:port)
49
- config[:port].should eql(3000)
49
+ config[:port].should == 3000
50
50
  runner
51
51
  end
52
52
  load File.dirname(__FILE__) + '/../bin/jetty_rails'
@@ -61,7 +61,7 @@ describe "binary executable with command line arguments" do
61
61
  runner = mock("runner", :null_object => true)
62
62
  JettyRails::Runner.should_receive(:new) do |config|
63
63
  config.should have_key(:base)
64
- config[:base].should eql('/any/app/dir')
64
+ config[:base].should == '/any/app/dir'
65
65
  runner
66
66
  end
67
67
  load File.dirname(__FILE__) + '/../bin/jetty_rails'
@@ -73,7 +73,7 @@ describe "binary executable with command line arguments" do
73
73
  runner = mock("runner", :null_object => true)
74
74
  JettyRails::Runner.should_receive(:new) do |config|
75
75
  config.should have_key(:context_path)
76
- config[:context_path].should eql('/myapp')
76
+ config[:context_path].should == '/myapp'
77
77
  runner
78
78
  end
79
79
  load File.dirname(__FILE__) + '/../bin/jetty_rails'
@@ -85,7 +85,7 @@ describe "binary executable with command line arguments" do
85
85
  runner = mock("runner", :null_object => true)
86
86
  JettyRails::Runner.should_receive(:new) do |config|
87
87
  config.should have_key(:context_path)
88
- config[:context_path].should eql('/myapp')
88
+ config[:context_path].should == '/myapp'
89
89
  runner
90
90
  end
91
91
  load File.dirname(__FILE__) + '/../bin/jetty_rails'
@@ -97,7 +97,7 @@ describe "binary executable with command line arguments" do
97
97
  runner = mock("runner", :null_object => true)
98
98
  JettyRails::Runner.should_receive(:new) do |config|
99
99
  config.should have_key(:environment)
100
- config[:environment].should eql('production')
100
+ config[:environment].should == 'production'
101
101
  runner
102
102
  end
103
103
  load File.dirname(__FILE__) + '/../bin/jetty_rails'
@@ -109,7 +109,7 @@ describe "binary executable with command line arguments" do
109
109
  runner = mock("runner", :null_object => true)
110
110
  JettyRails::Runner.should_receive(:new) do |config|
111
111
  config.should have_key(:environment)
112
- config[:environment].should eql('production')
112
+ config[:environment].should == 'production'
113
113
  runner
114
114
  end
115
115
  load File.dirname(__FILE__) + '/../bin/jetty_rails'
@@ -121,7 +121,7 @@ describe "binary executable with command line arguments" do
121
121
  runner = mock("runner", :null_object => true)
122
122
  JettyRails::Runner.should_receive(:new) do |config|
123
123
  config.should have_key(:port)
124
- config[:port].should eql(80)
124
+ config[:port].should == 80
125
125
  runner
126
126
  end
127
127
  load File.dirname(__FILE__) + '/../bin/jetty_rails'
@@ -133,7 +133,7 @@ describe "binary executable with command line arguments" do
133
133
  runner = mock("runner", :null_object => true)
134
134
  JettyRails::Runner.should_receive(:new) do |config|
135
135
  config.should have_key(:port)
136
- config[:port].should eql(80)
136
+ config[:port].should == 80
137
137
  runner
138
138
  end
139
139
  load File.dirname(__FILE__) + '/../bin/jetty_rails'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jetty-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.4"
4
+ version: "0.5"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabio Kung
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-05-22 00:00:00 -03:00
12
+ date: 2008-06-10 00:00:00 -03:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency