Pratik Naik
6577942b61
Deprecate render_component.
...
Please install render_component plugin from http://github.com/rails/render_component/tree/master
if your application uses this functionality.
2008-08-29 13:43:30 +01:00
Jeremy Kemper
85070b5e56
Date#freeze bug doesn't affect Ruby 1.9
2008-08-28 22:36:10 -07:00
Jeremy Kemper
c94f6ea2f3
Date#freeze bug doesn't affect Ruby 1.9
2008-08-28 22:27:55 -07:00
Jeremy Kemper
ce4d13861d
Merge branch 'master' of git@github.com:rails/rails
2008-08-28 11:47:06 -07:00
Joshua Peek
acbf2b74aa
Deprecated implicit local assignments when rendering partials
2008-08-28 10:37:46 -05:00
Bradford Folkens
293f99700d
Reinstate Range#step default argument.
...
[#595 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-08-27 23:48:54 -07:00
Jeremy Kemper
657898c821
Merge commit 'sven/i18n'
...
Conflicts:
activesupport/lib/active_support.rb
2008-08-27 12:31:07 -07:00
Joshua Peek
87fafe4074
Moved Logger extensions into core_ext
2008-08-27 11:33:18 -05:00
Luca Guidi
ce65a05c5b
Fix Ruby's Time marshaling bug in pre-1.9 versions of Ruby: utc instances are now correctly unmarshaled with a utc zone instead of the system local zone [ #900 state:resolved]
2008-08-27 08:57:36 -05:00
Hongli Lai (Phusion
b3411ff59e
Deprecate Rails::SecretKeyGenerator in favor of ActiveSupport::SecureRandom.
...
SecureRandom has a few minor security enhancements and can be used as a drop-in replacement
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#913 state:committed]
2008-08-27 15:08:16 +02:00
Marko Seppae
cba83ede5d
I18n: remove #populate from Simple backend as well
2008-08-27 12:00:14 +02:00
Marko Seppae
44de71ba94
I18n: removed #populate and #store_translations from api
2008-08-27 10:16:25 +02:00
Jeremy Kemper
4bcd64c9e9
Ruby 1.9 compat: switch profile_options to superclass_delegating_accessor
2008-08-25 22:01:02 -07:00
Jeremy Kemper
5e1ceb153c
Work around frozen Date memoization
2008-08-25 17:05:50 -07:00
Sven Fuchs
a61e87aeb9
update i18n gem
2008-08-25 11:20:24 +02:00
Jeremy Kemper
bb3dd6ad2e
Ruby 1.9 compat: update bundled i18n lib
2008-08-23 21:51:06 -07:00
Jeremy Kemper
92a7239a3d
Ruby 1.9: silence some warnings for block args shadowing local vars
2008-08-23 16:03:00 -07:00
Jeremy Kemper
e7127be365
Ruby 1.9: constantize takes advantage of new inherit arg to const_get and const_defined?
2008-08-23 15:59:59 -07:00
Sven Fuchs
d6989aa0e1
I18n: use :other instead of :many as default key for pluralization to better conform w/ cldr pluralization rules
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-08-23 21:23:00 +02:00
Peter Wagenet
a652c300ac
New inflectors will overwrite defaults [ #337 state:resolved]
...
Signed-off-by: Tarmo Tänav <tarmo@itech.ee >
2008-08-23 20:43:22 +03:00
Tarmo Tänav
5232d81281
Pass class through to DeprecatedConstantProxy target
...
This is needed because include_all_modules_from checks
calls "class" on every constant and sometimes it can
hit deprecated constants which aren't even Modules,
but while checking for it deprecation warnings are shown.
2008-08-23 19:12:14 +03:00
Jeremy Kemper
9dac5547ad
Merge branch 'master' into i18n
2008-08-22 13:01:53 -07:00
Jeremy Kemper
a6e05b18d6
Merge commit 'sven/i18n' into i18n
2008-08-22 12:44:14 -07:00
Amos King
381210daa0
camelize(:lower) should always downcase first character. [ #696 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-08-22 13:31:13 +01:00
Frederick Cheung
654c41255d
Mark Class as not being duplicable. [ #829 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-08-21 18:40:20 +01:00
Sven Fuchs
aad429a46e
Merge branch 'master' into i18n
2008-08-21 19:04:39 +02:00
Joshua Peek
6be8251ec8
Simplified and renamed CallbackChain union method to replace_or_append!
2008-08-21 00:51:06 -05:00
Joshua Peek
f388725bd6
Partial revert of 2681685 premature TypeArray abstraction
2008-08-21 00:28:25 -05:00
Iain Hecker
c1e0d8aa48
Locale file changed to yaml
2008-08-20 18:01:12 +02:00
Sven Fuchs
a6a62004c9
add human_name and value to ar validation #generate_message
2008-08-20 17:51:42 +02:00
Joshua Peek
5de340e79f
Ensure objects cached with MemoryStore are immutable
2008-08-19 19:20:10 -05:00
Sven Fuchs
c379582064
switch to class and instance instead of a module for the simple backend
2008-08-19 14:25:51 +02:00
Joshua Peek
96ab01e8f2
Maintain a seperate buffer for each thread
2008-08-18 23:36:13 -05:00
Joshua Peek
c1a8690d58
Consistently use the framework's configured logger and avoid reverting to RAILS_DEFAULT_LOGGER unless necessary.
2008-08-18 23:36:13 -05:00
Joshua Peek
a4da8175a2
Replace MemoryStore mutex with a monitor to avoid issues with nested calls
2008-08-18 20:17:08 -05:00
Jeremy Kemper
7fbe226de5
Ruby 1.9 and GC::Profiler updates
2008-08-18 16:41:08 -07:00
Joshua Peek
8cb14ee120
Ensure results returned by a memoized method are immutable
2008-08-13 21:30:46 -05:00
Joshua Peek
b8b30985d5
Marshal FileStore values
2008-08-13 20:57:26 -05:00
Jeremy Kemper
3fc9a67c04
memoize_ and unmemoize_all
2008-08-13 17:26:27 -07:00
Sven Fuchs
906e79396b
fix bug in I18n::Backend::Simple (A default array of non-existant keys returns the default array)
2008-08-13 13:43:02 +02:00
Jeffrey Hardy
282b420213
Account for the possibility of a nil options argument to CompressedMemCacheStore#read/#write
2008-08-13 04:19:31 -07:00
Sven Fuchs
78677cf6af
update activesupport/vendor i18n gem
2008-08-13 11:42:02 +02:00
Sven Fuchs
f26380b775
switch to using I18n.load_translations instead of requiring plain ruby files
2008-08-13 09:53:25 +02:00
Sven Fuchs
bfa143fd4d
fix require path in vendor.rb for fixed vendor/gem dir structure
2008-08-13 09:44:46 +02:00
Sven Fuchs
572f73fae6
update i18n gem and clean up dir structure within i18n-0.0.1
2008-08-10 21:44:35 +02:00
Jeremy Kemper
6c70c02c83
Freeze memoized results when instance is frozen instead of immediately so you can memoize mutable objects
2008-08-07 23:31:43 -07:00
Jeremy Kemper
a8057669ff
Fixed memoize with punctuation and freezing memoized methods with arguments
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-08-07 14:55:14 -05:00
Joshua Peek
be0d235a3b
Optimize memoized method if there are no arguments
2008-08-06 20:21:15 -05:00
Jeremy Kemper
ed8a882e47
JRuby: improve constantize performance. [ #410 state:resolved]
2008-08-06 17:31:57 -07:00
Joshua Peek
c6b7d0f344
Ensure file atomic write uses the cache directory as its tmp folder
2008-08-06 17:25:32 -05:00