nitro 0.30.0 → 0.31.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ProjectInfo +6 -6
- data/bin/nitro +100 -7
- data/doc/RELEASES +18 -0
- data/lib/glue/sweeper.rb +9 -5
- data/lib/nitro.rb +13 -13
- data/lib/nitro/adapter/console.rb +7 -0
- data/lib/nitro/adapter/mongrel.rb +34 -71
- data/lib/nitro/adapter/script.rb +71 -0
- data/lib/nitro/adapter/webrick.rb +0 -2
- data/lib/nitro/caching.rb +0 -1
- data/lib/nitro/caching/fragments.rb +2 -3
- data/lib/nitro/caching/output.rb +3 -4
- data/lib/nitro/cgi.rb +14 -0
- data/lib/nitro/cgi/request.rb +10 -9
- data/lib/nitro/cgi/sendfile.rb +45 -0
- data/lib/nitro/compiler.rb +1 -1
- data/lib/nitro/compiler/errors.rb +3 -3
- data/lib/nitro/context.rb +16 -1
- data/lib/nitro/controller.rb +60 -5
- data/lib/nitro/dispatcher.rb +2 -1
- data/lib/nitro/helper.rb +0 -2
- data/lib/nitro/helper/form/builder.rb +5 -1
- data/lib/nitro/helper/javascript.rb +1 -1
- data/lib/nitro/helper/pager.rb +19 -10
- data/lib/nitro/helper/table.rb +28 -3
- data/lib/nitro/helper/xhtml.rb +4 -3
- data/lib/nitro/part.rb +57 -2
- data/lib/nitro/render.rb +67 -28
- data/lib/nitro/router.rb +1 -0
- data/lib/nitro/scaffold.rb +141 -0
- data/lib/nitro/scaffolding.rb +17 -17
- data/lib/nitro/server/runner.rb +2 -9
- data/lib/nitro/session.rb +13 -5
- data/lib/nitro/test/testcase.rb +2 -0
- data/proto/run.rb +3 -1
- data/src/part/admin/controller.rb +2 -1
- data/src/part/admin/template/index.xhtml +2 -2
- data/test/nitro/tc_element.rb +13 -11
- data/test/nitro/tc_render.rb +1 -2
- metadata +186 -182
- data/bin/nitrogen +0 -5
- data/lib/nitro/helper/wee.rb +0 -57
@@ -0,0 +1,141 @@
|
|
1
|
+
module Nitro
|
2
|
+
|
3
|
+
# Scaffolding is one facet of Nitro's Rapid Application
|
4
|
+
# Develpoment (RAD) features. The scaffolder automatically
|
5
|
+
# generates common code for managed object and their
|
6
|
+
# controllers.
|
7
|
+
|
8
|
+
module Scaffold
|
9
|
+
|
10
|
+
# Automatically enchant all entities?
|
11
|
+
|
12
|
+
setting :enchant_all_entities, :default => true, :doc => 'Automatically enchant all entities?'
|
13
|
+
|
14
|
+
module ClassMethods
|
15
|
+
|
16
|
+
# 'Enchant' a class (typically a managed class). A
|
17
|
+
# collection of useful methods are magically added to the
|
18
|
+
# class and/or the class instances.
|
19
|
+
#
|
20
|
+
# to_s
|
21
|
+
# to_href
|
22
|
+
# to_link
|
23
|
+
# to_edit_href
|
24
|
+
# to_admin_href
|
25
|
+
#
|
26
|
+
#--
|
27
|
+
# to_xxx is used instead of xxx in an attempt to avoid
|
28
|
+
# colisions with user defined methods.
|
29
|
+
#++
|
30
|
+
|
31
|
+
def enchant *classes
|
32
|
+
for c in classes
|
33
|
+
enchant_class c
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
#--
|
38
|
+
# Actually enchant the given class. Override this method
|
39
|
+
# to customize for your application. The string calculation
|
40
|
+
# code is deliberatly dynamic to work with Ruby's OO
|
41
|
+
# features.
|
42
|
+
#++
|
43
|
+
|
44
|
+
def enchant_class klass
|
45
|
+
# to_s
|
46
|
+
|
47
|
+
if klass.respond_to? :title
|
48
|
+
define_instance_method klass, :to_s, %{ title }, force = true
|
49
|
+
elsif klass.respond_to? :name
|
50
|
+
define_instance_method klass, :to_s, %{ name }, force = true
|
51
|
+
end
|
52
|
+
|
53
|
+
# to_href
|
54
|
+
# ex: blog/articles/23
|
55
|
+
|
56
|
+
define_instance_method klass, :to_href, %{
|
57
|
+
"\#{self.class.ann.self.controller.mount_path}/\#{self.class.name.underscore.pluralize}/\#{oid}"
|
58
|
+
}
|
59
|
+
|
60
|
+
# to_link
|
61
|
+
# ex: <a href="blog/articles/23">The article's title</a>
|
62
|
+
|
63
|
+
define_instance_method klass, :to_link, %{
|
64
|
+
%|<a href="\#{to_href}">\#{to_s}</a>|
|
65
|
+
}
|
66
|
+
|
67
|
+
# to_edit_href
|
68
|
+
# ex: admin/articles/edit/23
|
69
|
+
|
70
|
+
define_instance_method klass, :to_admin_href, %{
|
71
|
+
"\#{AdminController.mount_path}/\#{self.class.name.underscore.pluralize}/edit/\#{oid}"
|
72
|
+
}
|
73
|
+
|
74
|
+
if defined? AdminController
|
75
|
+
# to_admin_href
|
76
|
+
# ex: admin/articles/list
|
77
|
+
|
78
|
+
define_instance_method klass, :to_admin_href, %{
|
79
|
+
"\#{AdminController.mount_path}/\#{self.class.name.underscore.pluralize}/list"
|
80
|
+
}
|
81
|
+
|
82
|
+
# to_admin_href
|
83
|
+
# ex: admin/articles/list
|
84
|
+
|
85
|
+
define_class_method klass, :to_admin_href, %{
|
86
|
+
"\#{AdminController.mount_path}/\#{self.name.underscore.pluralize}/list"
|
87
|
+
}
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
private
|
92
|
+
|
93
|
+
#--
|
94
|
+
# This helper defines an instance method for the
|
95
|
+
# scaffolded class. The method is only defined if the klass
|
96
|
+
# does not already respond to it.
|
97
|
+
#++
|
98
|
+
|
99
|
+
def define_instance_method klass, meth, body, force = false
|
100
|
+
unless force or klass.instance_methods.include? meth.to_s
|
101
|
+
klass.module_eval %{
|
102
|
+
def #{meth}
|
103
|
+
#{body}
|
104
|
+
end
|
105
|
+
}
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
#--
|
110
|
+
# This helper defines an class method for the
|
111
|
+
# scaffolded class. The method is only defined if the klass
|
112
|
+
# does not already respond to it.
|
113
|
+
#++
|
114
|
+
|
115
|
+
def define_class_method klass, meth, body
|
116
|
+
unless klass.respond_to? meth.to_s
|
117
|
+
klass.module_eval %{
|
118
|
+
def self.#{meth}
|
119
|
+
#{body}
|
120
|
+
end
|
121
|
+
}
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
end
|
126
|
+
|
127
|
+
def self.included base
|
128
|
+
base.extend ClassMethods
|
129
|
+
end
|
130
|
+
|
131
|
+
# Make the Scaffold module also work as a singleton, ie:
|
132
|
+
#
|
133
|
+
# Scaffold.enchant Article, Category
|
134
|
+
|
135
|
+
extend ClassMethods
|
136
|
+
|
137
|
+
end
|
138
|
+
|
139
|
+
end
|
140
|
+
|
141
|
+
# * George Moschovitis <gm@navel.gr>
|
data/lib/nitro/scaffolding.rb
CHANGED
@@ -160,28 +160,28 @@ module Scaffolding
|
|
160
160
|
|
161
161
|
def scaffold_controller
|
162
162
|
define_controller_action 'index', %{
|
163
|
-
#{
|
163
|
+
#{Aspects.gen_advice_code(:scaffold_index, @controller.advices, :pre)}
|
164
164
|
@list, @pager = paginate(@klass, :per_page => Scaffolding.per_page)
|
165
165
|
}
|
166
166
|
|
167
167
|
define_controller_action 'list', %{
|
168
|
-
#{
|
168
|
+
#{Aspects.gen_advice_code(:scaffold_list, @controller.advices, :pre)}
|
169
169
|
@list, @pager = paginate(@klass, :per_page => Scaffolding.per_page)
|
170
170
|
}
|
171
171
|
|
172
172
|
define_controller_action 'view(oid)', %{
|
173
|
-
#{
|
173
|
+
#{Aspects.gen_advice_code(:scaffold_view, @controller.advices, :pre)}
|
174
174
|
@obj = @klass[oid]
|
175
175
|
}
|
176
176
|
|
177
177
|
define_controller_action 'new(all = false)', %{
|
178
|
-
#{
|
178
|
+
#{Aspects.gen_advice_code(:scaffold_new, @controller.advices, :pre)}
|
179
179
|
@obj = @klass.new
|
180
180
|
@all = all
|
181
181
|
}
|
182
182
|
|
183
183
|
define_controller_action 'edit(oid = nil, all = false)', %{
|
184
|
-
#{
|
184
|
+
#{Aspects.gen_advice_code(:scaffold_edit, @controller.advices, :pre)}
|
185
185
|
@obj = @klass[oid]
|
186
186
|
@all = all
|
187
187
|
}
|
@@ -195,38 +195,38 @@ module Scaffolding
|
|
195
195
|
else
|
196
196
|
obj = request.fill(@klass.create, :assign_relations => true, :preprocess => true)
|
197
197
|
end
|
198
|
-
#{
|
198
|
+
#{Aspects.gen_advice_code(:scaffold_save, @controller.advices, :pre)}
|
199
199
|
unless obj.valid?
|
200
200
|
flash[:ERRORS] = obj.errors
|
201
201
|
redirect_to_referer
|
202
202
|
end
|
203
203
|
obj.save
|
204
204
|
oid = obj.pk
|
205
|
-
#{
|
205
|
+
#{Aspects.gen_advice_code(:scaffold_save, @controller.advices, :post)}
|
206
206
|
redirect '#{action_path(:list)}'
|
207
207
|
}
|
208
208
|
|
209
209
|
define_controller_action 'search(query)', %{
|
210
|
-
#{
|
210
|
+
#{Aspects.gen_advice_code(:scaffold_search, @controller.advices, :pre)}
|
211
211
|
@query = query
|
212
212
|
if @klass.respond_to? :search
|
213
213
|
@list = #@klass.search(query)
|
214
214
|
end
|
215
|
-
#{
|
215
|
+
#{Aspects.gen_advice_code(:scaffold_search, @controller.advices, :post)}
|
216
216
|
}
|
217
217
|
|
218
218
|
define_controller_action 'advanced_search', %{
|
219
|
-
#{
|
219
|
+
#{Aspects.gen_advice_code(:scaffold_search, @controller.advices, :pre)}
|
220
220
|
if request.post?
|
221
221
|
@list = #@klass.query_by_example(request.params)
|
222
222
|
end
|
223
|
-
#{
|
223
|
+
#{Aspects.gen_advice_code(:scaffold_advanced_search, @controller.advices, :post)}
|
224
224
|
}
|
225
225
|
|
226
226
|
define_controller_action 'delete(oid)', %{
|
227
|
-
#{
|
227
|
+
#{Aspects.gen_advice_code(:scaffold_delete, @controller.advices, :pre)}
|
228
228
|
@klass.delete(oid)
|
229
|
-
#{
|
229
|
+
#{Aspects.gen_advice_code(:scaffold_delete, @controller.advices, :post)}
|
230
230
|
redirect_to_referer
|
231
231
|
}
|
232
232
|
|
@@ -235,18 +235,18 @@ module Scaffolding
|
|
235
235
|
for rel in @klass.relations
|
236
236
|
define_controller_action "remove_#{rel.target_singular_name}(oid, rid)", %{
|
237
237
|
obj = @klass[oid]
|
238
|
-
#{
|
238
|
+
#{Aspects.gen_advice_code(:scaffold_remove_relation, @controller.advices, :pre)}
|
239
239
|
rob = #{rel.target_class}[rid]
|
240
240
|
obj.#{rel.name}.remove(rob)
|
241
241
|
#{::Aspects.gen_advice_code(:scaffold_remove_relation, @controller.advices, :post)}
|
242
242
|
redirect_to_referer
|
243
243
|
}
|
244
244
|
define_controller_action "delete_#{rel.target_singular_name}(oid, rid)", %{
|
245
|
-
#{
|
245
|
+
#{Aspects.gen_advice_code(:scaffold_delete_relation, @controller.advices, :pre)}
|
246
246
|
obj = @klass[oid]
|
247
247
|
rob = #{rel.target_class}[rid]
|
248
248
|
obj.#{rel.name}.delete(rob)
|
249
|
-
#{
|
249
|
+
#{Aspects.gen_advice_code(:scaffold_delete_relation, @controller.advices, :post)}
|
250
250
|
redirect_to_referer
|
251
251
|
}
|
252
252
|
end
|
@@ -371,7 +371,7 @@ module Scaffolding
|
|
371
371
|
|
372
372
|
def scaffolding_classes
|
373
373
|
# TODO: maybe make this with a inhertitor?
|
374
|
-
# although inhertited scaffolding might be pointless
|
374
|
+
# although inhertited scaffolding might be pointless.
|
375
375
|
@scaffolding_classes ||= {}
|
376
376
|
end
|
377
377
|
|
data/lib/nitro/server/runner.rb
CHANGED
@@ -295,11 +295,9 @@ class Runner
|
|
295
295
|
CgiAdapter.start(server)
|
296
296
|
|
297
297
|
when 'irb'
|
298
|
+
require 'nitro/adapter/console'
|
298
299
|
$server = server
|
299
|
-
|
300
|
-
when 'acgi_proc'
|
301
|
-
require 'nitro/adapter/acgi'
|
302
|
-
ACGI.start(server)
|
300
|
+
$app = ConsoleAdapter.new(server)
|
303
301
|
|
304
302
|
else
|
305
303
|
invoke_server(server)
|
@@ -373,9 +371,6 @@ class Runner
|
|
373
371
|
require 'nitro/adapter/scgi'
|
374
372
|
SCGI.start(server)
|
375
373
|
|
376
|
-
when :acgi
|
377
|
-
require 'nitro/adapter/acgi'
|
378
|
-
puts "==> Launching ACGI."
|
379
374
|
end
|
380
375
|
|
381
376
|
when :stop
|
@@ -388,8 +383,6 @@ class Runner
|
|
388
383
|
when :apache
|
389
384
|
`apachectl -d #{Dir.pwd} -f conf/apache.conf -k stop`
|
390
385
|
|
391
|
-
when :acgi
|
392
|
-
`public/acgi.cgi stop`
|
393
386
|
end
|
394
387
|
|
395
388
|
end
|
data/lib/nitro/session.rb
CHANGED
@@ -4,9 +4,9 @@ require 'webrick'
|
|
4
4
|
require 'facets/more/synchash'
|
5
5
|
require 'facets/more/times'
|
6
6
|
require 'facets/more/expirable'
|
7
|
+
require 'facets/core/class/cattr'
|
7
8
|
|
8
9
|
require 'glue'
|
9
|
-
require 'glue/attribute'
|
10
10
|
require 'glue/configuration'
|
11
11
|
|
12
12
|
require 'nitro/cgi/cookie'
|
@@ -55,11 +55,11 @@ class Session < Hash
|
|
55
55
|
|
56
56
|
setting :keepalive, :default => 30.minutes, :doc => 'The session keepalive time'
|
57
57
|
|
58
|
-
# The sessions cache (store).
|
59
|
-
|
60
|
-
cattr_accessor :cache
|
61
|
-
|
62
58
|
class << self
|
59
|
+
|
60
|
+
# The sessions cache (store).
|
61
|
+
|
62
|
+
attr_accessor :cache
|
63
63
|
|
64
64
|
# Set the session cache. The generalized caching system in
|
65
65
|
# Glue is used. The following options are available:
|
@@ -125,6 +125,14 @@ class Session < Hash
|
|
125
125
|
end
|
126
126
|
end
|
127
127
|
alias_method :gc!, :garbage_collect
|
128
|
+
|
129
|
+
# Returns the current session from the context thread local
|
130
|
+
# variable.
|
131
|
+
|
132
|
+
def current
|
133
|
+
Context.current.session
|
134
|
+
end
|
135
|
+
|
128
136
|
end
|
129
137
|
|
130
138
|
# The unique id of this session.
|
data/lib/nitro/test/testcase.rb
CHANGED
data/proto/run.rb
CHANGED
@@ -54,7 +54,9 @@ class Proto
|
|
54
54
|
</li>
|
55
55
|
</ol>
|
56
56
|
|
57
|
-
<p>Have a look at the <b>examples</b
|
57
|
+
<p>Have a look at <b>Spark</b>, <b>Flare</b> and the <b>examples archive</b> available for download at
|
58
|
+
<a href="http://www.rubyforge.org/projects/nitro/files">http://www.rubyforge.org/projects/nitro/files</a>:
|
59
|
+
</p>
|
58
60
|
|
59
61
|
<ol>
|
60
62
|
<li><b>examples/blog</b>: A simple Blog, featuring a nice XSLT based template.</li>
|
@@ -24,7 +24,8 @@ class AdminController < Nitro::Controller
|
|
24
24
|
# default method for controller
|
25
25
|
|
26
26
|
def index
|
27
|
-
@
|
27
|
+
@class_names = self.class.scaffolding_classes.keys.sort { |c1, c2| c1.name <=> c2.name }
|
28
|
+
@classes = self.class.scaffolding_classes
|
28
29
|
@settings = Configuration.settings.sort { |s1, s2| "#{s1.owner}.#{s1.name}" <=> "#{s2.owner}.#{s2.name}" }
|
29
30
|
end
|
30
31
|
|
@@ -11,9 +11,9 @@
|
|
11
11
|
<th colspan="2">Cleanup</th>
|
12
12
|
<th>Properties</th>
|
13
13
|
</tr>
|
14
|
-
<?r for c in @
|
14
|
+
<?r for c in @class_names ?>
|
15
15
|
<tr>
|
16
|
-
<td><a href="#@base/#{
|
16
|
+
<td><a href="#@base/#{@classes[c][:plural_name]}/list">#{c.name}</a></td>
|
17
17
|
<td>#{c.count}</td>
|
18
18
|
<td><a href="delete_all/#{c.name}" onclick="return confirm('Delete all instances?')">delete</a></td>
|
19
19
|
<td><a href="destroy/#{c.name}" onclick="return confirm('Drop the schema?')">destroy</a></td>
|
data/test/nitro/tc_element.rb
CHANGED
@@ -54,21 +54,23 @@ class Page < Nitro::Element
|
|
54
54
|
end
|
55
55
|
end
|
56
56
|
|
57
|
-
class
|
58
|
-
|
59
|
-
|
57
|
+
class Nitro::Element
|
58
|
+
class Box < Nitro::Element
|
59
|
+
def open
|
60
|
+
%|<div style="color: #@color">|
|
61
|
+
end
|
62
|
+
|
63
|
+
def close
|
64
|
+
"</div>"
|
65
|
+
end
|
60
66
|
end
|
61
|
-
|
62
|
-
def close
|
63
|
-
"</div>"
|
64
|
-
end
|
65
|
-
end
|
66
67
|
|
67
|
-
class Bar < Nitro::Element
|
68
|
-
|
69
|
-
|
68
|
+
class Bar < Nitro::Element
|
69
|
+
def render
|
70
|
+
%~
|
70
71
|
This is a great #{content}.
|
71
72
|
~
|
73
|
+
end
|
72
74
|
end
|
73
75
|
end
|
74
76
|
|
data/test/nitro/tc_render.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.
|
2
|
+
rubygems_version: 0.9.0
|
3
3
|
specification_version: 1
|
4
4
|
name: nitro
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.
|
7
|
-
date: 2006-
|
6
|
+
version: 0.31.0
|
7
|
+
date: 2006-07-20 00:00:00 -07:00
|
8
8
|
summary: Everything you need to create Web 2.0 applications with Ruby and Javascript
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
11
|
email: gm@navel.gr
|
12
12
|
homepage: http://www.nitroproject.org
|
13
|
-
rubyforge_project:
|
13
|
+
rubyforge_project:
|
14
14
|
description:
|
15
15
|
autorequire:
|
16
16
|
default_executable:
|
@@ -22,220 +22,224 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
|
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: 0.0.0
|
24
24
|
version:
|
25
|
-
platform:
|
25
|
+
platform: ruby
|
26
26
|
signing_key:
|
27
27
|
cert_chain:
|
28
|
+
post_install_message:
|
28
29
|
authors:
|
29
30
|
- George Moschovitis
|
30
31
|
files:
|
31
|
-
- ProjectInfo
|
32
|
-
- CHANGELOG
|
33
|
-
- INSTALL
|
34
|
-
- README
|
35
32
|
- bin
|
36
33
|
- doc
|
37
34
|
- lib
|
38
35
|
- src
|
39
36
|
- test
|
40
|
-
- setup.rb
|
41
37
|
- proto
|
42
|
-
-
|
43
|
-
- bin/nitro
|
44
|
-
- doc/CHANGELOG.1
|
45
|
-
- doc/AUTHORS
|
46
|
-
- doc/CHANGELOG.2
|
47
|
-
- doc/CHANGELOG.3
|
48
|
-
- doc/LICENSE
|
49
|
-
- doc/MIGRATION
|
50
|
-
- doc/RELEASES
|
51
|
-
- doc/apache.txt
|
52
|
-
- doc/config.txt
|
53
|
-
- doc/faq.txt
|
54
|
-
- doc/lhttpd.txt
|
55
|
-
- lib/nitro
|
38
|
+
- .
|
56
39
|
- lib/glue
|
57
|
-
- lib/nitro
|
58
|
-
- lib/nitro_and_og.rb
|
59
|
-
- lib/nitro/adapter
|
60
|
-
- lib/nitro/caching
|
40
|
+
- lib/nitro
|
61
41
|
- lib/nitro/cgi
|
62
|
-
- lib/nitro/
|
63
|
-
- lib/nitro/compiler
|
64
|
-
- lib/nitro/cgi.rb
|
65
|
-
- lib/nitro/global.rb
|
66
|
-
- lib/nitro/compiler.rb
|
67
|
-
- lib/nitro/context.rb
|
68
|
-
- lib/nitro/controller.rb
|
69
|
-
- lib/nitro/element
|
70
|
-
- lib/nitro/dispatcher.rb
|
71
|
-
- lib/nitro/router.rb
|
72
|
-
- lib/nitro/element.rb
|
73
|
-
- lib/nitro/flash.rb
|
74
|
-
- lib/nitro/render.rb
|
75
|
-
- lib/nitro/server
|
76
|
-
- lib/nitro/part.rb
|
42
|
+
- lib/nitro/test
|
77
43
|
- lib/nitro/service
|
78
|
-
- lib/nitro/server.rb
|
79
44
|
- lib/nitro/session
|
80
|
-
- lib/nitro/
|
81
|
-
- lib/nitro/
|
82
|
-
- lib/nitro/session.rb
|
45
|
+
- lib/nitro/element
|
46
|
+
- lib/nitro/compiler
|
83
47
|
- lib/nitro/helper
|
84
|
-
- lib/nitro/
|
85
|
-
- lib/nitro/
|
86
|
-
- lib/nitro/
|
87
|
-
- lib/nitro/adapter/scgi.rb
|
88
|
-
- lib/nitro/adapter/cgi.rb
|
89
|
-
- lib/nitro/adapter/fastcgi.rb
|
90
|
-
- lib/nitro/adapter/webrick.rb
|
91
|
-
- lib/nitro/adapter/mongrel.rb
|
92
|
-
- lib/nitro/caching/fragments.rb
|
93
|
-
- lib/nitro/caching/actions.rb
|
94
|
-
- lib/nitro/caching/output.rb
|
95
|
-
- lib/nitro/cgi/response.rb
|
96
|
-
- lib/nitro/cgi/cookie.rb
|
97
|
-
- lib/nitro/cgi/http.rb
|
98
|
-
- lib/nitro/cgi/request.rb
|
99
|
-
- lib/nitro/cgi/stream.rb
|
100
|
-
- lib/nitro/cgi/utils.rb
|
101
|
-
- lib/nitro/compiler/xslt.rb
|
102
|
-
- lib/nitro/compiler/css.rb
|
103
|
-
- lib/nitro/compiler/localization.rb
|
104
|
-
- lib/nitro/compiler/elements.rb
|
105
|
-
- lib/nitro/compiler/errors.rb
|
106
|
-
- lib/nitro/compiler/morphing.rb
|
107
|
-
- lib/nitro/compiler/markup.rb
|
108
|
-
- lib/nitro/compiler/squeeze.rb
|
109
|
-
- lib/nitro/compiler/layout.rb
|
110
|
-
- lib/nitro/compiler/include.rb
|
111
|
-
- lib/nitro/compiler/cleanup.rb
|
112
|
-
- lib/nitro/compiler/script.rb
|
113
|
-
- lib/nitro/element/javascript.rb
|
114
|
-
- lib/nitro/server/runner.rb
|
115
|
-
- lib/nitro/server/drb.rb
|
116
|
-
- lib/nitro/service/xmlrpc.rb
|
117
|
-
- lib/nitro/session/file.rb
|
118
|
-
- lib/nitro/session/drb.rb
|
119
|
-
- lib/nitro/session/memcached.rb
|
120
|
-
- lib/nitro/session/memory.rb
|
121
|
-
- lib/nitro/session/og.rb
|
122
|
-
- lib/nitro/test/assertions.rb
|
123
|
-
- lib/nitro/test/context.rb
|
124
|
-
- lib/nitro/test/testcase.rb
|
125
|
-
- lib/nitro/helper/benchmark.rb
|
126
|
-
- lib/nitro/helper/buffer.rb
|
127
|
-
- lib/nitro/helper/debug.rb
|
128
|
-
- lib/nitro/helper/default.rb
|
129
|
-
- lib/nitro/helper/form.rb
|
130
|
-
- lib/nitro/helper/javascript.rb
|
131
|
-
- lib/nitro/helper/pager.rb
|
132
|
-
- lib/nitro/helper/rss.rb
|
133
|
-
- lib/nitro/helper/table.rb
|
134
|
-
- lib/nitro/helper/xhtml.rb
|
135
|
-
- lib/nitro/helper/xml.rb
|
136
|
-
- lib/nitro/helper/wee.rb
|
137
|
-
- lib/nitro/helper/layout.rb
|
48
|
+
- lib/nitro/adapter
|
49
|
+
- lib/nitro/server
|
50
|
+
- lib/nitro/caching
|
138
51
|
- lib/nitro/helper/form
|
139
52
|
- lib/nitro/helper/javascript
|
140
|
-
- lib/nitro/helper/feed.rb
|
141
|
-
- lib/nitro/helper/form/builder.rb
|
142
|
-
- lib/nitro/helper/form/controls.rb
|
143
|
-
- lib/nitro/helper/javascript/morphing.rb
|
144
|
-
- lib/nitro/helper/javascript/dojo.rb
|
145
|
-
- lib/nitro/helper/javascript/scriptaculous.rb
|
146
|
-
- lib/nitro/helper/javascript/prototype.rb
|
147
|
-
- lib/glue/sweeper.rb
|
148
|
-
- lib/glue/webfile.rb
|
149
|
-
- lib/glue/magick.rb
|
150
|
-
- lib/glue/thumbnails.rb
|
151
53
|
- src/part
|
152
54
|
- src/part/admin
|
153
|
-
- src/part/admin.rb
|
154
55
|
- src/part/admin/template
|
155
|
-
- src/part/admin/controller.rb
|
156
|
-
- src/part/admin/skin.rb
|
157
|
-
- src/part/admin/system.css
|
158
|
-
- src/part/admin/template/index.xhtml
|
159
|
-
- src/part/admin/template/denied.xhtml
|
160
56
|
- test/nitro
|
161
57
|
- test/public
|
162
|
-
- test/nitro/adapter
|
163
58
|
- test/nitro/cgi
|
164
59
|
- test/nitro/compiler
|
165
|
-
- test/nitro/tc_controller.rb
|
166
|
-
- test/nitro/tc_caching.rb
|
167
|
-
- test/nitro/tc_cgi.rb
|
168
|
-
- test/nitro/tc_context.rb
|
169
60
|
- test/nitro/helper
|
170
|
-
- test/nitro/
|
171
|
-
- test/nitro/tc_dispatcher.rb
|
172
|
-
- test/nitro/tc_element.rb
|
173
|
-
- test/nitro/tc_flash.rb
|
174
|
-
- test/nitro/tc_render.rb
|
175
|
-
- test/nitro/tc_server.rb
|
176
|
-
- test/nitro/tc_session.rb
|
177
|
-
- test/nitro/tc_helper.rb
|
178
|
-
- test/nitro/tc_router.rb
|
179
|
-
- test/nitro/CONFIG.rb
|
180
|
-
- test/nitro/adapter/raw_post1.bin
|
181
|
-
- test/nitro/adapter/tc_webrick.rb
|
182
|
-
- test/nitro/cgi/tc_cookie.rb
|
183
|
-
- test/nitro/cgi/tc_request.rb
|
184
|
-
- test/nitro/compiler/tc_compiler.rb
|
185
|
-
- test/nitro/compiler/tc_client_morpher.rb
|
186
|
-
- test/nitro/helper/tc_table.rb
|
187
|
-
- test/nitro/helper/tc_pager.rb
|
188
|
-
- test/nitro/helper/tc_rss.rb
|
189
|
-
- test/nitro/helper/tc_xhtml.rb
|
190
|
-
- test/nitro/helper/tc_feed.rb
|
61
|
+
- test/nitro/adapter
|
191
62
|
- test/public/blog
|
192
63
|
- test/public/dummy_mailer
|
193
64
|
- test/public/blog/another
|
194
|
-
- test/public/blog/inc1.xhtml
|
195
|
-
- test/public/blog/inc2.xhtml
|
196
|
-
- test/public/blog/list.xhtml
|
197
65
|
- test/public/blog/another/very_litle
|
198
|
-
-
|
199
|
-
- test/public/dummy_mailer/registration.xhtml
|
66
|
+
- proto/src
|
200
67
|
- proto/conf
|
201
68
|
- proto/public
|
202
69
|
- proto/script
|
203
|
-
- proto/run.rb
|
204
|
-
- proto/src
|
205
|
-
- proto/conf/apache.conf
|
206
|
-
- proto/conf/lhttpd.conf
|
207
|
-
- proto/public/fcgi.rb
|
208
|
-
- proto/public/cgi.rb
|
209
70
|
- proto/public/js
|
210
|
-
- proto/public/error.xhtml
|
211
71
|
- proto/public/media
|
212
72
|
- proto/public/scaffold
|
213
|
-
- proto/
|
214
|
-
- proto/public/
|
215
|
-
- proto/public/js/behaviour.js
|
216
|
-
- proto/public/js/controls.js
|
217
|
-
- proto/public/js/cookies.js
|
218
|
-
- proto/public/js/dragdrop.js
|
219
|
-
- proto/public/js/effects.js
|
220
|
-
- proto/public/js/prototype.js
|
221
|
-
- proto/public/js/scriptaculous.js
|
222
|
-
- proto/public/js/util.js
|
73
|
+
- proto/script/scgi_service
|
74
|
+
- proto/public/scaffold/edit.xhtml
|
223
75
|
- proto/public/js/slider.js
|
224
|
-
-
|
76
|
+
- test/nitro/CONFIG.rb
|
77
|
+
- lib/nitro/test/context.rb
|
78
|
+
- src/part/admin/controller.rb
|
79
|
+
- test/nitro/tc_controller.rb
|
80
|
+
- lib/nitro/session/og.rb
|
81
|
+
- lib/nitro/helper/javascript/morphing.rb
|
82
|
+
- doc/config.txt
|
83
|
+
- src/part/admin.rb
|
84
|
+
- test/nitro/helper/tc_rss.rb
|
85
|
+
- README
|
86
|
+
- test/nitro/tc_render.rb
|
87
|
+
- lib/nitro/compiler/errors.rb
|
88
|
+
- doc/faq.txt
|
89
|
+
- proto/public/scaffold/list.xhtml
|
90
|
+
- test/nitro/tc_context.rb
|
91
|
+
- lib/nitro/context.rb
|
92
|
+
- lib/nitro/service.rb
|
93
|
+
- lib/nitro/part.rb
|
94
|
+
- lib/nitro/adapter/mongrel.rb
|
95
|
+
- lib/nitro/adapter/console.rb
|
96
|
+
- proto/script/runner
|
97
|
+
- proto/public/js/behaviour.js
|
98
|
+
- proto/public/robots.txt
|
99
|
+
- bin/nitro
|
100
|
+
- lib/nitro/helper/xhtml.rb
|
101
|
+
- lib/nitro/helper/buffer.rb
|
102
|
+
- doc/CHANGELOG.1
|
103
|
+
- proto/script/benchmark
|
104
|
+
- test/nitro/tc_caching.rb
|
105
|
+
- lib/nitro/helper/benchmark.rb
|
106
|
+
- lib/nitro/render.rb
|
107
|
+
- CHANGELOG
|
108
|
+
- doc/CHANGELOG.2
|
109
|
+
- lib/nitro/helper/xml.rb
|
225
110
|
- proto/public/media/nitro.png
|
111
|
+
- proto/public/error.xhtml
|
112
|
+
- lib/nitro/compiler/css.rb
|
113
|
+
- lib/nitro/cgi/utils.rb
|
114
|
+
- doc/CHANGELOG.3
|
115
|
+
- proto/conf/apache.conf
|
116
|
+
- lib/nitro/compiler/cleanup.rb
|
226
117
|
- proto/public/scaffold/index.xhtml
|
227
|
-
- proto/public/scaffold/edit.xhtml
|
228
|
-
- proto/public/scaffold/form.xhtml
|
229
|
-
- proto/public/scaffold/list.xhtml
|
230
|
-
- proto/public/scaffold/new.xhtml
|
231
|
-
- proto/public/scaffold/view.xhtml
|
232
118
|
- proto/public/scaffold/search.xhtml
|
119
|
+
- test/public/blog/list.xhtml
|
120
|
+
- test/nitro/tc_session.rb
|
121
|
+
- lib/nitro/session/memory.rb
|
122
|
+
- lib/nitro/session.rb
|
123
|
+
- proto/run.rb
|
124
|
+
- doc/MIGRATION
|
125
|
+
- lib/nitro/scaffolding.rb
|
126
|
+
- lib/glue/thumbnails.rb
|
127
|
+
- lib/nitro/cgi/response.rb
|
128
|
+
- lib/nitro/adapter/cgi.rb
|
129
|
+
- lib/nitro/helper/default.rb
|
130
|
+
- lib/nitro/server.rb
|
131
|
+
- test/public/blog/another/very_litle/index.xhtml
|
132
|
+
- test/nitro/cgi/tc_cookie.rb
|
133
|
+
- lib/nitro/helper/javascript.rb
|
134
|
+
- lib/nitro/helper/layout.rb
|
135
|
+
- lib/nitro/caching.rb
|
136
|
+
- lib/nitro/server/drb.rb
|
137
|
+
- lib/glue/webfile.rb
|
138
|
+
- lib/nitro/test/assertions.rb
|
233
139
|
- proto/public/scaffold/advanced_search.xhtml
|
234
|
-
-
|
235
|
-
-
|
236
|
-
- proto/
|
237
|
-
-
|
140
|
+
- lib/nitro/scaffold.rb
|
141
|
+
- lib/glue/sweeper.rb
|
142
|
+
- proto/public/scaffold/view.xhtml
|
143
|
+
- lib/nitro/dispatcher.rb
|
144
|
+
- doc/AUTHORS
|
145
|
+
- lib/nitro/adapter/fastcgi.rb
|
146
|
+
- test/nitro/tc_element.rb
|
147
|
+
- lib/nitro/session/memcached.rb
|
148
|
+
- doc/RELEASES
|
149
|
+
- test/nitro/adapter/tc_webrick.rb
|
150
|
+
- test/nitro/helper/tc_xhtml.rb
|
151
|
+
- test/nitro/tc_server.rb
|
152
|
+
- lib/nitro/compiler/include.rb
|
153
|
+
- proto/public/scaffold/form.xhtml
|
154
|
+
- proto/public/js/prototype.js
|
155
|
+
- test/public/dummy_mailer/registration.xhtml
|
156
|
+
- lib/nitro/adapter/scgi.rb
|
157
|
+
- lib/nitro/helper/javascript/scriptaculous.rb
|
158
|
+
- lib/nitro/compiler/script.rb
|
159
|
+
- lib/nitro/helper/form/controls.rb
|
160
|
+
- test/nitro/tc_flash.rb
|
161
|
+
- test/nitro/tc_cgi.rb
|
162
|
+
- lib/nitro/test.rb
|
163
|
+
- lib/nitro/cgi/cookie.rb
|
164
|
+
- lib/nitro/compiler/localization.rb
|
165
|
+
- doc/lhttpd.txt
|
166
|
+
- lib/nitro/cgi/request.rb
|
167
|
+
- lib/nitro/helper/form/builder.rb
|
168
|
+
- lib/nitro/flash.rb
|
169
|
+
- lib/nitro/test/testcase.rb
|
170
|
+
- lib/nitro/controller.rb
|
171
|
+
- lib/glue/magick.rb
|
172
|
+
- lib/nitro/helper/form.rb
|
173
|
+
- src/part/admin/skin.rb
|
174
|
+
- test/nitro/cgi/tc_request.rb
|
175
|
+
- lib/nitro/element.rb
|
176
|
+
- lib/nitro/helper/feed.rb
|
177
|
+
- proto/public/js/dragdrop.js
|
178
|
+
- proto/public/fcgi.rb
|
179
|
+
- lib/nitro/helper/table.rb
|
180
|
+
- lib/nitro/compiler/markup.rb
|
181
|
+
- lib/nitro/session/file.rb
|
182
|
+
- lib/nitro/service/xmlrpc.rb
|
183
|
+
- lib/nitro/cgi/sendfile.rb
|
184
|
+
- lib/nitro_and_og.rb
|
185
|
+
- lib/nitro/helper/pager.rb
|
186
|
+
- lib/nitro/cgi/stream.rb
|
187
|
+
- lib/nitro/session/drb.rb
|
188
|
+
- lib/nitro/compiler.rb
|
189
|
+
- lib/nitro/compiler/layout.rb
|
190
|
+
- lib/nitro/caching/actions.rb
|
191
|
+
- lib/nitro/global.rb
|
192
|
+
- test/nitro/tc_controller_aspect.rb
|
193
|
+
- test/nitro/tc_helper.rb
|
194
|
+
- lib/nitro/helper/debug.rb
|
195
|
+
- lib/nitro/compiler/xslt.rb
|
196
|
+
- lib/nitro/adapter/webrick.rb
|
197
|
+
- lib/nitro/adapter/script.rb
|
198
|
+
- src/part/admin/template/denied.xhtml
|
199
|
+
- doc/LICENSE
|
200
|
+
- lib/nitro/compiler/morphing.rb
|
201
|
+
- test/nitro/compiler/tc_client_morpher.rb
|
202
|
+
- lib/nitro/caching/fragments.rb
|
203
|
+
- lib/nitro.rb
|
204
|
+
- proto/public/js/effects.js
|
205
|
+
- test/nitro/tc_router.rb
|
206
|
+
- lib/nitro/helper.rb
|
207
|
+
- INSTALL
|
208
|
+
- test/public/blog/inc2.xhtml
|
209
|
+
- test/nitro/adapter/raw_post1.bin
|
210
|
+
- test/nitro/helper/tc_feed.rb
|
211
|
+
- lib/nitro/helper/javascript/dojo.rb
|
212
|
+
- src/part/admin/system.css
|
213
|
+
- proto/public/js/util.js
|
214
|
+
- test/nitro/tc_dispatcher.rb
|
215
|
+
- lib/nitro/router.rb
|
216
|
+
- doc/apache.txt
|
217
|
+
- src/part/admin/template/index.xhtml
|
218
|
+
- proto/public/cgi.rb
|
219
|
+
- proto/conf/lhttpd.conf
|
220
|
+
- ProjectInfo
|
221
|
+
- proto/public/scaffold/new.xhtml
|
222
|
+
- proto/public/js/cookies.js
|
223
|
+
- proto/public/js/controls.js
|
224
|
+
- test/nitro/compiler/tc_compiler.rb
|
225
|
+
- lib/nitro/compiler/elements.rb
|
226
|
+
- proto/public/js/unittest.js
|
238
227
|
- proto/src/skin.rb
|
228
|
+
- lib/nitro/caching/output.rb
|
229
|
+
- proto/script/scgi_ctl
|
230
|
+
- test/nitro/helper/tc_table.rb
|
231
|
+
- setup.rb
|
232
|
+
- lib/nitro/compiler/squeeze.rb
|
233
|
+
- lib/nitro/server/runner.rb
|
234
|
+
- proto/public/js/builder.js
|
235
|
+
- proto/public/js/scriptaculous.js
|
236
|
+
- test/public/blog/inc1.xhtml
|
237
|
+
- test/nitro/helper/tc_pager.rb
|
238
|
+
- lib/nitro/element/javascript.rb
|
239
|
+
- lib/nitro/cgi/http.rb
|
240
|
+
- lib/nitro/helper/javascript/prototype.rb
|
241
|
+
- lib/nitro/cgi.rb
|
242
|
+
- lib/nitro/helper/rss.rb
|
239
243
|
test_files: []
|
240
244
|
|
241
245
|
rdoc_options: []
|
@@ -256,7 +260,7 @@ dependencies:
|
|
256
260
|
requirements:
|
257
261
|
- - "="
|
258
262
|
- !ruby/object:Gem::Version
|
259
|
-
version: 0.
|
263
|
+
version: 0.31.0
|
260
264
|
version:
|
261
265
|
- !ruby/object:Gem::Dependency
|
262
266
|
name: gen
|
@@ -265,7 +269,7 @@ dependencies:
|
|
265
269
|
requirements:
|
266
270
|
- - "="
|
267
271
|
- !ruby/object:Gem::Version
|
268
|
-
version: 0.
|
272
|
+
version: 0.31.0
|
269
273
|
version:
|
270
274
|
- !ruby/object:Gem::Dependency
|
271
275
|
name: glue
|
@@ -274,7 +278,7 @@ dependencies:
|
|
274
278
|
requirements:
|
275
279
|
- - "="
|
276
280
|
- !ruby/object:Gem::Version
|
277
|
-
version: 0.
|
281
|
+
version: 0.31.0
|
278
282
|
version:
|
279
283
|
- !ruby/object:Gem::Dependency
|
280
284
|
name: RedCloth
|
@@ -290,7 +294,7 @@ dependencies:
|
|
290
294
|
version_requirement:
|
291
295
|
version_requirements: !ruby/object:Gem::Version::Requirement
|
292
296
|
requirements:
|
293
|
-
- -
|
297
|
+
- - ~>
|
294
298
|
- !ruby/object:Gem::Version
|
295
299
|
version: "0.5"
|
296
300
|
version:
|
@@ -299,7 +303,7 @@ dependencies:
|
|
299
303
|
version_requirement:
|
300
304
|
version_requirements: !ruby/object:Gem::Version::Requirement
|
301
305
|
requirements:
|
302
|
-
- -
|
306
|
+
- - ~>
|
303
307
|
- !ruby/object:Gem::Version
|
304
|
-
version: 0.4
|
308
|
+
version: "0.4"
|
305
309
|
version:
|