Commit Graph

21442 Commits

Author SHA1 Message Date
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
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
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
Gonçalo Silva
84fe2b8b42 added basic structure for jruby 2011-03-26 19:34:59 +00:00
Gonçalo Silva
3872cc4a73 added support for profiling under rubinius 2011-03-26 15:51:44 +00: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
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
Gonçalo Silva
4fe86a3ea2 removed leftovers from the copy-paste from mri 2011-03-25 17:23:39 +00:00
Gonçalo Silva
b0beba2621 rubinius returns "rbx" for RUBY_ENGINE, not "rubinius" 2011-03-25 17:21:32 +00:00
Gonçalo Silva
995d543b64 added basic structure for Rubinius 2011-03-25 17:18:06 +00:00
Gonçalo Silva
2fa426c944 divide the ruby interpreter into mri and yarv for improved modularity 2011-03-25 03:26:43 +00:00
Gonçalo Silva
3ec79e4288 renamed "mri" to "ruby", for consistency with RUBY_ENGINE 2011-03-25 03:21:01 +00:00
Gonçalo Silva
18a81db6fc check whether the user is using a supported ruby interpreter for benchmarking 2011-03-25 02:46:57 +00:00
Gonçalo Silva
1151608921 using number_helper to pretty print some results 2011-03-25 02:39:43 +00:00
Gonçalo Silva
e57d264f37 extracted more generic methods, added a note for methods that need to be overridden by each implementation 2011-03-25 02:28:38 +00:00
Gonçalo Silva
c50df6351c initial separation of RubyProf-specific code 2011-03-25 01:50:07 +00:00
Gonçalo Silva
6e99bb6aca ruby-prof only makes sense in an MRI context 2011-03-25 00:02:25 +00:00
Gonçalo Silva
a6e22229b9 move "check for ruby-prof" from AD/testing/performance_test to AS/testing/performance, where it is actually required 2011-03-24 23:57:57 +00:00
Gonçalo Silva
23be2c6134 check if RubyProf's WALL_TIME and PROCESS_TIME are available before using them (similarly to other constants) 2011-03-24 23:38:17 +00:00
Gonçalo Silva
9887f23887 Merge branch 'master' of https://github.com/rails/rails 2011-03-24 17:21:17 +00:00
Josh Susser
5214e73850 add #first! and #last! to models & relations 2011-03-24 09:55:51 -07:00
Andrew White
9772de8d45 Fix filter :only and :except with implicit actions
The method_name argument is "default_render" for implicit actions
so use the action_name attribute to determine which callbacks to run.

[#5673 state:resolved]
2011-03-23 23:32:44 +00:00
Manfred Stienstra
5da9a74bd3 Add a failing test case for an implicit action with a before filter.
Signed-off-by: Andrew White <andyw@pixeltrix.co.uk>
2011-03-23 23:32:44 +00:00
Adam Meehan
c5908a8649 Fix before_type_cast for timezone aware attributes by caching converted value on write. Also remove read method reload arg on timezone attributes. 2011-03-23 15:38:51 -07:00
Murray Steele
54c963c89b Make clearing of HABTM join table contents happen in an after_destory callback.
The old method of redefining destroy meant that clearing the HABTM join table would happen as long as the call to destroy succeeded.  Which meant if there was a before_destroy that stopped the instance being destroyed using normal means (returning false, raising ActiveRecord::Rollback) rather than exceptional means the join table would be cleared even though the instance wasn't destroyed.  Doing it in an after_destroy hook avoids this and has the advantage of happening inside the DB transaction too.
2011-03-23 14:45:21 -07:00
Murray Steele
8ee81d21fb Failing test case to show that habtm join table contents are removed when a model is destroyed but the destruction is blocked by a before_destroy. 2011-03-23 14:45:21 -07:00
Xavier Noria
3b91b3726d Merge branch 'master' of git://github.com/lifo/docrails 2011-03-23 21:52:33 +01:00
Aditya Sanghi
3a7c7dc73d Fix test for prepend giving a false positive. [#5716 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-03-23 18:06:30 +01:00
Diego Carrion
a1edbf7206 parse dates to yaml in json arrays
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-03-22 21:09:54 -03:00
Diego Carrion
7004434ad8 test json decoding with time parsing disabled with all backends and respect ActiveSupport.parse_json_times when converting to yaml
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-03-22 21:09:54 -03:00
Santiago Pastorino
450f7cf01b use class_eval with a string when it's possible 2011-03-22 20:11:36 -03:00
Santiago Pastorino
baa237c974 Allow to read and write AR attributes with non valid identifiers 2011-03-22 20:02:32 -03:00
Santiago Pastorino
da6c7bd4b4 Do not in place modify what table_name returns 2011-03-22 19:36:16 -03:00
Dr Nic Williams
ee8ca49414 Update 'Getting Started on Windows' tip to go to one-click Rails Installer 2011-03-22 15:13:55 -07:00
Ryan Bigg
137ff0402a Caching guide: Capitalize 'Note' so that it's rendered as a proper note 2011-03-23 08:33:06 +11:00
Piotr Sarnacki
e06c448002 Install rb-fsevent gem if ENV[RB_FSEVENT] is set 2011-03-22 19:36:12 +01:00
Aaron Patterson
ed97c39517 adding missing require 2011-03-22 10:10:33 -07:00
Aaron Patterson
2ef6270f8f Merge branch 'master' into fuuu
* master:
  Do not show optional (.:format) block for wildcard route [#6605 state:resolved]
  pushing id insertion and prefetch primary keys down to Relation#insert
  use prepared statements to fetch the last insert id
  escaping binary data encoding when inserting to sqlite3. Thanks Naruse! [#6559 state:resolved]
  schemas set by set_table_name are respected by the mysql adapter. [#5322 state:resolved]
  Reapply extensions when using except and only
  SJIS is an alias to Windows-31J in ruby trunk. Use SHIFT_JIS for this test
  Improved resolver docs a bit
  [action_view] docs for FileSystemResolver
  [action_view] added custom patterns to template resolver
2011-03-22 09:34:33 -07:00
Prem Sichanugrist
2ddfdba9a0 Do not show optional (.:format) block for wildcard route [#6605 state:resolved]
This will make the output of `rake routes` to be correctly match to the behavior of the application, as the regular expression used to match the path is greedy and won't capture the format part by default
2011-03-22 09:19:40 -07:00
Aaron Patterson
15d3cc21f4 pushing id insertion and prefetch primary keys down to Relation#insert 2011-03-22 09:18:01 -07:00