Rick Olson
|
ed1ed9ed97
|
revert [6924]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6946 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-06-05 14:09:15 +00:00 |
|
Jeremy Kemper
|
1b32a305df
|
Add Date#since, ago, beginning_of_day, and end_of_day. Date + seconds works now. Closes #8575.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6937 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-06-04 22:00:53 +00:00 |
|
Jeremy Kemper
|
4685fa0c20
|
String#to_time overflows to DateTime. Add String#to_datetime. Closes #8572.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6935 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-06-04 19:49:13 +00:00 |
|
Jeremy Kemper
|
601778e38a
|
Date.yesterday and .tomorrow. Closes #8571.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6934 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-06-04 18:14:42 +00:00 |
|
Jeremy Kemper
|
1312259294
|
Readable Date and DateTime#inspect. Closes #8570.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6933 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-06-04 17:49:43 +00:00 |
|
Tobias Lütke
|
13058b0188
|
Enhance assert_difference to accept arrays of strings which are then evaled
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6926 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-06-01 20:20:19 +00:00 |
|
David Heinemeier Hansson
|
846e858727
|
Added proper handling of arrays (closes #8537) [hasmanyjosh]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6924 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-06-01 06:48:09 +00:00 |
|
Jeremy Kemper
|
507da04a14
|
Move common DateTime calculations to Date. Closes #8536.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6921 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-06-01 04:03:46 +00:00 |
|
David Heinemeier Hansson
|
ff5c7c8c40
|
Added Date#change (like Time#change) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6910 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-31 16:37:09 +00:00 |
|
Jeremy Kemper
|
962b12fb9f
|
Fix imprecise duration addition test. Closes #8516 [Geoff Buesing]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6906 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-30 07:21:14 +00:00 |
|
Jeremy Kemper
|
b7d2dae6dc
|
DateTime#to_time converts to Time unless out of range. Date#to_datetime and Date#to_s(:rfc822). Closes #8512.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6902 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-30 06:24:32 +00:00 |
|
Jeremy Kemper
|
6503da6991
|
Time durations use since instead of + for accuracy. Closes #8513.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6901 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-30 06:21:08 +00:00 |
|
Rick Olson
|
0345c97587
|
escape <'s and >'s in JSON strings. #8371 [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6893 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-29 09:10:36 +00:00 |
|
Jeremy Kemper
|
af2ebb29da
|
Inflections: MatrixTest -> MatrixTests instead of MatricesTest. Closes #8496.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6886 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-29 02:40:34 +00:00 |
|
Jeremy Kemper
|
428d1f67da
|
Multibyte strings respond_to the String methods they proxy so they can be duck-typed. Closes #6549.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6882 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-28 23:33:54 +00:00 |
|
Jeremy Kemper
|
d8b67f7fe1
|
Generate rdoc with utf-8 charset. Closes #7188 [manfred, jferris]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6881 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-28 22:55:14 +00:00 |
|
Jeremy Kemper
|
77eb0a8493
|
Fix chained duration operation tests. Closes #8489 [Geoff Buesing]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6874 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-27 23:12:07 +00:00 |
|
Jeremy Kemper
|
652fe645f6
|
Array#to_xml yields the builder just like Hash and ActiveRecord::Base. Closes #8472.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6858 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-26 06:20:07 +00:00 |
|
Jeremy Kemper
|
66bde4ca52
|
DateTime uses Time formats. Closes #8476.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6854 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-26 01:07:25 +00:00 |
|
Jeremy Kemper
|
ad4f1fd630
|
Date, Time, and DateTime support formatting blocks in addition to strftime strings. Introduce :long_ordinal format, e.g. 'February 21st, 2005'. Closes #8191.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6844 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-25 21:43:19 +00:00 |
|
Jeremy Kemper
|
7b99b40352
|
Fix JSON date/time conversion tests.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6822 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-23 08:43:48 +00:00 |
|
Jeremy Kemper
|
a11374ad5a
|
whiny nil shouldn't depend on Active Record
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6818 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-23 07:03:31 +00:00 |
|
Jeremy Kemper
|
ae2db50873
|
Document Object#blank?. Closes #6491.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6793 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-20 23:19:10 +00:00 |
|
Jeremy Kemper
|
fd15359104
|
Date, Time, and DateTime#to_json. Closes #8399.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6773 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-18 21:20:35 +00:00 |
|
Jeremy Kemper
|
d2acf8b548
|
Silence some warnings.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6772 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-18 21:16:43 +00:00 |
|
Marcel Molina
|
2b6ad48ea3
|
Evaluate expression for assert_difference in the scope of the block
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6701 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-08 06:27:10 +00:00 |
|
Marcel Molina
|
5a9dc1231c
|
Fix typo and clarify code examples in documentation for assert_difference.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6694 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-08 03:57:28 +00:00 |
|
Marcel Molina
|
689b529ea8
|
Simplify API of assert_difference by passing in an expression that is evaluated before and after the passed in block. See documenation for examples of new API. [Marcel Molina Jr.]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6693 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-08 03:54:34 +00:00 |
|
Tobias Lütke
|
8f5c83bdea
|
Added assert_difference and assert_no_difference to test/unit assertions
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6647 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-01 21:02:37 +00:00 |
|
David Heinemeier Hansson
|
70ac560e42
|
Removed breakpointer and Binding.of_caller in favor of relying on ruby-debug by Kent Sibilev since the breakpointer has been broken since Ruby 1.8.4 and will not be coming back [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6611 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-28 15:57:29 +00:00 |
|
Jeremy Kemper
|
ddd243a9c1
|
Pull file from xml value only if it's a Hash. Closes #8190.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6583 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-26 01:14:17 +00:00 |
|
David Heinemeier Hansson
|
15f06ea8c2
|
XML values can be nil
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6582 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-26 01:08:07 +00:00 |
|
David Heinemeier Hansson
|
6a85955642
|
Added parsing of file type in Hash.xml_in so you can easily do file uploads with base64 from an API [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6578 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-25 17:25:44 +00:00 |
|
David Heinemeier Hansson
|
57352f86d4
|
Improved performance by relying less on exception raising #8159 [Blaine]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6571 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-24 16:58:24 +00:00 |
|
David Heinemeier Hansson
|
635c7f43dd
|
Run with the latest versions so beta gems will work
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6548 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-21 17:06:16 +00:00 |
|
David Heinemeier Hansson
|
178880ef7c
|
Use XSD-compatible type names for Hash#to_xml and make the converters extendable #8047 [Tim Pope]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6546 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-21 14:12:05 +00:00 |
|
David Heinemeier Hansson
|
c87d242bf7
|
Added yielding of builder in Hash#to_xml [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6540 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-19 22:32:39 +00:00 |
|
David Heinemeier Hansson
|
a0e78f7442
|
Fixed that parameters from XML should also be presented in a hash with indifferent access [DHH] Hash#with_indifferent_access now also converts hashes kept in arrays to indifferent access (makes it easier to treat HTML and XML parameters the same) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6532 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-04-16 22:17:59 +00:00 |
|
Jeremy Kemper
|
27ba5edef1
|
Hash#to_xml supports YAML attributes; ActiveRecord::Base#to_xml support serialized attributes. Closes #7502.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6444 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-18 07:30:09 +00:00 |
|
Sam Stephenson
|
3202fbabe6
|
Refactor ActiveSupport::JSON to be less obtuse. Add support for JSON decoding by way of Syck with ActiveSupport::JSON.decode(json_string). Prevent hash keys that are JavaScript reserved words from being unquoted during encoding.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6443 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-18 07:05:58 +00:00 |
|
Jeremy Kemper
|
46f092097b
|
alias_method_chain preserves the original method's visibility. Closes #7854.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6441 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-18 03:16:53 +00:00 |
|
Nicholas Seckar
|
d16aa4e039
|
Fix changelog line
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6427 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-14 23:30:08 +00:00 |
|
Nicholas Seckar
|
4eec5f4fbb
|
Update Dependencies to ignore constants inherited from ancestors. Closes #6951.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6426 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-14 23:27:28 +00:00 |
|
Jeremy Kemper
|
93db1989fe
|
Fix to_datetime test broken by DST change. Closes #7797.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6389 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-12 05:54:26 +00:00 |
|
Jeremy Kemper
|
8a7275e7f4
|
Array#to_query preserves its ordering. References #7756.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6378 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-11 13:26:28 +00:00 |
|
Jeremy Kemper
|
e17df19b86
|
Allow array and hash query parameters. Array route parameters are converted/to/a/path as before. References #6765, #7462. Closes #7047.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6343 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-06 07:47:23 +00:00 |
|
Jeremy Kemper
|
df57f53d09
|
Time#since overflows to DateTime. Introduce Time#to_datetime. Closes #7715.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6335 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-05 08:34:42 +00:00 |
|
Jeremy Kemper
|
8437baa44b
|
Out-of-range Time calculations transparently overflow to DateTime. Closes #7706.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6305 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-04 04:51:33 +00:00 |
|
Jeremy Kemper
|
70d7b3752f
|
Test DateTime native type in migrations. References #7649.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6304 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-04 04:33:55 +00:00 |
|
Jeremy Kemper
|
543622959a
|
DateTime calculations analogous to the Date and Time extensions. Closes #7693.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6303 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-04 04:12:42 +00:00 |
|