Sven Fuchs
67fce4671e
crap, an array never has a request, stupid.
2008-06-22 13:49:08 +02:00
Sven Fuchs
d897acfbb1
remove DeprecatedConstantToMethodProxy again
2008-06-22 11:39:10 +02:00
Sven Fuchs
55e2e2e8b4
experimental DeprecatedConstantToMethodProxy
2008-06-21 18:12:59 +02:00
Sven Fuchs
8bfdabbd8b
incorporate #translate usage with several default keys
...
(use first default key that resolves to a translation). this might, depending
on the backend implementation save some expensive lookups (like db lookups)
2008-06-21 17:50:37 +02:00
Sven Fuchs
428aa24d24
Renamed lang/ to locale/ because that's what we seem to
...
standarize on. Also, in future this place can be used for data/code that's
not literally translations but conceptually belongs to the locale (like
custom pluralization algorithms etc.).
2008-06-21 11:35:02 +02:00
Sven Fuchs
c1e2506494
Changed process of storing translations from the
...
client libraries to the backend: clients now can pass a block to
backend#populate which can contain code to load and register translations.
This makes sense for backends that persist their translations (e.g. to db)
so the repeated loading and passing of translations throughout the server
startup would be wasted resources.
2008-06-21 11:27:19 +02:00
Sven Fuchs
585c8c17c3
rename Backend::Simple#add_translations to set_translations
...
because it overwrites existing translations
2008-06-20 09:13:20 +02:00
Sven Fuchs
fdb5f810dc
I18n has not been released as a gem, yet
2008-06-19 16:55:47 +02:00
Sven Fuchs
4a8486a1b1
add lang file for active_support
2008-06-19 16:43:30 +02:00
Sven Fuchs
45d41f0dad
integrating I18n into Rails
2008-06-19 16:25:27 +02:00
David Heinemeier Hansson
22af62cf48
Added Array#second through Array#tenth as aliases for Array#[1] through Array#[9] [DHH]
2008-06-17 17:37:29 -05:00
Jeremy Kemper
899d63b997
process time for benchmarks (quicker), wall time for profiling (lower overhead)
2008-06-16 03:45:20 -07:00
Jeremy Kemper
e433bb16a6
Merge branch 'master' of git@github.com:rails/rails
2008-06-16 03:05:24 -07:00
Jeremy Kemper
fa2a255352
missed . joining rails version and git revision
2008-06-16 00:16:43 -07:00
Jeremy Kemper
ed67d90a98
Metrics::Memory measures in fractional KB also
2008-06-16 00:10:30 -07:00
Jeremy Kemper
49d19515b7
Extract environment. Hardcode some git info so I can start working with it now.
2008-06-16 00:08:39 -07:00
Jeremy Kemper
e8f78998b2
Force runs to be an integer. Start and stop RubyProf in same scope. Expect memory measurements in fractional KB now instead of bytes. Convert object allocation measurements to integer. Wrap up measure_mode in Metric instance method.
2008-06-15 21:47:28 -07:00
Jeremy Kemper
f93a6d99e6
Delegate run_test to @harness
2008-06-15 16:26:51 -07:00
Jeremy Kemper
59b2daba4f
Metrics::[] escues NameError only. Fix MODE typo.
2008-06-15 14:48:15 -07:00
Jeremy Kemper
f7866cdac1
Extract Metric and Performer. Simplify and refactor.
2008-06-15 14:41:18 -07:00
Joshua Peek
b415538b5d
Updated bundled TZInfo gem to version 0.3.9 for Ruby 1.9 compat
2008-06-14 15:18:55 -05:00
Jeremy Kemper
01a4af4a74
Pass printer class to output_filename
2008-06-14 03:29:30 -07:00
Jeremy Kemper
eab71208db
Performance: integration test benchmarking and profiling. [Jeremy Kemper]
2008-06-14 02:04:38 -07:00
David Heinemeier Hansson
ba0f38f89e
Change Enumberal#several? to Enumberal#many?
2008-06-13 17:34:17 -05:00
Jeremy Kemper
d62382afa3
Ruby 1.9 compat: instance_methods are symbols instead of strings. Use the quicker instance_method(sym) rescue false check.
2008-06-12 18:22:30 -07:00
David Heinemeier Hansson
f74ba37f4e
Added test/do declaration style testing to ActiveSupport::TestCase [DHH via Jay Fields]
2008-06-12 20:10:38 -05:00
David Heinemeier Hansson
048ac3604c
Revert "Ensure MemCacheStore is required when using CompressedMemCacheStore since they are lazy load now."
...
This reverts commit dd4181f47d .
2008-06-12 19:52:44 -05:00
David Heinemeier Hansson
6573f6a4bc
Revert "Lazy load cache and session stores"
...
This reverts commit 19895f087c .
2008-06-12 19:52:33 -05:00
David Heinemeier Hansson
a3caf28da3
Added Object#present? which is equivalent to !Object#blank? [DHH]
2008-06-12 18:30:56 -05:00
David Heinemeier Hansson
ea3a7e1bb1
Merge branch 'master' of git@github.com:rails/rails
2008-06-12 17:48:30 -05:00
David Heinemeier Hansson
556204abaf
Added Enumberable#several? to encapsulate collection.size > 1 [DHH]
2008-06-12 17:46:15 -05:00
Joshua Peek
dd4181f47d
Ensure MemCacheStore is required when using CompressedMemCacheStore since they are lazy load now.
2008-06-12 14:20:30 -05:00
Grant Hollingworth
634e462a0b
Performance: speed up Hash#except. [ #382 state:resolved]
2008-06-11 00:47:02 -07:00
Jeremy Kemper
34c51c9e8f
Rubinious: setup/teardown override for miniunit
2008-06-10 14:01:16 -07:00
Jeremy Kemper
f5cbad21ac
Rubinious: work around h[k] ||= v returning []= result instead of v
2008-06-10 14:01:16 -07:00
Pratik Naik
19895f087c
Lazy load cache and session stores
2008-06-10 10:29:25 +01:00
Jeremy Kemper
6c970d79a0
Performance: faster Object.subclasses_of
2008-06-08 00:35:36 -07:00
Jeremy Kemper
67e4f16fc5
No need to build a Set since we're iterating instead of checking for inclusion now
2008-06-07 18:06:45 -07:00
Jeremy Kemper
84fb971c2f
Remove 1.9's String#chars also
2008-06-06 21:34:36 -07:00
Jeremy Kemper
e79d47847a
Qualify Inflector in rdoc examples also. [ #356 state:resolved]
2008-06-06 13:03:59 -07:00
Jeremy Kemper
566d717d78
Move Class::ModelName to Active Support module core_ext
2008-06-06 03:38:05 -07:00
Jeremy Kemper
0ccd0b569a
Fix doc typo. Move extend self so it's more immediately obvious. Require inflections from load path.
2008-06-06 03:02:22 -07:00
Joshua Peek
5fe2878973
Renamed StringQuestioneer to StringInquirer.
2008-06-04 15:06:32 -05:00
Joshua Peek
6e85f14817
Namespaced StringQuestioneer under ActiveSupport.
2008-06-04 15:02:51 -05:00
David Heinemeier Hansson
8afa725f4b
Wrapped Rails.env in StringQuestioneer so you can do Rails.env.development? [DHH]
2008-06-03 17:44:56 -05:00
Steve Purcell
7cfa6ec8a3
Add more standard Hash methods to ActiveSupport::OrderedHash [ #314 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-06-03 14:15:33 -05:00
Joshua Peek
c08547d226
Namespace Inflector, Dependencies, OrderedOptions, and TimeZone under ActiveSupport [ #238 state:resolved]
2008-06-03 13:32:53 -05:00
David Heinemeier Hansson
64fea9c45c
Fixed Date#end_of_quarter to not blow up on May 31st [ #289 state:resolved] (Danger)
2008-06-02 22:02:43 -05:00
David Heinemeier Hansson
29641ff05a
Fixed the brokeness from 952ec79bec
2008-06-02 19:00:25 -05:00
Cheah Chu Yeow
952ec79bec
Faster Hash#slice that doesn't use Enumerable#include?.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-06-02 11:47:15 -07:00