jetty-rails 0.8 → 0.8.1
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 +4 -0
- data/Manifest.txt +7 -9
- data/{README.txt → README.rdoc} +5 -13
- data/Rakefile +29 -3
- data/lib/jetty_rails.rb +5 -0
- data/lib/jetty_rails/jars.rb +1 -1
- data/lib/jruby-rack-0.9.5-SNAPSHOT.jar +0 -0
- data/script/console +1 -1
- data/script/txt2html +5 -16
- data/spec/spec_helper.rb +1 -1
- data/tasks/jruby.rake +7 -0
- data/tasks/rspec.rake +6 -0
- data/website/index.txt +194 -0
- data/website/javascripts/rounded_corners_lite.inc.js +285 -0
- data/website/stylesheets/screen.css +159 -0
- data/website/template.html.erb +56 -0
- metadata +77 -66
- data/config/hoe.rb +0 -76
- data/config/requirements.rb +0 -15
- data/lib/jetty_rails/version.rb +0 -8
- data/lib/jruby-rack-0.9.3.jar +0 -0
- data/setup.rb +0 -1585
- data/tasks/deployment.rake +0 -34
- data/tasks/environment.rake +0 -7
- data/tasks/website.rake +0 -17
@@ -0,0 +1,159 @@
|
|
1
|
+
body {
|
2
|
+
background-color: #8DBD82;
|
3
|
+
font-family: "Georgia", sans-serif;
|
4
|
+
font-size: 16px;
|
5
|
+
line-height: 1.6em;
|
6
|
+
padding: 1.6em 0 0 0;
|
7
|
+
color: #333;
|
8
|
+
}
|
9
|
+
h1, h2, h3, h4, h5, h6 {
|
10
|
+
color: #444;
|
11
|
+
}
|
12
|
+
h1 {
|
13
|
+
font-family: sans-serif;
|
14
|
+
font-weight: normal;
|
15
|
+
font-size: 4em;
|
16
|
+
line-height: 0.8em;
|
17
|
+
letter-spacing: -0.1ex;
|
18
|
+
margin: 5px;
|
19
|
+
}
|
20
|
+
li {
|
21
|
+
padding: 0;
|
22
|
+
margin: 0;
|
23
|
+
list-style-type: square;
|
24
|
+
}
|
25
|
+
a {
|
26
|
+
color: #5E5AFF;
|
27
|
+
background-color: #A1DDB1;
|
28
|
+
font-weight: normal;
|
29
|
+
text-decoration: underline;
|
30
|
+
}
|
31
|
+
blockquote {
|
32
|
+
font-size: 90%;
|
33
|
+
font-style: italic;
|
34
|
+
border-left: 1px solid #111;
|
35
|
+
padding-left: 1em;
|
36
|
+
}
|
37
|
+
.caps {
|
38
|
+
font-size: 80%;
|
39
|
+
}
|
40
|
+
|
41
|
+
#main {
|
42
|
+
width: 55em;
|
43
|
+
padding: 0;
|
44
|
+
margin: 0 auto;
|
45
|
+
}
|
46
|
+
.coda {
|
47
|
+
text-align: right;
|
48
|
+
color: #77f;
|
49
|
+
font-size: smaller;
|
50
|
+
}
|
51
|
+
|
52
|
+
table {
|
53
|
+
font-size: 90%;
|
54
|
+
line-height: 1.4em;
|
55
|
+
color: #ff8;
|
56
|
+
background-color: #111;
|
57
|
+
padding: 2px 10px 2px 10px;
|
58
|
+
border-style: dashed;
|
59
|
+
}
|
60
|
+
|
61
|
+
th {
|
62
|
+
color: #fff;
|
63
|
+
}
|
64
|
+
|
65
|
+
td {
|
66
|
+
padding: 2px 10px 2px 10px;
|
67
|
+
}
|
68
|
+
|
69
|
+
.success {
|
70
|
+
color: #0CC52B;
|
71
|
+
}
|
72
|
+
|
73
|
+
.failed {
|
74
|
+
color: #E90A1B;
|
75
|
+
}
|
76
|
+
|
77
|
+
.unknown {
|
78
|
+
color: #995000;
|
79
|
+
}
|
80
|
+
pre, code {
|
81
|
+
font-family: monospace;
|
82
|
+
font-size: 90%;
|
83
|
+
line-height: 1.4em;
|
84
|
+
color: #ff8;
|
85
|
+
background-color: #111;
|
86
|
+
width: 40em;
|
87
|
+
padding: 2px 10px 2px 10px;
|
88
|
+
}
|
89
|
+
.comment { color: #aaa; font-style: italic; }
|
90
|
+
.keyword { color: #eff; font-weight: bold; }
|
91
|
+
.punct { color: #eee; font-weight: bold; }
|
92
|
+
.symbol { color: #0bb; }
|
93
|
+
.string { color: #6b4; }
|
94
|
+
.ident { color: #ff8; }
|
95
|
+
.constant { color: #66f; }
|
96
|
+
.regex { color: #ec6; }
|
97
|
+
.number { color: #F99; }
|
98
|
+
.expr { color: #227; }
|
99
|
+
|
100
|
+
.sidebar {
|
101
|
+
float: right;
|
102
|
+
}
|
103
|
+
|
104
|
+
#version {
|
105
|
+
width: 217px;
|
106
|
+
text-align: right;
|
107
|
+
font-family: sans-serif;
|
108
|
+
font-weight: normal;
|
109
|
+
color: #141331;
|
110
|
+
padding: 15px 20px 10px 20px;
|
111
|
+
margin: 0 auto;
|
112
|
+
margin-top: 15px;
|
113
|
+
background-color: #9A5535;
|
114
|
+
border: 3px solid #7E393E;
|
115
|
+
}
|
116
|
+
|
117
|
+
#version .numbers {
|
118
|
+
display: block;
|
119
|
+
font-size: 4em;
|
120
|
+
line-height: 0.8em;
|
121
|
+
letter-spacing: -0.1ex;
|
122
|
+
margin-bottom: 15px;
|
123
|
+
}
|
124
|
+
|
125
|
+
#version p {
|
126
|
+
text-decoration: none;
|
127
|
+
color: #F1F4FF;
|
128
|
+
background-color: #9A5535;
|
129
|
+
margin: 0;
|
130
|
+
padding: 0;
|
131
|
+
}
|
132
|
+
|
133
|
+
#version a {
|
134
|
+
text-decoration: none;
|
135
|
+
color: #F1F4FF;
|
136
|
+
background-color: #9A5535;
|
137
|
+
}
|
138
|
+
|
139
|
+
.clickable {
|
140
|
+
cursor: pointer;
|
141
|
+
cursor: hand;
|
142
|
+
}
|
143
|
+
|
144
|
+
#twitter_search {
|
145
|
+
margin: 40px 0 10px 15px;
|
146
|
+
color: #F1F4FF;
|
147
|
+
background-color: #9A5535;
|
148
|
+
border: 3px solid #7E393E;
|
149
|
+
}
|
150
|
+
|
151
|
+
#twitter_search h3 {
|
152
|
+
color: #F1F4FF;
|
153
|
+
margin-bottom: 0px;
|
154
|
+
}
|
155
|
+
|
156
|
+
#twitter_search center b {
|
157
|
+
display: none;
|
158
|
+
}
|
159
|
+
|
@@ -0,0 +1,56 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
+
<title>
|
8
|
+
<%= title %>
|
9
|
+
</title>
|
10
|
+
<script src="javascripts/rounded_corners_lite.inc.js" type="text/javascript"></script>
|
11
|
+
<style>
|
12
|
+
|
13
|
+
</style>
|
14
|
+
<script type="text/javascript">
|
15
|
+
window.onload = function() {
|
16
|
+
settings = {
|
17
|
+
tl: { radius: 10 },
|
18
|
+
tr: { radius: 10 },
|
19
|
+
bl: { radius: 10 },
|
20
|
+
br: { radius: 10 },
|
21
|
+
antiAlias: true,
|
22
|
+
autoPad: true,
|
23
|
+
validTags: ["div"]
|
24
|
+
}
|
25
|
+
var versionBox = new curvyCorners(settings, document.getElementById("version"));
|
26
|
+
versionBox.applyCornersToAll();
|
27
|
+
}
|
28
|
+
</script>
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="main">
|
32
|
+
|
33
|
+
<h1><%= title %></h1>
|
34
|
+
<div class="sidebar">
|
35
|
+
<div id="version" class="clickable" onclick='document.location = "<%= download %>"; return false'>
|
36
|
+
<p>Get Version</p>
|
37
|
+
<a href="<%= download %>" class="numbers"><%= version %></a>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
<%= body %>
|
41
|
+
<p class="coda">
|
42
|
+
<a href="http://fabiokung.com">Fabio Kung</a>, <%= modified.pretty %><br>
|
43
|
+
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
44
|
+
</p>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<script type="text/javascript">
|
48
|
+
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
49
|
+
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
50
|
+
</script>
|
51
|
+
<script type="text/javascript">
|
52
|
+
var pageTracker = _gat._getTracker("UA-6490422-1");
|
53
|
+
pageTracker._trackPageview();
|
54
|
+
</script>
|
55
|
+
</body>
|
56
|
+
</html>
|
metadata
CHANGED
@@ -1,28 +1,56 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
|
2
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
3
|
+
requirements:
|
4
|
+
- - '>='
|
5
|
+
- !ruby/object:Gem::Version
|
6
|
+
version: "0"
|
7
|
+
version:
|
8
|
+
email:
|
9
|
+
- fabio.kung@gmail.com
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
summary: Jetty Rails aims to run Ruby on Rails and Merb applications with the Jetty
|
13
|
+
Container, leveraging the power of JRuby and jruby-rack
|
14
|
+
post_install_message: PostInstall.txt
|
15
|
+
extra_rdoc_files:
|
16
|
+
- History.txt
|
17
|
+
- Licenses.txt
|
18
|
+
- Manifest.txt
|
19
|
+
- PostInstall.txt
|
20
|
+
- README.rdoc
|
21
|
+
- TODO.txt
|
22
|
+
- website/index.txt
|
23
|
+
homepage: http://jetty-rails.rubyforge.net
|
24
|
+
signing_key:
|
25
|
+
name: jetty-rails
|
26
|
+
rdoc_options:
|
27
|
+
- --main
|
28
|
+
- README.rdoc
|
29
|
+
rubyforge_project: jetty-rails
|
30
|
+
autorequire:
|
31
|
+
licenses: []
|
3
32
|
|
4
|
-
homepage: http://jetty-rails.rubyforge.org
|
5
33
|
executables:
|
6
34
|
- jetty_merb
|
7
35
|
- jetty_rails
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
36
|
+
description: |-
|
37
|
+
Jetty Rails aims to run Ruby on Rails and Merb applications with the Jetty Container, leveraging the power of JRuby and jruby-rack.
|
38
|
+
|
39
|
+
{Jetty}[http://jetty.mortbay.com/jetty/] is an excellent Java Web Server, being and at the same time extremely lightweight. This makes jetty-rails a good alternative for JRuby on Rails or Merb development and deployment.
|
40
|
+
|
41
|
+
The project has born from my own needs ({read more}[http://fabiokung.com/2008/05/14/jetty-rails-gem-simple-jruby-on-rails-development-with-servlet-containers/]). I needed to run {JForum}[http://jforum.net] in the same context of my JRuby on Rails application. I had also to integrate HttpSessions (avoiding single sign on) and use ServletContext in-memory cache store.
|
42
|
+
specification_version: 3
|
43
|
+
default_executable:
|
14
44
|
files:
|
15
45
|
- History.txt
|
16
46
|
- Licenses.txt
|
17
47
|
- Manifest.txt
|
18
48
|
- PostInstall.txt
|
19
|
-
- README.
|
49
|
+
- README.rdoc
|
20
50
|
- Rakefile
|
21
51
|
- TODO.txt
|
22
52
|
- bin/jetty_merb
|
23
53
|
- bin/jetty_rails
|
24
|
-
- config/hoe.rb
|
25
|
-
- config/requirements.rb
|
26
54
|
- jetty-libs/core-3.1.1.jar
|
27
55
|
- jetty-libs/jetty-6.1.14.jar
|
28
56
|
- jetty-libs/jetty-plus-6.1.14.jar
|
@@ -42,14 +70,12 @@ files:
|
|
42
70
|
- lib/jetty_rails/jars.rb
|
43
71
|
- lib/jetty_rails/runner.rb
|
44
72
|
- lib/jetty_rails/server.rb
|
45
|
-
- lib/jetty_rails/version.rb
|
46
73
|
- lib/jetty_rails/warbler_reader.rb
|
47
|
-
- lib/jruby-rack-0.9.
|
74
|
+
- lib/jruby-rack-0.9.5-SNAPSHOT.jar
|
48
75
|
- script/console
|
49
76
|
- script/destroy
|
50
77
|
- script/generate
|
51
78
|
- script/txt2html
|
52
|
-
- setup.rb
|
53
79
|
- spec/config.yml
|
54
80
|
- spec/jetty_merb_spec.rb
|
55
81
|
- spec/jetty_rails/config_file_spec.rb
|
@@ -60,78 +86,63 @@ files:
|
|
60
86
|
- spec/jetty_rails_spec.rb
|
61
87
|
- spec/spec.opts
|
62
88
|
- spec/spec_helper.rb
|
63
|
-
- tasks/
|
64
|
-
- tasks/environment.rake
|
89
|
+
- tasks/jruby.rake
|
65
90
|
- tasks/rspec.rake
|
66
|
-
-
|
67
|
-
|
68
|
-
|
69
|
-
-
|
70
|
-
- README.txt
|
71
|
-
signing_key:
|
72
|
-
cert_chain: []
|
73
|
-
|
74
|
-
name: jetty-rails
|
75
|
-
has_rdoc: true
|
76
|
-
platform: ruby
|
77
|
-
summary: jetty server for rails applications
|
78
|
-
default_executable:
|
79
|
-
bindir: bin
|
91
|
+
- website/index.txt
|
92
|
+
- website/javascripts/rounded_corners_lite.inc.js
|
93
|
+
- website/stylesheets/screen.css
|
94
|
+
- website/template.html.erb
|
80
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
|
-
version:
|
82
96
|
requirements:
|
83
97
|
- - '>='
|
84
98
|
- !ruby/object:Gem::Version
|
85
99
|
version: "0"
|
86
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
87
100
|
version:
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
101
|
+
extensions: []
|
102
|
+
|
103
|
+
rubygems_version: 1.3.3
|
104
|
+
requirements: []
|
105
|
+
|
106
|
+
authors:
|
107
|
+
- Fabio Kung
|
108
|
+
date: 2009-07-08 03:00:00 +00:00
|
109
|
+
platform: ruby
|
110
|
+
test_files: []
|
111
|
+
|
112
|
+
version: !ruby/object:Gem::Version
|
113
|
+
version: 0.8.1
|
92
114
|
require_paths:
|
93
115
|
- lib
|
94
|
-
specification_version: 2
|
95
|
-
test_files:
|
96
|
-
- spec/jetty_merb_spec.rb
|
97
|
-
- spec/jetty_rails_spec.rb
|
98
|
-
- spec/jetty_rails/config_file_spec.rb
|
99
|
-
- spec/jetty_rails/runner_spec.rb
|
100
|
-
- spec/jetty_rails/handler/delegate_on_errors_handler_spec.rb
|
101
116
|
dependencies:
|
102
117
|
- !ruby/object:Gem::Dependency
|
118
|
+
version_requirements: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - '>='
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: 2.0.2
|
123
|
+
version:
|
103
124
|
type: :runtime
|
104
|
-
name: activesupport
|
105
125
|
version_requirement:
|
126
|
+
name: activesupport
|
127
|
+
- !ruby/object:Gem::Dependency
|
106
128
|
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
version:
|
108
129
|
requirements:
|
109
130
|
- - '>='
|
110
131
|
- !ruby/object:Gem::Version
|
111
|
-
version: 1.
|
112
|
-
|
132
|
+
version: 1.4.1
|
133
|
+
version:
|
113
134
|
type: :development
|
114
|
-
name: hoe
|
115
135
|
version_requirement:
|
136
|
+
name: newgem
|
137
|
+
- !ruby/object:Gem::Dependency
|
116
138
|
version_requirements: !ruby/object:Gem::Requirement
|
117
|
-
version:
|
118
139
|
requirements:
|
119
140
|
- - '>='
|
120
141
|
- !ruby/object:Gem::Version
|
121
|
-
version: 1.8.
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
- History.txt
|
129
|
-
- Licenses.txt
|
130
|
-
- Manifest.txt
|
131
|
-
- PostInstall.txt
|
132
|
-
- README.txt
|
133
|
-
- TODO.txt
|
134
|
-
requirements: []
|
135
|
-
|
136
|
-
rubyforge_project: jetty-rails
|
137
|
-
autorequire:
|
142
|
+
version: 1.8.0
|
143
|
+
version:
|
144
|
+
type: :development
|
145
|
+
version_requirement:
|
146
|
+
name: hoe
|
147
|
+
bindir: bin
|
148
|
+
has_rdoc: true
|
data/config/hoe.rb
DELETED
@@ -1,76 +0,0 @@
|
|
1
|
-
require 'jetty_rails/version'
|
2
|
-
|
3
|
-
AUTHOR = 'Fabio Kung' # can also be an array of Authors
|
4
|
-
EMAIL = "fabio.kung@gmail.com"
|
5
|
-
DESCRIPTION = "jetty server for rails applications"
|
6
|
-
GEM_NAME = 'jetty-rails' # what ppl will type to install your gem
|
7
|
-
RUBYFORGE_PROJECT = 'jetty-rails' # The unix name for your project
|
8
|
-
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
|
9
|
-
DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
|
10
|
-
EXTRA_DEPENDENCIES = [
|
11
|
-
['activesupport', '>= 1.3.1']
|
12
|
-
] # An array of rubygem dependencies [name, version]
|
13
|
-
|
14
|
-
@config_file = "~/.rubyforge/user-config.yml"
|
15
|
-
@config = nil
|
16
|
-
RUBYFORGE_USERNAME = "unknown"
|
17
|
-
def rubyforge_username
|
18
|
-
unless @config
|
19
|
-
begin
|
20
|
-
@config = YAML.load(File.read(File.expand_path(@config_file)))
|
21
|
-
rescue
|
22
|
-
puts <<-EOS
|
23
|
-
ERROR: No rubyforge config file found: #{@config_file}
|
24
|
-
Run 'rubyforge setup' to prepare your env for access to Rubyforge
|
25
|
-
- See http://newgem.rubyforge.org/rubyforge.html for more details
|
26
|
-
EOS
|
27
|
-
exit
|
28
|
-
end
|
29
|
-
end
|
30
|
-
RUBYFORGE_USERNAME.replace @config["username"]
|
31
|
-
end
|
32
|
-
|
33
|
-
|
34
|
-
REV = nil
|
35
|
-
# UNCOMMENT IF REQUIRED:
|
36
|
-
# REV = YAML.load(`svn info`)['Revision']
|
37
|
-
VERS = JettyRails::VERSION::STRING + (REV ? ".#{REV}" : "")
|
38
|
-
RDOC_OPTS = ['--quiet', '--title', 'jetty-rails documentation',
|
39
|
-
"--opname", "index.html",
|
40
|
-
"--line-numbers",
|
41
|
-
"--main", "README",
|
42
|
-
"--exclude", "*.jar",
|
43
|
-
"--inline-source"]
|
44
|
-
|
45
|
-
class Hoe
|
46
|
-
def extra_deps
|
47
|
-
@extra_deps.reject! { |x| Array(x).first == 'hoe' }
|
48
|
-
@extra_deps
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
# Generate all the Rake tasks
|
53
|
-
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
54
|
-
$hoe = Hoe.new(GEM_NAME, VERS) do |p|
|
55
|
-
p.developer(AUTHOR, EMAIL)
|
56
|
-
p.description = DESCRIPTION
|
57
|
-
p.summary = DESCRIPTION
|
58
|
-
p.url = HOMEPATH
|
59
|
-
p.rubyforge_name = RUBYFORGE_PROJECT if RUBYFORGE_PROJECT
|
60
|
-
p.test_globs = ["spec/**/*_spec.rb"]
|
61
|
-
p.clean_globs |= ['**/.*.sw?', '*.gem', '.config', '**/.DS_Store']
|
62
|
-
p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
|
63
|
-
p.extra_deps = EXTRA_DEPENDENCIES
|
64
|
-
p.rdoc_pattern = /^(lib|bin|ext).*[^\.jar]$|txt$/
|
65
|
-
|
66
|
-
# A hash of extra values to set in the gemspec.
|
67
|
-
# p.spec_extras = {
|
68
|
-
# :platform => "java"
|
69
|
-
# }
|
70
|
-
end
|
71
|
-
|
72
|
-
CHANGES = $hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
|
73
|
-
PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
|
74
|
-
$hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
|
75
|
-
$hoe.rsync_args = '-av --delete --ignore-errors'
|
76
|
-
$hoe.spec.post_install_message = File.open(File.dirname(__FILE__) + "/../PostInstall.txt").read rescue ""
|