Gonçalo Silva
be0a2b8f01
performance tests inherit from AD::PT and not AC::PT, fixed performance test generator invocation (guide)
2011-03-29 22:41:49 +01:00
Gonçalo Silva
6f0caa1a53
Merge branch 'master' of https://github.com/rails/rails into performance_test
2011-03-28 04:20:49 +01:00
Gonçalo Silva
726b7ede54
improved detection and feedback of supported/unsupported metrics
2011-03-28 04:19:39 +01:00
Gonçalo Silva
09bd0eeefc
fixed a couple of hidden bugs
2011-03-28 04:03:47 +01:00
Gonçalo Silva
c401ad9853
improved options handling in performance tests
2011-03-28 03:11:42 +01:00
Gonçalo Silva
983bd01f42
we need test-unit on mri 1.9
2011-03-28 03:08:08 +01:00
Gonçalo Silva
d6d059f280
added profiling and benchmarking capabilities to jruby (profiling is crippled because of a jruby bug)
2011-03-28 02:11:05 +01:00
Sebastian Martinez
245542ea29
Added new #update_column method.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-03-27 21:47:38 -03:00
Gonçalo Silva
e6cb3962bb
benchmarking metrics are also implementation-specific
2011-03-28 01:32:56 +01:00
Gonçalo Silva
e17f608797
warn the user about unsupported benchmarking metrics he might have asked for
2011-03-28 01:32:32 +01:00
Xavier Noria
e6a8a3adaf
let these heredocs flow with the code
2011-03-28 01:44:48 +02:00
Gonçalo Silva
ef988e12d8
removed duplication in rubinius' benchmark code
2011-03-28 00:33:36 +01:00
Gonçalo Silva
15bff5a86e
fix a bug where the GC wasn't being triggered at the start of the MRI benchmarks
2011-03-28 00:33:07 +01:00
Gonçalo Silva
93a583eb18
:min_percent only makes sense in a RubyProf context
2011-03-28 00:32:21 +01:00
Gonçalo Silva
1a9b1edb49
remove deprecated documentation
2011-03-28 00:32:00 +01:00
Santiago Pastorino
b023bcf71b
Make edge and dev options use edge mysql2
2011-03-27 19:37:18 -03:00
Sebastian Martinez
0e1fed537a
Revert "Removed #update_attribute method. New #update_column method."
...
This reverts commit 45c233ef81 .
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-03-27 18:55:30 -03:00
Xavier Noria
eea6a65488
Merge branch 'master' of git://github.com/lifo/docrails
2011-03-27 23:50:39 +02:00
Xavier Noria
6194c6d13b
AR validations and callbacks guide: put update_attribute back
2011-03-27 23:49:11 +02:00
Prem Sichanugrist
884e39f69e
Fix documentation typo
2011-03-28 04:58:48 +08:00
Prem Sichanugrist
7cbdfa8303
Add controller-specific force_ssl method to force web browser to use HTTPS protocol
...
This would become useful for site which sometime transferring sensitive information such as account information on particular controller or action.
This featured was requested by DHH.
2011-03-28 04:58:47 +08:00
Xavier Noria
84aab7aa53
s/with/when/
2011-03-27 22:31:42 +02:00
Prem Sichanugrist
2c0c4d754e
Add config.force_ssl configuration which will load Rack::SSL middleware if set to true
...
This will allow user to be able to force all requests to be under HTTPS protocol.
This commit was a request from DHH. Special thanks to Josh Peek as well for making `Rack::SSL`.
2011-03-27 13:27:23 -07:00
Xavier Noria
b2d94322e6
fixes a couple of regexps, the suite showed warnings about them
...
A couple of things worth mentioning here:
- "{" is a metacharacter, should be escaped
if it is meant to match a "{". The code
worked, though, because the regexp engine
is tolerant to this, but issued warnings.
- gsub accepts a string as first argument.
That's the best idiom to use when your
pattern has no metacharacters, since gsub
interprets the string as an exact substring
to look for, rather than a regexp. The
benefit is that your pattern is crystal
clear and needs no backslashes.
2011-03-27 20:45:23 +02:00
David Heinemeier Hansson
cc6fa2f4d7
Fix alias_method, add test
2011-03-27 11:20:54 -07:00
mhutchin
738e906a02
A little minor rephrasing for improved readability.
2011-03-27 02:34:02 -07:00
mhutchin
35129f5b99
Minor typo fix.
2011-03-27 01:40:49 -07:00
Aaron Patterson
a9d27c04ab
cleaning up typecast test a little
2011-03-26 17:16:33 -07:00
Aaron Patterson
5013fe3a1d
refactoring tz to a variable rather than repeating it
2011-03-26 17:04:54 -07:00
David Heinemeier Hansson
f8a05ad297
Allow FormHelper#form_for to specify the :method as a direct option instead of through the :html hash [DHH]
2011-03-26 14:45:00 -07:00
Gonçalo Silva
84fe2b8b42
added basic structure for jruby
2011-03-26 19:34:59 +00:00
Aaron Patterson
dea3d2dd20
adding a test for attributes after type cast. thanks nragaz. ❤️
2011-03-26 11:50:31 -07:00
David Heinemeier Hansson
cb3e96a447
Make JavaScriptHelper#j() an alias for JavaScriptHelper#escape_javascript() -- note this then supersedes the Object#j() method that the JSON gem adds within templates using the JavaScriptHelper [DHH]
2011-03-26 10:28:39 -07:00
Gonçalo Silva
3872cc4a73
added support for profiling under rubinius
2011-03-26 15:51:44 +00:00
Sebastian Martinez
7c6807296b
Updated guides for new #update_column.
2011-03-26 12:13:39 -03:00
Sebastian Martinez
45c233ef81
Removed #update_attribute method. New #update_column method.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2011-03-26 12:09:04 -03:00
Ryan Bigg
198f3883fa
Proc objects for cache_path for caches_action no longer need controller object, nor to use send when calling routing helpers
2011-03-26 11:34:05 +11:00
Xavier Noria
eb8beb32b0
Merge branch 'master' of git://github.com/lifo/docrails
2011-03-26 00:13:37 +01:00
Sebastian Martinez
6ee5d9244c
impact recent updates to #first! and #last! methods
2011-03-25 20:07:13 -03:00
Xavier Noria
9d9b873b95
removes unnecessary selfs, and mentions that first! and last! take no arguments in their API docs
2011-03-26 00:02:40 +01:00
Xavier Noria
6383f6704f
Merge branch 'master' of git://github.com/lifo/docrails
2011-03-25 23:47:57 +01:00
Sebastian Martinez
a0946692c1
Update AR querying guide with #first! and #last! new methods
2011-03-25 19:34:45 -03:00
Pratik Naik
25be204e3c
No arguments for first! and last!
2011-03-25 22:30:36 +00:00
Josh Susser
65dce01091
comment typo fix
2011-03-25 12:28:37 -07:00
Gonçalo Silva
278344b3fa
fixed time and size units (should be seconds / bytes), fixed typo when counting memory allocations under rubinius
2011-03-25 19:10:47 +00:00
Aaron Patterson
7333f50abc
fixing whitespace errors. 💣
2011-03-25 12:10:11 -07:00
Gonçalo Silva
417b2baf0f
added gc info (runs, time) to rubinius' benchmarks
2011-03-25 18:01:39 +00:00
Gonçalo Silva
c58e063da0
added memory size and allocations to rubinius' benchmarks
2011-03-25 18:00:29 +00:00
Gonçalo Silva
cf29d90ef1
added time (wall, process, cpu) to rubinius' benchmarks
2011-03-25 17:59:22 +00:00
Gonçalo Silva
9e9090f887
added missing require
2011-03-25 17:27:26 +00:00