Jon Leighton
8ba491acc3
Revert all the stuff to do with disallowing non-public methods for Module#delegate
2011-08-25 22:30:42 +01:00
David Heinemeier Hansson
9482554f31
Added Array#prepend as an alias for Array#unshift and Array#append as an alias for Array#<< [DHH]
2011-08-15 16:56:33 -05:00
Jon Leighton
8bba95f293
Just do the method call directly in Module#delegate, if we can (we cannot for method names ending in '='). Two reasons: 1) it's faster, see https://gist.github.com/1089783 and 2) more importantly, delegate should not allow you to accidentally call private or protected methods.
2011-08-15 12:38:38 +01:00
Xavier Noria
e175117eaf
registers the changes to String#blank? in the CHANGELOG
2011-07-20 12:17:37 +02:00
Xavier Noria
7e56bf7244
registers support for acronyms in the CHANGELOG of Active Support
2011-06-24 23:28:30 +02:00
José Valim
8775ffa372
Update CHANGELOG, improve message.
2011-06-16 07:47:01 -03:00
David Heinemeier Hansson
a6467802ff
Rename Time#whole_* to Time#all_* [thanks Pratik!]
2011-06-13 19:09:11 +02:00
David Heinemeier Hansson
d6cc0e56bd
Added Time#whole_day/week/quarter/year as a way of generating ranges (example: Event.where(created_at: Time.now.whole_week)) [DHH]
2011-06-13 18:56:06 +02:00
David Heinemeier Hansson
b12c2e4ebb
Added instance_accessor: false as an option to Class#cattr_accessor and friends [DHH]
2011-06-13 18:56:06 +02:00
Andrew White
cf3364a03c
Raise NameError instead of ArgumentError in ActiveSupport::Dependencies
...
ActiveSupport::Dependencies now raises NameError if it finds an existing
constant in load_missing_constant. This better reflects the nature of
the error which is usually caused by calling constantize on a nested constant.
Closes #1423
2011-06-01 01:16:20 +01:00
Andrew Radev
1cd235ecdd
ActiveSupport CHANGELOG entry moved to correct place
2011-05-28 17:23:45 +03:00
Andrew Radev
07a353dde1
Update CHANGELOG for ActiveSupport::OrderedHash change
2011-05-28 16:21:16 +03:00
Jon Leighton
1170cceaae
Removed ActiveSupport::SecureRandom in favour of SecureRandom from the standard library. (It has been deprecated in the 3-1-stable branch.)
2011-05-23 20:25:44 +01:00
Xavier Noria
bdbb15e5a5
new reporting method Kernel#quietly
2011-05-13 01:41:52 +02:00
Josh Kalderimis
49cd41f7df
updated the ActiveSupport changelog
2011-05-11 04:45:19 -07:00
Guillermo Iguaran
259c749de1
Merging 3.0.x CHANGELOGs
2011-05-10 11:51:35 -05:00
Guillermo Iguaran
1021b51b4f
Just a minor fix in A.S CHANGELOG
2011-05-08 22:59:25 -07:00
David Heinemeier Hansson
39372964d2
Add String#inquiry as a convenience method for turning a string into a StringInquirer object [DHH]
2011-04-18 10:57:38 +02:00
Prem Sichanugrist
733bfa63f5
Remove #among?
from Active Support
...
After a long list of discussion about the performance problem from using varargs and the reason that we can't find a great pair for it, it would be best to remove support for it for now.
It will come back if we can find a good pair for it. For now, Bon Voyage, `#among?`.
2011-04-13 20:25:28 +08:00
David Heinemeier Hansson
d1575ae1b9
Change Object#either? to Object#among? -- thanks to @jamesarosen for the suggestion!
2011-04-12 00:23:07 +02:00
Prem Sichanugrist, Brian Morearty, John Reitano
635d991683
Add support for Object#in? and Object#either? in Active Support [ #6321 state:committed]
...
This will allow you to check if an object is included in another object
or the list of objects or not.
This patch is derived from patch by Brian Morearty and John Reitano on
Lighthouse ticket. I've rewrite it and make sure that we support both
'another object' and 'list of objects' version, as it surely be useful
to support both.
2011-04-11 03:17:08 +08:00
David Heinemeier Hansson
0eb6e5e270
Moved Turn activation/dependency to railties
2011-03-31 16:20:59 -07:00
David Heinemeier Hansson
6eff04499e
Add using Turn with natural language test case names if the library is available (which it will be in Rails 3.1) [DHH]
2011-03-31 12:25:04 -07:00
Aaron Patterson
b247c8d71a
* LocalCache strategy is now a real middleware class, not an anonymous class
...
posing for pictures.
2011-03-02 14:05:06 -08:00
Aaron Patterson
7b6bfe84f3
refactor Reference to a ClassCache object, fix lazy lookup in Middleware so that anonymous classes are supported
2011-03-01 17:20:35 -08:00
Xavier Noria
6c30530b00
adds Range#cover? to the CHANGELOG
2011-02-20 11:01:07 +01:00
Xavier Noria
41366cdec6
syncs CHANGELOGs for 3.0.2 in 3-0-stable with the ones in master
2010-11-09 20:56:41 +01:00
Santiago Pastorino
460c4efd71
Merge CHANGELOGs from 3-0-stable
2010-10-18 12:24:41 -02:00
Rob Zolkos & Xavier Noria
bc1bcddede
implements weeks_ago and prev_week for Date/DateTime/Time [ #5122 state:committed]
2010-10-16 02:23:23 +02:00
Andrew White
f1966337fa
Add before_remove_const callback to ActiveSupport::Dependencies.remove_unloadable_constants!
...
Signed-off-by: Xavier Noria <fxn@hashref.com>
2010-09-01 22:32:41 +02:00
Jeremy Kemper
b861942691
Update CHANGELOGs for 3.0 release and upcoming 3.1
2010-08-29 22:06:48 -07:00
Xavier Noria
475ea14fd0
implements String#strip_heredoc
2010-08-29 23:52:38 +02:00
Mike Perham
390d285ef6
Support pluggable cache stores.
...
[#5486 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-08-28 15:43:10 -07:00
Santiago Pastorino
b451de0d6d
Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;)
2010-08-14 04:12:33 -03:00
Paco Guzman
8a2b69b727
applied guidelines to "# =>"
2010-08-12 17:09:58 +02:00
David Heinemeier Hansson
856fc4bbc3
Prep for RC
2010-07-26 12:53:25 -05:00
Santiago Pastorino
9a32af96d1
CHANGELOG updated Object#returning removed
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-07-25 23:30:36 +02:00
wycats
c1beeb4068
Add CHANGELOG for new deprecation style
2010-06-29 12:25:13 -07:00
Xavier Noria
6f83a5036d
renames load_(once_)paths to autoload_(once_)paths in dependencies and config
2010-06-24 00:17:28 +02:00
José Valim
50d37a7606
Update ActiveSupport CHANGELOG with latest changes.
2010-06-20 14:47:56 +02:00
Xavier Noria
36143d26cb
revises implementation of AS::OrderedHash#merge!
2010-06-13 06:37:54 +02:00
Paul Mucur
58e21a4a0d
Support passing a block to ActiveSupport::OrderedHash's merge and merge! [ #4838 state:committed]
...
For better consistency with Ruby's own Hash implementation.
Signed-off-by: Xavier Noria <fxn@hashref.com>
2010-06-13 04:19:35 +02:00
Xavier Noria
f28d5cfbe6
registers 4146a44 in CHANGELOG
2010-06-12 22:16:57 +02:00
David Heinemeier Hansson
32d4330b81
Get ready for beta 4
2010-06-08 14:47:02 -04:00
Xavier Noria
67a43554f1
removes Array#random_element and backports Array#sample from Ruby 1.9, thanks to Marc-Andre Lafortune
2010-06-05 01:15:17 +02:00
David Heinemeier Hansson
d57397c4b6
Extracted String#truncate from TextHelper#truncate [DHH]
2010-06-01 16:38:42 -05:00
Norman Clarke
f3abc8ac36
Use multibyte proxy class on 1.9, refactor Unicode.
...
Makes String#mb_chars on Ruby 1.9 return an instance of ActiveSupport::Multibyte::Chars to work around 1.9's lack of Unicode case folding.
Refactors class methods from ActiveSupport::Multibyte::Chars into new Unicode module, adding other related functionality for consistency.
[#4594 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-05-21 12:24:54 -07:00
Xavier Noria
b753b4a076
removes deprecations of last_(month|year) from master, they will be deprecated in 2.3 instead
2010-05-19 00:20:10 +02:00
Rizwan Reza
8c5e1652c7
Renames Array#rand -> Array#random_element
...
Signed-off-by: Xavier Noria <fxn@hashref.com>
2010-05-17 23:03:16 +02:00
Xavier Noria
2203c781a7
defines prev_(month|year) in Date and Time to ease transition to 1.9, and deprecates last_(month|year)
2010-05-12 23:04:17 +02:00