José Valim
21dcbb17de
Ensure json is loaded before using responders.
2010-03-17 23:09:28 +01:00
Carlhuda
6416a35f4b
Remove unneeded AV::Base and AV::Template monkey-patches
2010-03-17 14:29:18 -07:00
Carlhuda
947f86c699
Modify assert_template to use instrumentation
2010-03-17 14:29:18 -07:00
Joshua Peek
13a783672a
Install url helpers on module instance so they can be accessed
...
globally
2010-03-17 16:05:29 -05:00
Aaron Patterson
b652aa8121
cleaning up a bunch of method already defined warnings [ #4209 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-17 13:56:33 -07:00
Aaron Patterson
db2d96a6ba
fixing activemodel tests. [ #4210 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-17 13:46:21 -07:00
Jeremy Kemper
067b350301
Move require closer to home
2010-03-17 10:11:38 -07:00
Aaron Patterson
843255a763
fixing activerecord tests [ #4205 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-17 10:09:14 -07:00
wycats
7a83abe52f
Any reason we can't just use the slow 1.8 path for transliteration in 1.9?
2010-03-17 00:54:42 -07:00
wycats
640ee5b68d
Fix some more warnings on 1.9
2010-03-17 00:53:48 -07:00
wycats
a5587efc19
Remove some 1.9 warnings (resulting in some fixed bugs). Remaining AM warnings are in dependencies.
2010-03-17 00:20:09 -07:00
wycats
cd9ffd11e1
Eliminate warnings for AM on 1.8
2010-03-16 23:24:00 -07:00
wycats
c738812415
Another missing require
2010-03-16 21:37:54 -07:00
Joshua Peek
d69e5616e8
link_to_function is here to stay
2010-03-16 22:06:16 -05:00
wycats
55aac2c696
Fix missing require
2010-03-16 17:32:42 -07:00
wycats
7c49b1adbb
Make sure options[:anchor] is correct in shorthand cases
2010-03-16 17:29:11 -07:00
Santiago Pastorino
0c1ac36ccb
scope_key_by_partial fix for Ruby 1.9 when there's virtual_path [ #4202 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-16 16:20:10 -07:00
José Valim
7a5da21481
Use human_name in scaffold.
2010-03-17 00:09:43 +01:00
Carl Lerche
23b6def0eb
Do not always include the named URL helpers into AC::Base and AV::Base.
2010-03-16 15:47:49 -07:00
Carl Lerche
3abf5ad7f8
Make RouteSet#finalize! a NOOP if it's been called already. Call finalize! the first time call() and url_for() are called if the RouteSet has not been finalized yet.
2010-03-16 15:47:48 -07:00
José Valim
56fb60ebfe
Fix rendering of HTML partials inside JS templates [ #4197 status:resolved]
2010-03-16 23:36:29 +01:00
Aaron Patterson
df735cf5b7
fisting uninitialized ivar warnings. [ #4198 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-16 15:11:00 -07:00
Santiago Pastorino
12bf636461
translation method of TranslationHelper module returns always SafeBuffer [ #4194 status:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-16 13:49:13 -07:00
Xavier Noria
9659d18c9b
adds tests for #flush_output_buffer
...
[#4196 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-16 13:16:44 -07:00
Xavier Noria
986cac73e3
adds tests for #capture
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-16 13:10:54 -07:00
Aaron Patterson
8c3e46c093
clean up more warnings, remove unnecessary methods, fix eval line numbers. [ #4193 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-16 11:48:34 -07:00
Carlhuda
c61ed70b00
Some more tweaks on <% %>.
...
* The cache helper is now semantically "mark this region for caching"
* As a result, <% x = cache do %> no longer works
2010-03-16 11:43:04 -07:00
James Golick
67d8b9743a
Improve performance of multibyte utils.
...
Switch from using String#match to using String#=~. There's no need to
generate a MatchData for each iteration since we're not using it.
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-16 10:04:20 -07:00
José Valim
0db68fd140
Change functional tests to make use of a setup block.
2010-03-16 16:53:54 +01:00
Santiago Pastorino
e13c179499
Change array entries to safe doesn't worth then the array is joined as a string losing the safe property of his entries [ #4134 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-16 11:10:31 +01:00
Chris Griego
0f504a5646
Deprecated framework rake tasks should exit with non-zero exit code [ #4177 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-16 11:10:30 +01:00
Jeremy Kemper
b65b989725
Break a window :/
2010-03-15 23:49:35 -07:00
Jeremy Kemper
748c78ffc8
RJS may cache an array
2010-03-15 23:48:32 -07:00
Jeremy Kemper
b3b6ff48df
Fix link_to with block
2010-03-15 23:26:48 -07:00
Jeremy Kemper
9e1e95f70a
link_to_remote -> link_to :remote => true
2010-03-15 23:05:12 -07:00
Jeremy Kemper
b9c48f519f
Swear I ran this test
2010-03-15 22:44:49 -07:00
Jeremy Kemper
2a50eabf45
Integration test url options should account for :protocol not just https?
2010-03-15 19:52:41 -07:00
Aaron Patterson
dcf1441c0f
removing dead code from activerecord tests. [ #4187 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-15 18:36:08 -07:00
Aaron Patterson
1def14309f
cleaning up a bunch of parse time warnings in AR [ #4186 state:resolved]
...
Signed-off-by: wycats <wycats@gmail.com >
2010-03-15 18:22:31 -07:00
José Valim
8dd731bc50
Move more normalization up to the lookup context, so it does not have to repeat in every resolver.
2010-03-16 02:09:16 +01:00
Jeremy Kemper
1f5e2f2bad
Revert "Reinstate old default_url_options method signature"
...
This reverts commit 5913dd4781 .
2010-03-15 16:49:03 -07:00
Xavier Noria
c5a877f142
adds test coverage for with_output_buffer
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-15 16:30:31 -07:00
Jeremy Kemper
5913dd4781
Reinstate old default_url_options method signature
2010-03-15 15:54:37 -07:00
Jeremy Kemper
9ee600fe0c
Allow memcache-client 1.8.0
2010-03-15 15:38:28 -07:00
Carlhuda
9de83050d3
Add deprecation notices for <% %>.
...
* The approach is to compile <% %> into a method call that checks whether
the value returned from a block is a String. If it is, it concats to the buffer and
prints a deprecation warning.
* <%= %> uses exactly the same logic to compile the template, which first checks
to see whether it's compiling a block.
* This should have no impact on other uses of block in templates. For instance, in
<% [1,2,3].each do |i| %><%= i %><% end %>, the call to each returns an Array,
not a String, so the result is not concatenated
* In two cases (#capture and #cache), a String can be returned that should *never*
be concatenated. We have temporarily created a String subclass called NonConcattingString
which behaves (and is serialized) identically to String, but is not concatenated
by the code that handles deprecated <% %> block helpers. Once we remove support
for <% %> block helpers, we can remove NonConcattingString.
2010-03-15 14:50:43 -07:00
Jeremy Kemper
1f2738261f
Hack to keep column metadata queries out of test query counts
2010-03-15 13:56:19 -07:00
Xavier Noria
a594a22267
with_output_buffer cannot assume there's an output_buffer
...
[#4182 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-03-15 11:26:51 -07:00
Jeremy Kemper
c937da9e2f
to_str works here
2010-03-15 11:18:45 -07:00
Jeremy Kemper
ed199554f1
CI: sudo rm to sledgehammer bad perms
2010-03-15 11:01:16 -07:00
Jeremy Kemper
30f5f95544
Hack to keep column metadata queries out of test query counts
2010-03-15 11:00:25 -07:00