homa
ef79b8400f
Inflector/constantize - inject method lets us to avoid using another variable
2012-02-28 18:34:19 +01:00
Xavier Noria
699ba8ab52
Merge pull request #4284 from mattdbridges/time_calculation_aliases
...
Added aliases for prev_year, prev_month, and prev_week in Time and Date calculations
2012-02-28 01:37:19 -08:00
Aaron Patterson
f42c96331a
call binmode on the tempfile for Ruby 1.8 compatibility
2012-02-27 11:57:04 -08:00
Aaron Patterson
9ad7767aba
Merge pull request #5179 from RalphShnelvar/Binary_mode_Window_bug
...
Binary mode window bug
2012-02-27 10:10:53 -08:00
Paco Guzman
152a393d4f
Update changelogs with rails 3.0-stable branch info
2012-02-25 13:50:08 +01:00
Xavier Noria
31ceb5e67b
decouples the implementation of the inflector from its test suite
...
Trying alternative implementations of the inflections
is hard because the suite is coupled with the current
one, setting ivars by hand etc. This commit relies on
initialize_dup, as long as you maintain that one you
can tweak the implementation.
2012-02-24 15:06:17 -08:00
Bogdan Gusiev
10bac29b33
AS::Callbacks: deprecate rescuable option
2012-02-22 17:43:13 +02:00
Matt Bridges
d6366625e0
Adding :last_week, :last_month, and :last_year aliases to Time and Date
...
core extensions
2012-02-21 16:27:08 -06:00
Vishnu Atrai
cd641fa96e
ordered_options will work if inherited from Hash, remove OrderedHash usage
2012-02-21 23:08:36 +05:30
Aaron Patterson
12e2405a27
Merge pull request #5108 from mirakui/patch-1
...
Bug: cache_key.size doesn't return length of filename but size of file
2012-02-21 09:14:19 -08:00
Santiago Pastorino
67a5157974
Merge pull request #5112 from nupurjain/activesupport_cache_refactor
...
suggested changes.
2012-02-21 03:44:06 -08:00
Nupur Jain
f0baa1c301
suggested changes.
2012-02-21 16:50:35 +05:30
Issei Naruta
0b1ce07822
Bug: cache_path.size doesn't return length of filename but size of file if cache_path is Pathname.
2012-02-21 18:35:31 +09:00
Vijay Dev
2cb86cdb8a
Merge branch 'master' of github.com:lifo/docrails
2012-02-18 22:02:34 +05:30
Eric Oestrich
3720d5ee19
Update Time#change docs to reflect the options it uses
...
[ci skip]
2012-02-17 11:02:27 -05:00
Sokolov Yura
1076c88784
sync __run_callbacks with ruby-trunk
...
https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/34580
In this revision behavior of respond_to? had changed: now to ask about
protected method one should pass second argument `true`
2012-02-14 15:05:45 +04:00
Sergey Nartimov
b5f5e279a6
remove unnecessary require core_ext/string/encoding
2012-02-14 10:09:21 +03:00
Xavier Noria
6bd7023e2f
prefer tr to gsub for replacing characters
2012-02-12 16:59:51 -08:00
Xavier Noria
5cff94fd85
inflection regexp are meant to be applied once
2012-02-12 16:57:47 -08:00
Xavier Noria
dc03a2f56c
removes redundant argument
2012-02-12 16:45:14 -08:00
Xavier Noria
d3071db120
boosts inflections
...
The impact of this change has been measured pluralizing
the entire /usr/share/dict/words, showing a 6x speedup
2012-02-12 15:58:10 -08:00
Xavier Noria
5f548eb28e
say unshift when you mean unshift (modulus prepend)
2012-02-11 04:58:40 -08:00
Xavier Noria
fd5d9b366c
fixes a regression introduced by 532cd4, and a bogus test in AP the regression uncovered
2012-02-10 22:17:30 -08:00
Xavier Noria
6728191494
Merge pull request #4719 from markmcspadden/singularize_words_that_end_in_ss
...
Add Inflection test (and fixes) to ensure singularizing a singular actually give you the correct singular in more cases
2012-02-10 11:14:10 -08:00
Aaron Patterson
fc3fad8d85
Merge pull request #4985 from shigeya/range_overlaps_to_use_cover
...
make Range#overlaps? accept Range of Time
2012-02-10 10:11:09 -08:00
Shigeya Suzuki
6f68e63274
make Range#overlaps? accept Range of Time
2012-02-09 22:08:28 -08:00
kennyj
e43b0251ec
Bump tzinfo. 0.3.31 was released on November 6, 2011.
2012-02-10 02:32:28 +09:00
kennyj
63dc9b46b1
Fix GH #4909 . Dependency on TZInfo move from AR to AS.
2012-02-10 01:38:12 +09:00
Uddhava
53f442be28
Replaced OrderedHash usage with Ruby 1.9 Hash
2012-02-09 17:35:22 +05:30
Xavier Noria
827b520bd1
Merge pull request #4878 from vijaydev/ordinal-2072
...
PR #2072 with docs
2012-02-07 14:08:02 -08:00
kennyj
9abdabf185
Optional start_day argument for Time#all_week.
...
Closes #4883
2012-02-06 00:20:16 +09:00
Bogdan Gusiev
24b75fc40c
AS::Callbacks: remove unused code
2012-02-05 12:58:44 +02:00
Vijay Dev
a470d79697
Document Integer#ordinal available in PR #2072 .
...
Also remove an unasserted line in the tests.
2012-02-04 18:46:19 +05:30
Tim Gildea
6fa0190fe4
Add ActiveSupport::Inflector.ordinal and Integer#ordinal
2012-02-04 18:25:54 +05:30
Vijay Dev
7a72fdc7dc
remove unasserted line in test
2012-02-04 18:24:17 +05:30
Bogdan Gusiev
4f53091dd1
AS::Callbacks: rip out per_key option.
2012-02-04 13:31:00 +02:00
José Valim
b41ef0a448
Merge pull request #4866 from bogdan/terminate_after_callbacks
...
AS::Callbacks#define_callbacks: add :terminate_after_callbacks option
2012-02-04 02:53:47 -08:00
Bogdan Gusiev
7661955634
AS::Callbacks: :skip_after_callbacks_if_terminated option
2012-02-03 17:57:53 +02:00
José Valim
d709b124d1
Merge pull request #4865 from bogdan/deprecate_per_key
...
AC::Callbacks: remove usage of :per_key option from filters
2012-02-03 06:23:00 -08:00
Vijay Dev
5325adc9ca
Merge pull request #4863 from norman/unicode
...
Added note about new Unicode version.
2012-02-03 05:23:53 -08:00
Norman Clarke
27bf1b1c8e
Added note about new Unicode version.
2012-02-03 10:20:25 -03:00
José Valim
e22c506c0a
Merge pull request #4862 from norman/unicode
...
Update Unicode database to recently-released 6.1.
2012-02-03 05:13:07 -08:00
Norman Clarke
66c04431d3
Update Unicode database to recently-released 6.1.
...
http://www.geek.com/articles/geek-pick/unicode-6-1-released-complete-with-emoji-characters-and-a-pile-of-poo-2012022/
2012-02-03 10:09:26 -03:00
Arun Agrawal
bfb84cfb3e
Verbose output for tests.
...
See #3892
2012-02-03 08:01:24 -05:00
Bogdan Gusiev
1c61f7e6cb
AC::Callbacks: remove usage of :per_key option from filters
2012-02-03 14:27:15 +02:00
José Valim
593fe4312f
Merge pull request #3892 from arunagw/verbose_rake_test
...
No Verbose the output for test.
2012-02-02 02:42:28 -08:00
Aaron Patterson
7bfdbeabd2
Merge pull request #4784 from semaperepelitsa/constantize
...
A little constantize update
2012-02-01 10:31:51 -08:00
Vijay Dev
d7a85c5c51
revise docs [ci skip]
2012-02-01 23:31:43 +05:30
Vijay Dev
d2c6400948
Merge branch 'master' of github.com:lifo/docrails
2012-02-01 22:25:52 +05:30
Arun Agrawal
1d3bc506f4
No verbose the output for tests.
2012-02-01 07:21:38 -05:00