Jeremy Kemper
983dc80787
Don't shadow local with black arg
2008-11-07 01:08:59 -05:00
Jeremy Kemper
b5291ed0f1
Mark utf-8 encoding
2008-11-07 01:01:04 -05:00
Luca Guidi
4ccbc5dffb
Increment the version of our modified memcache_client code to prevent users with the gem installed not seeing our changes.
...
The changes will be submitted upstream.
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1239 state:committed]
2008-11-06 19:59:02 +00:00
Pratik Naik
aba1d77f38
Check first for git repository before using git branch
2008-11-02 19:36:56 +05:30
Pratik Naik
b047929c14
Merge with docrails
2008-11-02 04:02:40 +05:30
David Heinemeier Hansson
e466ae13e9
Fixed the option merging in Array#to_xml [ #1126 state:resolved]
2008-10-31 18:41:25 +01:00
Tarmo Tänav
ef53d91516
Don't rely on string CoreExtensions in StringInquirer since it is sometimes expected to work before the core extension are loaded
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2008-10-30 17:48:32 +01:00
David Heinemeier Hansson
ea2545fd8d
Update the default deprecation message to not promise that theres more info at the Rails site [ #776 state:resolved]
2008-10-30 12:42:23 +01:00
David Heinemeier Hansson
4dbfe18b37
Proper API for reloading translations
2008-10-29 10:51:56 +01:00
Michael Koziarski
4684e76aef
Remove reload call from vendored gem. Breaks a bunch of stuff as Dispatcher isn't always defined.
...
This call will be moved into Dispatcher in a bit.
2008-10-28 21:55:59 +01:00
David Heinemeier Hansson
1b0afb31df
A few more style changes
2008-10-28 19:38:26 +01:00
David Heinemeier Hansson
d5b0ba6632
Make I18n::Backend::Simple reload its translations in development mode [DHH]
2008-10-28 19:28:51 +01:00
David Heinemeier Hansson
a61c4dfa70
Follow style conventions
2008-10-28 18:35:12 +01:00
Pratik Naik
a03e2b356c
Merge with docrails. Also add a rake task to generate guides in your rails application :
...
rake doc:guides
The rake task will generate guides inside doc/guides directory of your application. Open index.html to browse.
2008-10-21 18:33:40 +01:00
Pratik Naik
a5cdb7a813
Remove stuff that was deprecated in 2-1-stable
2008-10-21 11:34:56 +01:00
Geoff Garside
1082cba441
Bump active_support/vendor.rb tzinfo version number [ #1237 state:resolved]
2008-10-20 09:13:45 -05:00
gbuesing
c79f1d281f
TimeWithZone#freeze: preload instance variables so that we can actually freeze
2008-10-19 22:33:26 -05:00
gbuesing
93e1bff82a
Bundle TzInfo version 0.3.11
2008-10-19 22:06:32 -05:00
Daniel Schierbeck
de0ed534f6
Simplified the implementation of the :prefix option.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#984 state:committed]
2008-10-19 13:42:57 +02:00
Daniel Schierbeck
32a58d2afc
Added documentation of the new :prefix option.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-10-19 13:42:52 +02:00
Daniel Schierbeck
ab2b1570fd
Made the :prefix option on Module#delegate accept a custom prefix.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-10-19 13:42:52 +02:00
Daniel Schierbeck
731c63f8eb
Added :prefix option to Module#delegate.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-10-19 13:42:52 +02:00
Pratik Naik
18e7bf2865
Fix Brasilia timezone. [ #1180 state:resolved]
2008-10-17 23:43:26 +02:00
Doug Barth
4b63c2700f
Bring MemCacheStore and CompressedMemCacheStore inline with expected counter manipulation semantics.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-10-17 18:09:27 +02:00
Doug Barth
c3d6205a4b
Fix cache counter semantics for MemoryCache, FileStoreCache, and (presumably) the DRbStore.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-10-17 18:09:26 +02:00
Michael Koziarski
3e9fc279e5
Avoid warnings by undefining the old method transliterate.
2008-10-14 21:24:34 +02:00
Michael Koziarski
e0993c6c37
Reverse the order of the iconv arguments to remain compatible with older rubies / iconvs.
...
[#1195 state:resolved]
2008-10-14 21:24:19 +02:00
Tom Lea
a6e5d29e08
Added deprecated warning messages to Float#months and Float#years deprications.
2008-10-13 20:00:10 -05:00
Tom Lea
d599b80009
Deprecated Float#years and Float#months, moved Numeric#years and Numeric#months into Integer.
2008-10-13 20:00:09 -05:00
Tom Lea
27c70ff386
Time#advance recognizes fractional days and weeks [ #970 state:resolved]
2008-10-13 20:00:09 -05:00
Tarmo Tänav
d69b4b7bea
Made i18n simple backend able to store false values (and not confuse them with nil or lack of value)
...
Implemented support.array.skip_last_comma i18n key for
Array#to_sentence, this also tests the ability to store false.
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-10-09 01:19:02 +01:00
Michael Koziarski
5556db22c5
Reduce memory usage slightly in String#parameterize
...
[#1034 state:committed]
2008-10-07 21:01:43 +02:00
Michael Koziarski
a4629e707d
Extract transliteration code to a seperate method.
...
Use iconv by default, but only when the transliteration is well behaved. When it isn't, fallback to mb_chars
2008-10-07 21:01:38 +02:00
Manfred Stienstra
efb9ef65cc
Fix a typo in ActiveSupport::Multibyte::NORMALIZATION_FORMS. [ #1179 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-10-06 19:04:45 +01:00
Eugene Pimenov
8603813ac6
Fix memoize_all for methods with punctuation [ #1175 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-10-05 17:25:58 -05:00
Pratik Naik
a2932784bb
Merge docrails
2008-10-05 22:16:26 +01:00
Pratik Naik
259a7a844b
Add tests for ActiveSupport::Rescuable. Use ActiveSupport::Rescuable in ActionController::Base.
2008-10-04 22:13:50 +01:00
Norbert Crombach
964dfc1557
First draft of ActiveSupport::Rescuable
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-10-04 20:28:08 +01:00
Michael Koziarski
1dfebd4f0d
1.8 compatibility for random_number method on SecureRandom.
...
1.9 has its own version.
2008-10-04 21:11:30 +02:00
madlep
00e2ba76b2
added nicer failure reporting to #assert_difference to tell you the expression that failed rather than just the expected and actual values
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1161 state:committed]
2008-10-03 21:31:56 +02:00
Nick Sieger
395369bc2b
Provide alternate implementation of Object#subclasses_of for JRuby
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1144 state:committed]
2008-10-03 21:28:47 +02:00
adam
2e75bd0808
slice now returns indifferent hash if called on one
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1096 state:committed]
2008-09-23 14:04:20 +02:00
Adam Cigánek
a4f2ba8fb3
Modified ActiveSupport::Inflector#parameterize with code from slugalizer ( http://github.com/henrik/slugalizer )
...
Handles trailing and leading slashes, and squashes repeated separators into a single character.
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1034 state:committed]
2008-09-23 08:08:21 +02:00
Michael Koziarski
638bd19c7f
Merge branch 'patches' into multibyte
2008-09-22 21:35:35 +02:00
Michael Koziarski
5f86451a4c
Bump the Version constants to align with the *next* release rather than the previous release.
...
This allows people tracking non-release gems or git submodules to use the constants.
2008-09-22 21:32:12 +02:00
Manfred Stienstra
00a4286551
Change call to String#chars in inflector to String#mb_chars.
2008-09-21 17:51:01 +02:00
Manfred Stienstra
44e44b42d9
Deprecated String#chars in favor of String#mb_chars.
2008-09-21 17:47:19 +02:00
Manfred Stienstra
85c05b5394
Add tests for u_unpack to make sure it raises an EncodingError on invalid UTF-8 strings.
2008-09-21 17:30:45 +02:00
Manfred Stienstra
809af7f558
Non-string results from forwarded methods should be returned vertabim.
2008-09-21 17:29:22 +02:00
Manfred Stienstra
bfc73852b1
Improve documentation.
2008-09-21 17:28:05 +02:00