Thiago Pradi
0175c470c0
Documentation for Array#sample
2010-06-28 13:31:57 -03:00
Santiago Pastorino
a822ce78b3
String#[] doesn't return the byte representation on 1.9.2, we should use getbyte that was already added as a Ruby < 1.9 core_ext
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-27 20:30:29 +02:00
Santiago Pastorino
fa96638bf2
Added getbyte as a core_ext to Ruby < 1.9
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-27 20:30:24 +02:00
Santiago Pastorino
926ca9c102
Load JSON additions (as to_json) on active_support/all.
...
[#4730 state:committed]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-26 21:15:18 +02:00
Santiago Pastorino
51be8dbded
Move constantize from conversions to inflections.
...
This removes ActiveModel dependency on TZInfo.
[#4979 state:committed]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-26 20:49:30 +02:00
chaitanyav
9958950f78
Add OrderedHash#invert to preserve order in ruby 1.8 [ #4875 ]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-26 12:05:25 +02:00
José Valim
7bd85a8fc2
Work around the fact the JSON gem was overwriting to_json implementation for all Ruby core classes.
...
This is required because the JSON gem is incompatible with Rails behavior and was not allowing ActiveModel::Errors to be serialized.
So we need to ensure Rails implementation is the one triggered. [#4890 state:resolved]
2010-06-26 12:01:13 +02:00
Norman Clarke
cfaaed3f40
Move some methods into 1.8.x-only proxy. [ #4978 state:resolved]
...
These methods had been overridden because they had bugs on 1.9.1. Since
Rails now supports only 1.9.2, and these methods now work properly on
that version, there's no longer any need to override them.
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-26 10:16:37 +02:00
rohit
cae33c4158
Remove previously defined class method logger to supress warnings in Active Support test suites. [ #4618 state:open]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-26 00:27:31 +02:00
Paul Mucur
158e22dae0
Alias ActiveSupport::OrderedHash#update to ActiveSupport::OrderedHash.merge!
...
This ensures that an OrderedHash's keys are set up appropriately when using update.
[#4973 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-06-25 15:02:20 -07:00
Nick Sieger
b549d93d2f
AS::Isolation functional on Windows/JRuby.
...
Doesn't make up for the fact that it's slooooooooow, though.
Signed-off-by: wycats <wycats@gmail.com>
2010-06-24 09:10:58 -07:00
José Valim
6788db824a
Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [ #4816 state:resolved]
2010-06-24 13:23:43 +02:00
José Valim
69abbe8934
Avoid using Pathname on Resolver and AS::Dependencies.
2010-06-24 01:06:37 +02:00
Xavier Noria
6f83a5036d
renames load_(once_)paths to autoload_(once_)paths in dependencies and config
2010-06-24 00:17:28 +02:00
Prem Sichanugrist
6c4bab306a
Missing require for the class/attribute.rb [4812 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-22 17:18:28 +02:00
David Calavera
b8330a2261
preventing memcached initialization errors with default servers list [ #4921 state:resolved]
...
As of this writing the JRuby client does not support a default port.
Signed-off-by: Xavier Noria <fxn@hashref.com>
2010-06-22 16:28:29 +02:00
Josh Kalderimis
fd03f1738e
removed default Formatter in logger, not needed with 1.8.7 upwards
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-22 01:19:02 +02:00
Josh Kalderimis
dad71c6099
removed 'unless const_defined?' code smell
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-21 23:34:45 +02:00
rohit
45b263cbf1
Initialize @last_update_at in file_update_checker to hide warnings in AS test suite.
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-21 11:10:19 +02:00
Hongli Lai (Phusion)
756d77622b
Allow instrumentation of cache hits and misses. [ #4888 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-21 01:09:55 +02:00
Xavier Noria
207fa59675
Merge remote branch 'rails/master'
...
Conflicts:
actionpack/lib/abstract_controller/base.rb
2010-06-20 23:13:19 +02:00
Rodrigo Rosenfeld Rosas
03216ae252
Fix comment in en.yml datime_select -> datetime_select
2010-06-20 10:41:47 -03:00
José Valim
dad80ad786
I18n.reload! is only called if any of the locale files actually changed.
2010-06-20 14:44:38 +02:00
José Valim
71703c98ba
Add ActiveSupport::FileUpdateChecker.
2010-06-20 13:26:42 +02:00
Norman Clarke
667522ca98
Adds titleize/titlecase to AS::Multibyte::Chars
...
[#2794 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-20 00:51:19 +02:00
rohit
95a8f252c0
remove executable permission from files that don't need it. [ #4802 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-20 00:50:48 +02:00
Sam Elliott and Santiago Pastorino
02ea1aa88c
<=> is defined twice on multibyte/chars.rb for Ruby < 1.9
...
[#4850 state:committed]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-20 00:35:20 +02:00
José Valim
72725d7b7f
Merge branch 'master' of github.com:rails/rails
2010-06-20 00:12:54 +02:00
José Valim
d430db9fd4
Remove descendants warning while executing tests.
2010-06-19 17:16:11 +02:00
José Valim
a2b7fcb07c
Change callbacks to automatically include DescendantsTracker and rename descendents to descendants.
2010-06-19 16:58:15 +02:00
José Valim
8db8c6f4ce
Add ActiveSupport::DescendantsTracker.
2010-06-19 16:44:35 +02:00
Maxime RETY
2c2a5fe829
Fix Yajl backend discovery in ActiveSupport::JSON
...
[#4897 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-06-18 20:12:31 -07:00
Gonçalo Silva
113b0ec03c
enable_stats added back in since Benchmarker doesn't start RubyProf
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-06-17 22:15:16 -07:00
Gonçalo Silva
0cef199c8e
check if the profiler patch is applied, otherwise GC::Profiler doesn't have the 'data' method
2010-06-17 19:18:53 -07:00
Gonçalo Silva
c8019cd04a
added information about what is being used
2010-06-17 19:18:53 -07:00
Gonçalo Silva
b169d83787
heap_live_objects+heap_free_objects is broken, use heap_total_objects instead
2010-06-17 19:18:53 -07:00
Gonçalo Silva
5e5d1babb0
also use GC profiler extended patch to retrieve GC time on 1.9
2010-06-17 19:18:53 -07:00
Gonçalo Silva
f02d3f9eee
ruby's GC doesn't support the time method, removed support for it
2010-06-17 19:18:52 -07:00
Gonçalo Silva
175164397b
use GC profiler extended patch to retrieve GC runs on 1.9
2010-06-17 19:18:52 -07:00
Gonçalo Silva
555c3b5abe
ruby's GC doesn't support collections and heap_info, RubyProf can handle it
2010-06-17 19:18:52 -07:00
Gonçalo Silva
4813462eea
GC at 1.9.X doesn't have malloc_allocated_size, remove support for it
2010-06-17 19:18:52 -07:00
Gonçalo Silva
36f5d09692
removed support for 1.8's GC alternative hacks (railsbench and lloyd patches). RubyProf can handle it
2010-06-17 19:18:52 -07:00
Gonçalo Silva
cb74cfc9c1
check if the data method is defined (meaning it's correctly patched)
2010-06-17 19:18:52 -07:00
Gonçalo Silva
901452d06a
the official profiler (present in 1.9) should have the highest priority
2010-06-17 19:18:52 -07:00
Gonçalo Silva
381a30fbba
don't set cpu_frequency if RubyProf resolved it
2010-06-17 19:18:52 -07:00
Aaron Patterson
5ae7a9d31d
when the timezone is nil, a TimeWithZone object should not be constructed. [ #4881 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-06-17 14:14:30 -07:00
Hongli Lai (Phusion)
6f5fb13928
Remove documentation reference to AS::Notifications::Event#result because it has been removed.
2010-06-17 15:47:37 +02:00
Evgeniy Dolzhenko
ef404c771d
Fix a bunch of minor spelling mistakes
2010-06-15 12:04:22 +04:00
Xavier Noria
f17159b029
edit pass: the names of Rails components have a space, ie, "Active Record", not "ActiveRecord"
2010-06-14 23:22:04 +02:00
Xavier Noria
94de5b8cb5
edit pass in #define_callbacks rdoc
2010-06-14 22:52:47 +02:00