mongrel_config 0.2
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/COPYING +504 -0
- data/LICENSE +504 -0
- data/README +7 -0
- data/Rakefile +40 -0
- data/lib/mongrel_config/app.rb +159 -0
- data/lib/mongrel_config/app.rb~ +156 -0
- data/lib/mongrel_config/init.rb +58 -0
- data/resources/defaults.yaml +2 -0
- data/resources/images/0170_bubble.png +0 -0
- data/resources/images/0171_new_page.png +0 -0
- data/resources/images/bottom.gif +0 -0
- data/resources/images/bottom_orig.gif +0 -0
- data/resources/images/middle.jpg +0 -0
- data/resources/images/top.jpg +0 -0
- data/resources/images/topbar.jpg +0 -0
- data/resources/index.html +71 -0
- data/resources/style.css +165 -0
- data/test/test_config.rb +7 -0
- data/tools/rakehelp.rb +105 -0
- metadata +91 -0
data/resources/style.css
ADDED
@@ -0,0 +1,165 @@
|
|
1
|
+
/* CSS Document */
|
2
|
+
body {
|
3
|
+
margin: 25px auto 0px auto;
|
4
|
+
background-image: url(/config/resources/images/top.jpg);
|
5
|
+
background-repeat: repeat-x;
|
6
|
+
background-position: top;
|
7
|
+
font-family: "Lucida Grande", Verdana, Halvetica, sans-serif;
|
8
|
+
text-align: center;
|
9
|
+
|
10
|
+
}
|
11
|
+
a:hover {
|
12
|
+
color: #990000;
|
13
|
+
text-decoration: underline;
|
14
|
+
}
|
15
|
+
a {
|
16
|
+
color: #990000;
|
17
|
+
text-decoration: none;
|
18
|
+
}
|
19
|
+
#container {
|
20
|
+
font-weight: normal;
|
21
|
+
margin: 0px auto 0px auto;
|
22
|
+
width: 686px;
|
23
|
+
text-align: center;
|
24
|
+
|
25
|
+
}
|
26
|
+
#main {
|
27
|
+
padding-top: 50px;
|
28
|
+
padding-bottom: 50px;
|
29
|
+
border: 1px solid #CC0000;
|
30
|
+
height: auto;
|
31
|
+
}
|
32
|
+
#title {
|
33
|
+
font-family: Georgia, "Times New Roman", Times, serif;
|
34
|
+
font-size: 36px;
|
35
|
+
color: #FFF;
|
36
|
+
font-weight: normal;
|
37
|
+
font-size:36px;
|
38
|
+
text-align: center;
|
39
|
+
color: #FFFFFF;
|
40
|
+
padding-top: 28px;
|
41
|
+
}
|
42
|
+
#top {
|
43
|
+
margin: 0px auto;
|
44
|
+
width: 686px;
|
45
|
+
height: 96px;
|
46
|
+
background: url(/config/resources/images/topbar.jpg) no-repeat
|
47
|
+
}
|
48
|
+
#middle {
|
49
|
+
background: url(/config/resources/images/middle.jpg) no-repeat;
|
50
|
+
background-repeat: repeat-y;
|
51
|
+
margin: -2px auto 0px auto;
|
52
|
+
}
|
53
|
+
#bottom {
|
54
|
+
margin: -100px auto 0px;
|
55
|
+
width: 686px;
|
56
|
+
height: 106px;
|
57
|
+
background: url(/config/resources/images/bottom.gif) no-repeat;
|
58
|
+
clear: center;
|
59
|
+
|
60
|
+
}
|
61
|
+
#nav {
|
62
|
+
width: 455px;
|
63
|
+
padding: 20px 30px 10px;
|
64
|
+
margin: 0px auto;
|
65
|
+
color: #999;
|
66
|
+
font-weight: normal;
|
67
|
+
font-size: 11px;
|
68
|
+
text-align: center;
|
69
|
+
|
70
|
+
}
|
71
|
+
#nav li {
|
72
|
+
list-style: none;
|
73
|
+
display: inline;
|
74
|
+
margin-right: 20px;
|
75
|
+
}
|
76
|
+
#nav a {
|
77
|
+
font-size: 10px;
|
78
|
+
font-weight: bold;
|
79
|
+
color: #999;
|
80
|
+
text-decoration: none;
|
81
|
+
}
|
82
|
+
#nav a:hover {
|
83
|
+
color: #990000;
|
84
|
+
text-decoration: underline;
|
85
|
+
}
|
86
|
+
#content {
|
87
|
+
padding: 0px 68px 1px 68px;
|
88
|
+
margin: 0px auto 0px auto;
|
89
|
+
text-align: left;
|
90
|
+
height: 370px;
|
91
|
+
}
|
92
|
+
#side {
|
93
|
+
margin: 30px auto 0px auto;
|
94
|
+
width: 110px;
|
95
|
+
border-left: 1px dotted #C4D0D7;
|
96
|
+
padding: 0px 10px 0px 20px;
|
97
|
+
color: #999;
|
98
|
+
float: right;
|
99
|
+
font-size: 70%;
|
100
|
+
}
|
101
|
+
#content h2 {
|
102
|
+
color: #990000;
|
103
|
+
font-weight: bolder;
|
104
|
+
font-size: 14px;
|
105
|
+
padding: 0px 135px 0px 10px;
|
106
|
+
}
|
107
|
+
#content h2 a:hover{
|
108
|
+
color: #990000;
|
109
|
+
text-decoration: underline;
|
110
|
+
}
|
111
|
+
#content h2 a{
|
112
|
+
text-decoration: none;
|
113
|
+
}
|
114
|
+
#content h3 {
|
115
|
+
color: #000000;
|
116
|
+
font-size: 10px;
|
117
|
+
letter-spacing: .3em;
|
118
|
+
padding: 0px 135px 0px 10px;
|
119
|
+
text-decoration: underline;
|
120
|
+
|
121
|
+
}
|
122
|
+
#content p {
|
123
|
+
padding: 0px 170px 0px 10px;
|
124
|
+
font-size: 70%;
|
125
|
+
line-height: 1.7em;
|
126
|
+
margin: 0px 0px 1.7em 0px;
|
127
|
+
vertical-align: top;
|
128
|
+
color: #666666;
|
129
|
+
|
130
|
+
}
|
131
|
+
#footertext {
|
132
|
+
font-size: 10px;
|
133
|
+
font-weight: bold;
|
134
|
+
margin: 20px auto 0px;
|
135
|
+
height: 20px;
|
136
|
+
width: 686px;
|
137
|
+
height: 31px;
|
138
|
+
text-align: center;
|
139
|
+
color: #888;
|
140
|
+
}
|
141
|
+
#footertext a {
|
142
|
+
font-size: 10px;
|
143
|
+
font-weight: bold;
|
144
|
+
color: #999;
|
145
|
+
text-decoration: none;
|
146
|
+
}
|
147
|
+
#footertext a:hover {
|
148
|
+
text-decoration: underline;
|
149
|
+
}
|
150
|
+
|
151
|
+
table {
|
152
|
+
border-collapse: collapsed;
|
153
|
+
}
|
154
|
+
|
155
|
+
td {
|
156
|
+
font-size: 11px;
|
157
|
+
padding: 5px;
|
158
|
+
}
|
159
|
+
|
160
|
+
th {
|
161
|
+
border: 1px #990000 solid;
|
162
|
+
font-size: 12px;
|
163
|
+
background-color: #955;
|
164
|
+
color: #eeeeee;
|
165
|
+
}
|
data/test/test_config.rb
ADDED
data/tools/rakehelp.rb
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
|
2
|
+
def make(makedir)
|
3
|
+
Dir.chdir(makedir) do
|
4
|
+
sh(PLATFORM =~ /win32/ ? 'nmake' : 'make')
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
|
9
|
+
def extconf(dir)
|
10
|
+
Dir.chdir(dir) do ruby "extconf.rb" end
|
11
|
+
end
|
12
|
+
|
13
|
+
|
14
|
+
def setup_tests
|
15
|
+
Rake::TestTask.new do |t|
|
16
|
+
t.libs << "test"
|
17
|
+
t.test_files = FileList['test/test*.rb']
|
18
|
+
t.verbose = true
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
|
23
|
+
def setup_clean otherfiles
|
24
|
+
files = ['build/*', '**/*.o', '**/*.so', '**/*.a', 'lib/*-*', '**/*.log'] + otherfiles
|
25
|
+
CLEAN.include(files)
|
26
|
+
end
|
27
|
+
|
28
|
+
|
29
|
+
def setup_rdoc files
|
30
|
+
Rake::RDocTask.new do |rdoc|
|
31
|
+
rdoc.rdoc_dir = 'doc/rdoc'
|
32
|
+
rdoc.options << '--line-numbers'
|
33
|
+
rdoc.rdoc_files.add(files)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
|
38
|
+
def setup_extension(dir, extension)
|
39
|
+
ext = "ext/#{dir}"
|
40
|
+
ext_so = "#{ext}/#{extension}.#{Config::CONFIG['DLEXT']}"
|
41
|
+
ext_files = FileList[
|
42
|
+
"#{ext}/*.c",
|
43
|
+
"#{ext}/*.h",
|
44
|
+
"#{ext}/extconf.rb",
|
45
|
+
"#{ext}/Makefile",
|
46
|
+
"lib"
|
47
|
+
]
|
48
|
+
|
49
|
+
task "lib" do
|
50
|
+
directory "lib"
|
51
|
+
end
|
52
|
+
|
53
|
+
desc "Builds just the #{extension} extension"
|
54
|
+
task extension.to_sym => ["#{ext}/Makefile", ext_so ]
|
55
|
+
|
56
|
+
file "#{ext}/Makefile" => ["#{ext}/extconf.rb"] do
|
57
|
+
extconf "#{ext}"
|
58
|
+
end
|
59
|
+
|
60
|
+
file ext_so => ext_files do
|
61
|
+
make "#{ext}"
|
62
|
+
cp ext_so, "lib"
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
|
67
|
+
def base_gem_spec(pkg_name, pkg_version)
|
68
|
+
pkg_version = pkg_version
|
69
|
+
pkg_name = pkg_name
|
70
|
+
pkg_file_name = "#{pkg_name}-#{pkg_version}"
|
71
|
+
Gem::Specification.new do |s|
|
72
|
+
s.name = pkg_name
|
73
|
+
s.version = pkg_version
|
74
|
+
s.platform = Gem::Platform::RUBY
|
75
|
+
s.has_rdoc = true
|
76
|
+
s.extra_rdoc_files = [ "README" ]
|
77
|
+
|
78
|
+
s.files = %w(COPYING LICENSE README Rakefile) +
|
79
|
+
Dir.glob("{bin,doc/rdoc,test,lib}/**/*") +
|
80
|
+
Dir.glob("ext/**/*.{h,c,rb}") +
|
81
|
+
Dir.glob("examples/**/*.rb") +
|
82
|
+
Dir.glob("tools/*.rb")
|
83
|
+
|
84
|
+
s.require_path = "lib"
|
85
|
+
s.extensions = FileList["ext/**/extconf.rb"].to_a
|
86
|
+
s.bindir = "bin"
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
def setup_gem(pkg_name, pkg_version)
|
91
|
+
spec = base_gem_spec(pkg_name, pkg_version)
|
92
|
+
yield spec if block_given?
|
93
|
+
|
94
|
+
Rake::GemPackageTask.new(spec) do |p|
|
95
|
+
p.gem_spec = spec
|
96
|
+
p.need_tar = true
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
def setup_win32_gem(pkg_name, pkg_version)
|
101
|
+
spec = base_gem_spec(pkg_name, pkg_version)
|
102
|
+
yield spec if block_given?
|
103
|
+
|
104
|
+
Gem::Builder.new(spec).build
|
105
|
+
end
|
metadata
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.8.11
|
3
|
+
specification_version: 1
|
4
|
+
name: mongrel_config
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: "0.2"
|
7
|
+
date: 2006-03-12 00:00:00 -05:00
|
8
|
+
summary: Mongrel plugin that gives you web based config tool using Camping
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email:
|
12
|
+
homepage:
|
13
|
+
rubyforge_project:
|
14
|
+
description: Mongrel plugin that gives you web based config tool using Camping
|
15
|
+
autorequire:
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: true
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
24
|
+
version:
|
25
|
+
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
28
|
+
authors:
|
29
|
+
- Zed A. Shaw
|
30
|
+
files:
|
31
|
+
- COPYING
|
32
|
+
- LICENSE
|
33
|
+
- README
|
34
|
+
- Rakefile
|
35
|
+
- test/test_config.rb
|
36
|
+
- lib/mongrel_config
|
37
|
+
- lib/mongrel_config/app.rb
|
38
|
+
- lib/mongrel_config/app.rb~
|
39
|
+
- lib/mongrel_config/init.rb
|
40
|
+
- tools/rakehelp.rb
|
41
|
+
- resources/defaults.yaml
|
42
|
+
- resources/images
|
43
|
+
- resources/index.html
|
44
|
+
- resources/style.css
|
45
|
+
- resources/images/0170_bubble.png
|
46
|
+
- resources/images/0171_new_page.png
|
47
|
+
- resources/images/bottom.gif
|
48
|
+
- resources/images/bottom_orig.gif
|
49
|
+
- resources/images/middle.jpg
|
50
|
+
- resources/images/top.jpg
|
51
|
+
- resources/images/topbar.jpg
|
52
|
+
test_files:
|
53
|
+
- test/test_config.rb
|
54
|
+
rdoc_options: []
|
55
|
+
|
56
|
+
extra_rdoc_files:
|
57
|
+
- README
|
58
|
+
executables: []
|
59
|
+
|
60
|
+
extensions: []
|
61
|
+
|
62
|
+
requirements: []
|
63
|
+
|
64
|
+
dependencies:
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: mongrel
|
67
|
+
version_requirement:
|
68
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 0.3.10
|
73
|
+
version:
|
74
|
+
- !ruby/object:Gem::Dependency
|
75
|
+
name: gem_plugin
|
76
|
+
version_requirement:
|
77
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ">="
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: "0.1"
|
82
|
+
version:
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: camping
|
85
|
+
version_requirement:
|
86
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: "1.3"
|
91
|
+
version:
|