manveru-innate 2009.04 → 2009.04.01
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +0 -258
- data/MANIFEST +22 -23
- data/README.md +9 -1
- data/Rakefile +6 -6
- data/example/app/retro_games.rb +8 -8
- data/example/app/todo/layout/{default.xhtml → default.erb} +1 -1
- data/example/app/todo/view/{index.xhtml → index.erb} +11 -11
- data/example/app/whywiki_erb/start.rb +1 -2
- data/example/app/whywiki_erb/view/{edit.erb → edit.html.erb} +0 -0
- data/example/app/whywiki_erb/view/{index.erb → index.html.erb} +0 -0
- data/example/howto_spec.rb +1 -1
- data/example/provides.rb +6 -9
- data/example/session.rb +3 -3
- data/innate.gemspec +14 -6
- data/lib/innate.rb +18 -12
- data/lib/innate/action.rb +11 -22
- data/lib/innate/cache/file_based.rb +0 -2
- data/lib/innate/core_compatibility/basic_object.rb +10 -0
- data/lib/innate/core_compatibility/string.rb +3 -0
- data/lib/innate/dynamap.rb +0 -5
- data/lib/innate/helper.rb +29 -20
- data/lib/innate/helper/cgi.rb +19 -32
- data/lib/innate/helper/link.rb +2 -2
- data/lib/innate/helper/partial.rb +93 -0
- data/lib/innate/helper/redirect.rb +1 -1
- data/lib/innate/helper/send_file.rb +1 -9
- data/lib/innate/mock.rb +3 -2
- data/lib/innate/node.rb +51 -78
- data/lib/innate/options.rb +1 -1
- data/lib/innate/request.rb +23 -3
- data/lib/innate/response.rb +7 -0
- data/lib/innate/session.rb +2 -1
- data/lib/innate/spec.rb +50 -6
- data/lib/innate/version.rb +1 -1
- data/lib/innate/view/erb.rb +1 -1
- data/lib/innate/view/etanni.rb +2 -2
- data/lib/innate/view/none.rb +1 -1
- data/spec/example/session.rb +14 -8
- data/spec/innate/action/layout.rb +1 -1
- data/spec/innate/action/layout/file_layout.erb +1 -0
- data/spec/innate/helper/aspect.rb +6 -6
- data/spec/innate/helper/flash.rb +47 -28
- data/spec/innate/helper/link.rb +0 -8
- data/spec/innate/helper/partial.rb +101 -0
- data/spec/innate/helper/redirect.rb +43 -58
- data/spec/innate/helper/view/aspect_hello.erb +1 -0
- data/spec/innate/helper/view/locals.erb +1 -0
- data/spec/innate/helper/view/loop.erb +4 -0
- data/spec/innate/helper/view/num.erb +1 -0
- data/spec/innate/helper/view/partial.erb +1 -0
- data/spec/innate/helper/view/recursive.erb +8 -0
- data/spec/innate/node/node.rb +13 -5
- data/spec/innate/node/view/another_layout/{another_layout.xhtml → another_layout.erb} +1 -1
- data/spec/innate/node/view/{bar.xhtml → bar.erb} +0 -0
- data/spec/innate/node/view/foo.html.erb +1 -0
- data/spec/innate/node/view/{only_view.xhtml → only_view.erb} +0 -0
- data/spec/innate/node/view/with_layout.erb +1 -0
- data/spec/innate/provides.rb +2 -2
- data/spec/innate/provides/list.html.erb +1 -0
- data/spec/innate/provides/list.txt.erb +1 -0
- data/spec/innate/session.rb +15 -14
- data/spec/innate/state/fiber.rb +7 -8
- data/tasks/bacon.rake +21 -38
- data/tasks/install_dependencies.rake +4 -2
- data/tasks/release.rake +9 -48
- metadata +57 -29
- data/lib/innate/helper/render.rb +0 -87
- data/spec/example/app/retro_games.rb +0 -30
- data/spec/example/provides.rb +0 -16
- data/spec/innate/action/layout/file_layout.xhtml +0 -1
- data/spec/innate/helper/render.rb +0 -133
- data/spec/innate/helper/view/aspect_hello.xhtml +0 -1
- data/spec/innate/helper/view/locals.xhtml +0 -1
- data/spec/innate/helper/view/loop.xhtml +0 -4
- data/spec/innate/helper/view/num.xhtml +0 -1
- data/spec/innate/helper/view/partial.xhtml +0 -1
- data/spec/innate/helper/view/recursive.xhtml +0 -7
- data/spec/innate/node/view/foo.html.xhtml +0 -1
- data/spec/innate/node/view/with_layout.xhtml +0 -1
- data/spec/innate/provides/list.html.xhtml +0 -1
- data/spec/innate/provides/list.txt.xhtml +0 -1
- data/tasks/setup.rake +0 -28
data/CHANGELOG
CHANGED
@@ -1,261 +1,3 @@
|
|
1
|
-
[0ec2012 | Thu Apr 23 06:21:17 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
2
|
-
|
3
|
-
* Allow deletion of mapped apps in DynaMap
|
4
|
-
|
5
|
-
[cbedd9c | Thu Apr 23 05:04:04 UTC 2009] Ryan Grove <ryan@wonko.com>
|
6
|
-
|
7
|
-
* Add path and full_path to Innate::Action
|
8
|
-
|
9
|
-
Signed-off-by: Michael Fellinger <m.fellinger@gmail.com>
|
10
|
-
|
11
|
-
[b9a0d4b | Mon Apr 20 05:12:29 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
12
|
-
|
13
|
-
* Make the u and h aliases for the CGI helper module_functions too
|
14
|
-
|
15
|
-
[b68aad4 | Mon Apr 20 05:12:10 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
16
|
-
|
17
|
-
* Allow further modification of the Action in the render_* methods via block
|
18
|
-
|
19
|
-
[dca3531 | Sun Apr 19 23:38:06 UTC 2009] Ryan Grove <ryan@wonko.com>
|
20
|
-
|
21
|
-
* Preserve response headers when redirecting. Closes #1
|
22
|
-
|
23
|
-
Signed-off-by: Michael Fellinger <m.fellinger@gmail.com>
|
24
|
-
|
25
|
-
[d465ca3 | Sat Apr 18 02:46:09 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
26
|
-
|
27
|
-
* Version 2009.04.18
|
28
|
-
|
29
|
-
[987c5d7 | Sat Apr 18 02:44:26 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
30
|
-
|
31
|
-
* Update the release tasks
|
32
|
-
|
33
|
-
[f927c9d | Fri Apr 17 11:51:35 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
34
|
-
|
35
|
-
* Add Content-Disposition support to send_file
|
36
|
-
|
37
|
-
[888318c | Fri Apr 17 10:43:10 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
38
|
-
|
39
|
-
* Better English in render_custom error
|
40
|
-
|
41
|
-
[15078e6 | Wed Apr 15 16:49:04 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
42
|
-
|
43
|
-
* Add comment about planned deprecation of SendFile helper's default status
|
44
|
-
|
45
|
-
[4b487aa | Wed Apr 15 16:48:09 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
46
|
-
|
47
|
-
* Remove the length from Response, Rack provides that
|
48
|
-
|
49
|
-
[1634391 | Wed Apr 15 11:02:11 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
50
|
-
|
51
|
-
* Don't camel-case the helper module name, simply remove underscores, we do case-insensitive lookup anyway
|
52
|
-
|
53
|
-
[f97e8d7 | Wed Apr 15 10:58:35 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
54
|
-
|
55
|
-
* Remove core_extensions, we don't need String#each or BasicObject anymore
|
56
|
-
|
57
|
-
[0b33546 | Wed Apr 15 09:16:24 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
58
|
-
|
59
|
-
* Action may be invalid if the node requires a method and view
|
60
|
-
|
61
|
-
[39dd843 | Wed Apr 15 09:15:30 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
62
|
-
|
63
|
-
* Escape non-hash arguments to Helper::Link#route (ryan grove)
|
64
|
-
|
65
|
-
[22ee4df | Wed Apr 15 07:25:02 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
66
|
-
|
67
|
-
* Raise if the Render helper cannot obtain an Action
|
68
|
-
|
69
|
-
[e229299 | Mon Apr 13 12:48:05 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
70
|
-
|
71
|
-
* Allow Action#call even if we are outside Current#wrap
|
72
|
-
|
73
|
-
[b6e9558 | Mon Apr 13 04:37:42 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
74
|
-
|
75
|
-
* Remove Action#exts member and use better terms
|
76
|
-
|
77
|
-
[46d2a5e | Sun Apr 12 05:03:58 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
78
|
-
|
79
|
-
* FileBased caches have access to @filename now
|
80
|
-
|
81
|
-
[f84f18f | Sun Apr 12 05:03:39 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
82
|
-
|
83
|
-
* Set a PROJECT_README for some rake tasks
|
84
|
-
|
85
|
-
[8920482 | Sun Apr 12 05:03:21 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
86
|
-
|
87
|
-
* Improvment and spec for provide example
|
88
|
-
|
89
|
-
[a892dea | Sun Apr 12 05:02:50 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
90
|
-
|
91
|
-
* Minor improvment and spec for retro games example
|
92
|
-
|
93
|
-
[b3aeb97 | Fri Apr 10 12:30:08 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
94
|
-
|
95
|
-
* Allow overriding of middleware mode for specs
|
96
|
-
|
97
|
-
[7d65255 | Fri Apr 10 12:07:15 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
98
|
-
|
99
|
-
* Compact code
|
100
|
-
|
101
|
-
[cde9366 | Fri Apr 10 10:51:03 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
102
|
-
|
103
|
-
* Simplify specs and make them pass using rack-test
|
104
|
-
|
105
|
-
[f4c9572 | Fri Apr 10 10:50:34 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
106
|
-
|
107
|
-
* Don't forget to specify an app for rack-test
|
108
|
-
|
109
|
-
[41b1955 | Fri Apr 10 10:17:42 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
110
|
-
|
111
|
-
* Remove spec for render_template
|
112
|
-
|
113
|
-
[a3b73ca | Fri Apr 10 10:17:27 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
114
|
-
|
115
|
-
* Add `rake setup` task to comply to convention. I will put up the corresponding gems ASAP
|
116
|
-
|
117
|
-
[c648bf7 | Fri Apr 10 10:16:12 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
118
|
-
|
119
|
-
* Switch to using rack-test for our specs, needs rack-test from the master branch head
|
120
|
-
|
121
|
-
[5c08e25 | Thu Apr 09 17:52:28 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
122
|
-
|
123
|
-
* Use ContentLength middleware
|
124
|
-
|
125
|
-
[0dc50d4 | Thu Apr 09 16:10:51 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
126
|
-
|
127
|
-
* Fix template caching... was using html instead of the wish the glob was for
|
128
|
-
|
129
|
-
[622bbe3 | Thu Apr 09 16:01:08 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
130
|
-
|
131
|
-
* Fix example apps
|
132
|
-
|
133
|
-
[6e9e843 | Tue Apr 07 09:56:56 UTC 2009] Sam Carr <samcarr@gmail.com>
|
134
|
-
|
135
|
-
* Minor tidy-ups to fix comments, add missing requires, add comments etc.
|
136
|
-
|
137
|
-
Signed-off-by: Michael Fellinger <m.fellinger@gmail.com>
|
138
|
-
|
139
|
-
[8f9af98 | Tue Apr 07 18:42:35 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
140
|
-
|
141
|
-
* Set default interval for reloader to 2 seconds
|
142
|
-
|
143
|
-
[9f7e749 | Tue Apr 07 18:42:14 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
144
|
-
|
145
|
-
* Never assign $0, bad mojo
|
146
|
-
|
147
|
-
[281501e | Tue Apr 07 17:53:08 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
148
|
-
|
149
|
-
* Don't assign a directory to $0
|
150
|
-
|
151
|
-
[8a2ddc7 | Tue Apr 07 17:16:37 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
152
|
-
|
153
|
-
* Version 2009.04.08
|
154
|
-
|
155
|
-
[89ab244 | Tue Apr 07 16:17:07 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
156
|
-
|
157
|
-
* bring the retro_games example up to date
|
158
|
-
|
159
|
-
[c1b6939 | Tue Apr 07 14:30:14 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
160
|
-
|
161
|
-
* Fix typo in howto_spec example
|
162
|
-
|
163
|
-
[c1f7bb8 | Tue Apr 07 12:24:50 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
164
|
-
|
165
|
-
* Improve Helper::CGI, don't accept more than one argument per method
|
166
|
-
|
167
|
-
[c01a0ce | Tue Apr 07 02:07:28 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
168
|
-
|
169
|
-
* Warn if action is invalid
|
170
|
-
|
171
|
-
[d749887 | Tue Apr 07 02:07:01 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
172
|
-
|
173
|
-
* Remove Helper::Render#render_template
|
174
|
-
|
175
|
-
[fba39b5 | Mon Apr 06 03:26:29 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
176
|
-
|
177
|
-
* Remove specs for Helper::Partial
|
178
|
-
|
179
|
-
[98bc6f7 | Mon Apr 06 03:25:52 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
180
|
-
|
181
|
-
* Add more specs and refine Helper::Render
|
182
|
-
|
183
|
-
[616b5aa | Mon Apr 06 03:03:21 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
184
|
-
|
185
|
-
* Provide direct access to Helper::Render methods through extension
|
186
|
-
|
187
|
-
[696f85d | Mon Apr 06 02:58:09 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
188
|
-
|
189
|
-
* Make Helper::Render#render_template work and add specs
|
190
|
-
|
191
|
-
[b0fcf13 | Sun Apr 05 23:51:09 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
192
|
-
|
193
|
-
* Adding Helper::Render, this should be able to cover all our rendering needs
|
194
|
-
|
195
|
-
[ea02bbe | Sun Apr 05 23:49:52 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
196
|
-
|
197
|
-
* Remove Helper::Partial, to be replaced by Helper::Render
|
198
|
-
|
199
|
-
[52c9943 | Sun Apr 05 23:47:01 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
200
|
-
|
201
|
-
* just fix some annoying things
|
202
|
-
|
203
|
-
[cd45648 | Sun Apr 05 23:46:17 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
204
|
-
|
205
|
-
* Refactor Helper to use HelpersHelper.options
|
206
|
-
|
207
|
-
[4a1b7f6 | Sun Apr 05 14:25:43 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
208
|
-
|
209
|
-
* remove some more methods from Request, they depend on a method in ramaze
|
210
|
-
|
211
|
-
[6e0b421 | Sun Apr 05 09:22:19 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
212
|
-
|
213
|
-
* Make multipart building a bit more compact
|
214
|
-
|
215
|
-
[2f17bf6 | Sun Apr 05 14:23:45 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
216
|
-
|
217
|
-
* Make some variables more 'communicative', as reek puts it
|
218
|
-
|
219
|
-
[348e179 | Sat Apr 04 06:37:50 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
220
|
-
|
221
|
-
* Caching for template locations finally working, this should reduce the disk IO through globbing considerably, even if it is still updating the locations for every request
|
222
|
-
|
223
|
-
[8555277 | Sat Apr 04 06:27:54 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
224
|
-
|
225
|
-
* Better bacon task
|
226
|
-
|
227
|
-
[110243b | Fri Apr 03 12:08:41 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
228
|
-
|
229
|
-
* Experimental templating path caching
|
230
|
-
|
231
|
-
[258d7c9 | Fri Apr 03 13:01:12 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
232
|
-
|
233
|
-
* Use Etanni engine for specs and most examples
|
234
|
-
|
235
|
-
[2bf8941 | Fri Apr 03 12:59:56 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
236
|
-
|
237
|
-
* Comment out gemspec dependencies until rack is released
|
238
|
-
|
239
|
-
[57078ac | Fri Apr 03 12:58:24 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
240
|
-
|
241
|
-
* Remove the extra newlines introduced with Etanni
|
242
|
-
|
243
|
-
[51b4797 | Fri Apr 03 12:58:03 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
244
|
-
|
245
|
-
* Relax views by using #to_s instead of #to_str
|
246
|
-
|
247
|
-
[d8475d3 | Fri Apr 03 09:48:49 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
248
|
-
|
249
|
-
* Don't carry over view_value into layout actions
|
250
|
-
|
251
|
-
[8e2788f | Thu Apr 02 03:50:52 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
252
|
-
|
253
|
-
* Fix view and layout mapping if there are multiple view_mappings
|
254
|
-
|
255
|
-
[8e93e87 | Tue Mar 31 16:35:56 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
256
|
-
|
257
|
-
* Version 2009.04.01
|
258
|
-
|
259
1
|
[1a7242b | Tue Mar 31 16:32:40 UTC 2009] Michael Fellinger <m.fellinger@gmail.com>
|
260
2
|
|
261
3
|
* Optional is called Optioned now, watch out
|
data/MANIFEST
CHANGED
@@ -4,15 +4,15 @@ MANIFEST
|
|
4
4
|
README.md
|
5
5
|
Rakefile
|
6
6
|
example/app/retro_games.rb
|
7
|
-
example/app/todo/layout/default.
|
7
|
+
example/app/todo/layout/default.erb
|
8
8
|
example/app/todo/spec/todo.rb
|
9
9
|
example/app/todo/start.rb
|
10
|
-
example/app/todo/view/index.
|
10
|
+
example/app/todo/view/index.erb
|
11
11
|
example/app/whywiki_erb/layout/wiki.html.erb
|
12
12
|
example/app/whywiki_erb/spec/wiki.rb
|
13
13
|
example/app/whywiki_erb/start.rb
|
14
|
-
example/app/whywiki_erb/view/edit.erb
|
15
|
-
example/app/whywiki_erb/view/index.erb
|
14
|
+
example/app/whywiki_erb/view/edit.html.erb
|
15
|
+
example/app/whywiki_erb/view/index.html.erb
|
16
16
|
example/custom_middleware.rb
|
17
17
|
example/hello.rb
|
18
18
|
example/howto_spec.rb
|
@@ -30,6 +30,8 @@ lib/innate/cache/file_based.rb
|
|
30
30
|
lib/innate/cache/marshal.rb
|
31
31
|
lib/innate/cache/memory.rb
|
32
32
|
lib/innate/cache/yaml.rb
|
33
|
+
lib/innate/core_compatibility/basic_object.rb
|
34
|
+
lib/innate/core_compatibility/string.rb
|
33
35
|
lib/innate/current.rb
|
34
36
|
lib/innate/dynamap.rb
|
35
37
|
lib/innate/helper.rb
|
@@ -37,8 +39,8 @@ lib/innate/helper/aspect.rb
|
|
37
39
|
lib/innate/helper/cgi.rb
|
38
40
|
lib/innate/helper/flash.rb
|
39
41
|
lib/innate/helper/link.rb
|
42
|
+
lib/innate/helper/partial.rb
|
40
43
|
lib/innate/helper/redirect.rb
|
41
|
-
lib/innate/helper/render.rb
|
42
44
|
lib/innate/helper/send_file.rb
|
43
45
|
lib/innate/log.rb
|
44
46
|
lib/innate/log/color_formatter.rb
|
@@ -66,14 +68,12 @@ lib/innate/view.rb
|
|
66
68
|
lib/innate/view/erb.rb
|
67
69
|
lib/innate/view/etanni.rb
|
68
70
|
lib/innate/view/none.rb
|
69
|
-
spec/example/app/retro_games.rb
|
70
71
|
spec/example/hello.rb
|
71
72
|
spec/example/link.rb
|
72
|
-
spec/example/provides.rb
|
73
73
|
spec/example/session.rb
|
74
74
|
spec/helper.rb
|
75
75
|
spec/innate/action/layout.rb
|
76
|
-
spec/innate/action/layout/file_layout.
|
76
|
+
spec/innate/action/layout/file_layout.erb
|
77
77
|
spec/innate/cache/common.rb
|
78
78
|
spec/innate/cache/marshal.rb
|
79
79
|
spec/innate/cache/memory.rb
|
@@ -84,30 +84,30 @@ spec/innate/helper/aspect.rb
|
|
84
84
|
spec/innate/helper/cgi.rb
|
85
85
|
spec/innate/helper/flash.rb
|
86
86
|
spec/innate/helper/link.rb
|
87
|
+
spec/innate/helper/partial.rb
|
87
88
|
spec/innate/helper/redirect.rb
|
88
|
-
spec/innate/helper/render.rb
|
89
89
|
spec/innate/helper/send_file.rb
|
90
|
-
spec/innate/helper/view/aspect_hello.
|
91
|
-
spec/innate/helper/view/locals.
|
92
|
-
spec/innate/helper/view/loop.
|
93
|
-
spec/innate/helper/view/num.
|
94
|
-
spec/innate/helper/view/partial.
|
95
|
-
spec/innate/helper/view/recursive.
|
90
|
+
spec/innate/helper/view/aspect_hello.erb
|
91
|
+
spec/innate/helper/view/locals.erb
|
92
|
+
spec/innate/helper/view/loop.erb
|
93
|
+
spec/innate/helper/view/num.erb
|
94
|
+
spec/innate/helper/view/partial.erb
|
95
|
+
spec/innate/helper/view/recursive.erb
|
96
96
|
spec/innate/mock.rb
|
97
97
|
spec/innate/node/mapping.rb
|
98
98
|
spec/innate/node/node.rb
|
99
99
|
spec/innate/node/resolve.rb
|
100
|
-
spec/innate/node/view/another_layout/another_layout.
|
101
|
-
spec/innate/node/view/bar.
|
102
|
-
spec/innate/node/view/foo.html.
|
103
|
-
spec/innate/node/view/only_view.
|
104
|
-
spec/innate/node/view/with_layout.
|
100
|
+
spec/innate/node/view/another_layout/another_layout.erb
|
101
|
+
spec/innate/node/view/bar.erb
|
102
|
+
spec/innate/node/view/foo.html.erb
|
103
|
+
spec/innate/node/view/only_view.erb
|
104
|
+
spec/innate/node/view/with_layout.erb
|
105
105
|
spec/innate/node/wrap_action_call.rb
|
106
106
|
spec/innate/options.rb
|
107
107
|
spec/innate/parameter.rb
|
108
108
|
spec/innate/provides.rb
|
109
|
-
spec/innate/provides/list.html.
|
110
|
-
spec/innate/provides/list.txt.
|
109
|
+
spec/innate/provides/list.html.erb
|
110
|
+
spec/innate/provides/list.txt.erb
|
111
111
|
spec/innate/request.rb
|
112
112
|
spec/innate/route.rb
|
113
113
|
spec/innate/session.rb
|
@@ -124,4 +124,3 @@ tasks/manifest.rake
|
|
124
124
|
tasks/rcov.rake
|
125
125
|
tasks/release.rake
|
126
126
|
tasks/reversion.rake
|
127
|
-
tasks/setup.rake
|
data/README.md
CHANGED
@@ -67,7 +67,7 @@ encourages everybody to build on top of it whatever they want.
|
|
67
67
|
* No clutter in your application directory structure, scales from a single file
|
68
68
|
upwards
|
69
69
|
* Seamless integration with Rack middleware
|
70
|
-
* No patching of ruby core or stdlib.
|
70
|
+
* No patching[4] of ruby core or stdlib.
|
71
71
|
* Direct access to the current Request, Response, and Session from anywhere via
|
72
72
|
Trinity
|
73
73
|
* Works out of the box with ERB the templating engine.
|
@@ -77,6 +77,7 @@ encourages everybody to build on top of it whatever they want.
|
|
77
77
|
[1]: What you may think of as Controller.
|
78
78
|
[2]: This includes: Ruby 1.8, Ruby 1.9.1, JRuby, Rubinius
|
79
79
|
[3]: Fiber is available on 1.9 only at this point.
|
80
|
+
[4]: However, we add String#each if it isn't there to be compatible with Rack.
|
80
81
|
|
81
82
|
## Usage
|
82
83
|
|
@@ -448,6 +449,13 @@ authorization, etc.
|
|
448
449
|
|
449
450
|
Innate abandons the snippets, keeping your core clean.
|
450
451
|
|
452
|
+
Two things that we need are (currently) String#each, because Rack relies on it,
|
453
|
+
and BasicObject as superclass for the Option class. They are only applied on
|
454
|
+
demand.
|
455
|
+
|
456
|
+
These are in the directory called core_extensions, to make it very, very clear
|
457
|
+
what we are doing and how we are doing it.
|
458
|
+
|
451
459
|
Ramaze has still a lot of these snippets and will continue to, although I will
|
452
460
|
constantly strive to reduce them slowly.
|
453
461
|
|
data/Rakefile
CHANGED
@@ -4,9 +4,10 @@ require 'rake/gempackagetask'
|
|
4
4
|
require 'time'
|
5
5
|
require 'date'
|
6
6
|
|
7
|
-
|
7
|
+
specs = Dir['spec/{innate,example}/**/*.rb']
|
8
|
+
specs -= Dir['spec/innate/cache/common.rb']
|
9
|
+
PROJECT_SPECS = specs
|
8
10
|
PROJECT_MODULE = 'Innate'
|
9
|
-
PROJECT_README = 'README.md'
|
10
11
|
|
11
12
|
GEMSPEC = Gem::Specification.new{|s|
|
12
13
|
s.name = 'innate'
|
@@ -21,10 +22,9 @@ GEMSPEC = Gem::Specification.new{|s|
|
|
21
22
|
s.has_rdoc = true
|
22
23
|
s.require_path = 'lib'
|
23
24
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
# s.add_development_dependency('rack-test', '>= 0.1.0')
|
25
|
+
s.add_runtime_dependency('rack', '>= 0.9.1') # lies!
|
26
|
+
s.add_development_dependency('bacon', '>= 1.0')
|
27
|
+
s.add_development_dependency('json', '~> 1.1.3')
|
28
28
|
}
|
29
29
|
|
30
30
|
Dir['tasks/*.rake'].each{|f| import(f) }
|
data/example/app/retro_games.rb
CHANGED
@@ -25,36 +25,36 @@ class Games
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def vote(name)
|
28
|
-
STORE[name] += 1
|
28
|
+
STORE[url_decode(name)] += 1
|
29
29
|
|
30
30
|
redirect_referrer
|
31
31
|
end
|
32
32
|
|
33
33
|
TEMPLATE = <<-'T'.strip
|
34
34
|
<?xml version='1.0' encoding='utf-8' ?>
|
35
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
36
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
35
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
37
36
|
<html>
|
38
37
|
<head>
|
39
38
|
<title>Top Retro Games</title>
|
40
39
|
</head>
|
41
40
|
<body>
|
42
41
|
<h1>Vote on your favorite Retro Game</h1>
|
43
|
-
<form action="
|
42
|
+
<form action="<%= r :create %>" method="post">
|
44
43
|
<input type="text" name="name" />
|
45
44
|
<input type="submit" value="Add" />
|
46
45
|
</form>
|
47
46
|
<ol>
|
48
|
-
|
47
|
+
<% STORE.each do |name, votes| %>
|
49
48
|
<li>
|
50
|
-
|
51
|
-
|
49
|
+
<%= Games.a("Vote", "/vote/#{u name}") %>
|
50
|
+
<%= "%5d => %s" % [votes, name] %>
|
52
51
|
</li>
|
53
|
-
|
52
|
+
<% end %>
|
54
53
|
</ol>
|
55
54
|
</body>
|
56
55
|
</html>
|
57
56
|
T
|
57
|
+
|
58
58
|
end
|
59
59
|
|
60
60
|
Innate.start
|