Jeremy Kemper
|
9a77e2f2be
|
r3240@asus: jeremy | 2005-11-20 23:22:34 -0800
Introduce enable_warnings counterpart to silence_warnings.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3134 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-21 07:29:44 +00:00 |
|
Jeremy Kemper
|
d792427301
|
r3239@asus: jeremy | 2005-11-20 23:21:37 -0800
Test for absence of instance vars rather than nil so we don't get a warning.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3133 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-21 07:29:39 +00:00 |
|
Jeremy Kemper
|
d1ac316fa4
|
r3219@asus: jeremy | 2005-11-20 03:07:19 -0800
silence necessary warnings in logger test. guard against multiple requires in kernel test.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3131 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-21 07:29:27 +00:00 |
|
Jeremy Kemper
|
a821c3dd93
|
r3215@asus: jeremy | 2005-11-20 02:05:56 -0800
Eliminate double-requires due to Ruby seeing different paths to the same file.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3127 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-21 07:29:04 +00:00 |
|
Marcel Molina
|
dd198e259f
|
Pull out Array#to_strings in favor of more general Symbol#to_proc.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3119 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-21 02:17:10 +00:00 |
|
Marcel Molina
|
69bf71f5e9
|
Add Symbol#to_proc, which allows for, e.g. [:foo, :bar].map(&:to_s).
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3118 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-21 02:15:32 +00:00 |
|
Marcel Molina
|
5d785dbc11
|
Add Array#to_strings which to_s's all elements in an array.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3114 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-20 22:36:02 +00:00 |
|
Marcel Molina
|
baa2ab5ac3
|
Add extended_by, extend_with_included_modules_from and copy_instance_variables_from to Object.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3113 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-20 22:32:40 +00:00 |
|
Sam Stephenson
|
645de33912
|
Added Kernel#silence_stderr to silence stderr for the duration of the given block. Changed Kernel#` to print a message to stderr (like Unix) instead of raising Errno::ENOENT on Win32.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2899 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-07 00:37:32 +00:00 |
|
Jeremy Kemper
|
ac58ba60f6
|
Changed 0.blank? to false rather than true since it violates everyone's expectation of blankness. Closes #2518, Closes #2705.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2849 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-02 15:37:58 +00:00 |
|
David Heinemeier Hansson
|
0d52abfd0e
|
Added petabytes and exebytes to numeric extensions (closes #2397) [timct@mac.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2746 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-10-26 13:10:03 +00:00 |
|
David Heinemeier Hansson
|
fabf34848e
|
Added Time#end_of_month to accompany Time#beginning_of_month (closes #2514) [Jens-Christian Fischer]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2745 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-10-26 13:07:22 +00:00 |
|
Nicholas Seckar
|
60b6fac5de
|
Remove generated code from app traces; improve accuracy of framework traces
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2676 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-10-18 14:06:34 +00:00 |
|
Nicholas Seckar
|
57f43473d7
|
Update Exception extension to show the first few framework frames in an application trace.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2654 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-10-16 17:47:19 +00:00 |
|
Nicholas Seckar
|
8103d373e6
|
Add unit tests for exception extensions
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2646 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-10-16 14:23:28 +00:00 |
|
Nicholas Seckar
|
e9df41a759
|
Added Enumerable#first_match
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2578 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-10-14 03:26:16 +00:00 |
|
David Heinemeier Hansson
|
f0448f5631
|
Fixed that Time#change should also reset usec when also resetting minutes #2459 [ikeda@dream.big.or.jp]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2568 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-10-13 20:28:55 +00:00 |
|
David Heinemeier Hansson
|
5ef931a4b8
|
Added to_s(:db) to Range
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2506 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-10-09 17:52:42 +00:00 |
|
Jamis Buck
|
ac419a0655
|
Add :rfc822 as an option for Time#to_s (to get rfc822-formatted times)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2445 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-10-03 18:30:03 +00:00 |
|
David Heinemeier Hansson
|
6a51940117
|
Fixed memory leak with Active Record classes when Dependencies.mechanism = :load #1704 [c.r.mcgrath@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2276 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-09-20 11:23:13 +00:00 |
|
David Heinemeier Hansson
|
8ae68efcf8
|
Added Hash#reverse_merge, Hash#reverse_merge!, and Hash#reverse_update to ease the use of default options. Added :connector and :skip_last_comma options to Array#to_sentence
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2192 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-09-11 08:23:50 +00:00 |
|
David Heinemeier Hansson
|
fe4abaa7df
|
Added Array#to_sentence that'll turn ['one', 'two', 'three'] into 'one, two, and three' #2157 [m.stienstra@fngtps.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2185 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-09-11 06:14:05 +00:00 |
|
David Heinemeier Hansson
|
42093fff94
|
Added test to ensure that silence_warnings also returned its value
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2180 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-09-11 05:00:51 +00:00 |
|
David Heinemeier Hansson
|
3cf7a0a460
|
Added Kernel#silence_warnings and puts it into use throughout the framework
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2179 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-09-11 04:58:27 +00:00 |
|
David Heinemeier Hansson
|
74896c0252
|
Added String#starts_with? and String#ends_with? #2118 [thijs@vandervossen.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2171 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-09-09 08:49:27 +00:00 |
|
David Heinemeier Hansson
|
558331596f
|
Make assert_valid_keys slightly more lenient
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2166 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-09-09 08:20:14 +00:00 |
|
David Heinemeier Hansson
|
1e145099a7
|
Added String#at, String#from, String#to, String#first, String#last in ActiveSupport::CoreExtensions::String::Access to ease access to individual characters and substrings in a string serving basically as human names for range access. Added easy extendability to the inflector through Inflector.inflections (using the Inflector::Inflections singleton class)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2110 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-09-03 07:11:47 +00:00 |
|
Jamis Buck
|
2fed808ee4
|
Make Time#last_month work when invoked on the 31st of a month.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2083 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-08-31 10:47:05 +00:00 |
|
Jamis Buck
|
70e96c9f5c
|
Add Time.days_in_month, and make Time#next_month work when invoked on the 31st of a month
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2082 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-08-31 10:36:35 +00:00 |
|
Jamis Buck
|
b4c34f7b2b
|
Fixed that Time#midnight would have a non-zero usec on some platforms #1836
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1959 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-07-31 09:16:21 +00:00 |
|
Nicholas Seckar
|
42723e3a0c
|
Factor Fixnum and Bignum extensions into Integer class
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1863 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-07-19 12:58:01 +00:00 |
|
Nicholas Seckar
|
dba6b8b46f
|
Add ordinalize to Fixnum and Bignum instances
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1855 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-07-18 02:16:17 +00:00 |
|
David Heinemeier Hansson
|
703ac4c5ac
|
Added more efficient implementation of the development mode reset of classes #1638 [Chris McGrath]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1761 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-07-07 14:48:16 +00:00 |
|
David Heinemeier Hansson
|
7e1d002673
|
Fixed memory leak with Object#remove_subclasses_of, which inflicted a Rails application running in development mode with a ~20KB leak per request #1289 [c.r.mcgrath@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1569 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-06-30 06:11:26 +00:00 |
|
Jeremy Kemper
|
bb6b14b04f
|
Increased accuracy of 1.year by accounting for leap years. The time extensions are not meant to be super-precise but this seems worth it since otherwise you lose a lot of days doing 40.years.ago. Closes #1488 [tuxie@dekadance.se]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1499 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-06-24 20:42:16 +00:00 |
|
David Heinemeier Hansson
|
8e56f5ea3e
|
Improved performance of Routes generation by a factor of 5 #1434 [Nicholas Seckar] Added named routes (NEEDS BETTER DESCRIPTION) #1434 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1496 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-06-24 16:40:01 +00:00 |
|
David Heinemeier Hansson
|
6c8d354b8d
|
Added Fix/Bignum#multiple_of? which returns true on 14.multiple_of?(7) and false on 16.multiple_of?(7) #1464 [Thomas Fuchs] Added even? and odd? to work with Bignums in addition to Fixnums #1464 [Thomas Fuchs]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1462 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-06-21 07:00:28 +00:00 |
|
David Heinemeier Hansson
|
a3659d5835
|
Fixed Time#at_beginning_of_week returned the next Monday instead of the previous one when called on a Sunday #1403 [jean.helou@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1431 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-06-16 05:56:49 +00:00 |
|
David Heinemeier Hansson
|
6375569484
|
Fixed that HashWithIndifferentAccess stringified all keys including symbols, ints, objects, and arrays #1162 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1329 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-19 19:13:30 +00:00 |
|
David Heinemeier Hansson
|
f9103e1fe2
|
Fixed Time#last_year to go back in time, not forward #1278 [fabien@odilat.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1319 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-19 17:36:25 +00:00 |
|
David Heinemeier Hansson
|
e84deb71d2
|
Fixed that Time.local(2005,12).months_since(1) would raise "ArgumentError: argument out of range" #1311 [jhahn@niveon.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1308 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-19 16:36:04 +00:00 |
|
David Heinemeier Hansson
|
d08271e62f
|
Added Fixnum#even? and Fixnum#odd?
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1094 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-05 16:54:17 +00:00 |
|
David Heinemeier Hansson
|
373adc7f86
|
Improved error reporting especially around never shallowing exceptions. Debugging helpers should be much easier now #980 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@985 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-03-23 11:53:40 +00:00 |
|
David Heinemeier Hansson
|
3697df1dd2
|
Improved error reporting especially around never shallowing exceptions. Debugging helpers should be much easier now #980 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@984 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-03-23 11:48:10 +00:00 |
|
David Heinemeier Hansson
|
5bca629000
|
Fixed tests for indifferent access
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@873 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-03-07 01:30:29 +00:00 |
|
David Heinemeier Hansson
|
71742114f8
|
Fixed Hash#indifferent_access to also deal with include? and fetch and nested hashes #726 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@872 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-03-07 01:21:58 +00:00 |
|
David Heinemeier Hansson
|
e4106a580e
|
Fixed an exception when using Ajax based requests from Safari because Safari appends a \000 to the post body. Symbols can't have \000 in them so indifferent access would throw an exception in the constructor. Indifferent hashes now use strings internally instead. #746 [Tobias Luetke]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@827 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-03-03 22:55:14 +00:00 |
|
David Heinemeier Hansson
|
6d688aa20c
|
Added String#to_time and String#to_date for wrapping ParseDate
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@824 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-03-02 13:07:02 +00:00 |
|
David Heinemeier Hansson
|
5d94fb33c6
|
Added year-based time calculations
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@779 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-02-24 00:07:01 +00:00 |
|
David Heinemeier Hansson
|
cf659de141
|
Added Date::Conversions for getting dates in different convenient string representations and other objects
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@738 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-02-21 17:09:20 +00:00 |
|