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
|
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 |
|
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
|
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
|
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
|
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
|
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 |
|
Michael Koziarski
|
62ac3279e8
|
Add missing files
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6264 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-28 00:49:01 +00:00 |
|
Michael Koziarski
|
203932ec88
|
Add File.atomic_write to prevent users from seeing half written files. Useful for situations like Page Caching and the like. [Koz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6262 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-27 23:16:06 +00:00 |
|
Michael Koziarski
|
c9770d8a5a
|
Allow users to provide custom formatters to Logger. [aeden] Closes #7106, #2484
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6225 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-25 00:07:54 +00:00 |
|
Jeremy Kemper
|
002c0aeef3
|
Hash#to_query CGI-escapes its keys.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6148 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-11 06:29:04 +00:00 |
|
Jeremy Kemper
|
39ae7025e8
|
Don't test for hash sort order.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6147 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-02-11 04:40:58 +00:00 |
|
Jeremy Kemper
|
b0ed5057e0
|
Full test coverage for Inflector. Closes #7228.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6075 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-28 15:52:45 +00:00 |
|
Jeremy Kemper
|
17fee001a9
|
:db format for Date#to_s
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6060 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-28 07:36:34 +00:00 |
|
Rick Olson
|
5e85a1c7f8
|
Added :instance_writer option to #mattr_writer/accessor, #cattr_writer/accessor, and #class_inheritable_writer to skip the creation of the instance writer. [Rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6050 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-28 01:18:51 +00:00 |
|
Rick Olson
|
eca93d0970
|
Rename test file so it's not ignored by rake
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6049 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-28 00:47:32 +00:00 |
|
David Heinemeier Hansson
|
35433859bd
|
Added Hash#to_query to turn a hash of values into a form-encoded query string [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6038 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-24 22:12:31 +00:00 |
|
Nicholas Seckar
|
6ee09b6a0a
|
Increase test coverage for subclasses_of. Closes #7335.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6036 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-24 20:47:32 +00:00 |
|
Rick Olson
|
be7f86e37a
|
Added test coverage for Inflector.inflections.clear. Closes #7179. [Rich Collins]. Remove unused code from Duration#inspect. Closes #7180. [Rich Collins]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6022 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-23 05:32:08 +00:00 |
|
Rick Olson
|
a44cee2549
|
ActiveSupport::Multibyte::Handlers::UTF8Handler should raise when a range and an integer are passed in (just like the native implementation). Closes #7176 [Rich Collins]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6021 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-23 05:27:25 +00:00 |
|
Rick Olson
|
f3f691eaf2
|
A couple extra tests for #classify. Closes #7273. [Josh Susser]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6019 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-23 05:11:34 +00:00 |
|
Michael Koziarski
|
59418618b9
|
Improve test coverage of Duration. Closes #7182 [richcollins]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6007 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-21 23:31:41 +00:00 |
|
Sam Stephenson
|
312e6edf91
|
Fix that Dates couldn't be subtracted from Dates after [5940].
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5954 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-15 22:02:11 +00:00 |
|
Jamis Buck
|
f28eef9a27
|
Add Object#acts_like? and Time#acts_like_time? and Date#acts_like_date? to facilitate duck-typing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5951 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-15 17:12:32 +00:00 |
|
Michael Koziarski
|
276c9f29cd
|
Make 1.months and friends accurate by introducing a Duration class. #6835 [eventualbuddha]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5940 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-15 06:54:50 +00:00 |
|
Jeremy Kemper
|
0a06ffc08e
|
tighten test_load_once_paths_should_behave_when_recursively_loading
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5816 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-01 00:25:30 +00:00 |
|
Jeremy Kemper
|
cbe0c3c54f
|
Check for nil name also. Closes #6561.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5814 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-31 23:53:05 +00:00 |
|
Nicholas Seckar
|
91b71ed30c
|
Fix Dependencies.autoloaded? to ignore anonymous modules. Closes #6561.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5811 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-31 18:53:58 +00:00 |
|
Nicholas Seckar
|
1e170da30d
|
Checkin failing test case related to load once paths
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5781 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-24 14:41:29 +00:00 |
|
Jeremy Kemper
|
01452feff1
|
DeprecatedInstanceVariable#inspect doesn't warn since test/unit, error logs, and others use it for diagnostics.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5763 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-20 21:28:31 +00:00 |
|
Jeremy Kemper
|
8a73d4fe6f
|
Deprecation: silence warnings when reporting test errors.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5728 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-17 08:21:45 +00:00 |
|
Jeremy Kemper
|
86deb27095
|
Hash#slice(*keys) returns a new hash with only the given keys. #slice! replaces the hash with only the given keys. Works with HashWithIndifferentAccess also.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5726 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-17 00:49:41 +00:00 |
|
Jeremy Kemper
|
05a5209f82
|
HashWithIndifferentAccess#to_hash converts to a Hash with String keys and the same default value. Fix Hash#reverse_update to be an alias for reverse_merge./script/console More thoroughly test the reverse_* methods.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5725 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-16 23:48:24 +00:00 |
|
Jeremy Kemper
|
0fc8056975
|
Silence warnings; use more precise assertions.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5724 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-16 23:45:44 +00:00 |
|
Nicholas Seckar
|
6a485c3100
|
Fix remove_constant to correctly handle constant names of the form "::A::...". References #6720.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5710 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-09 05:21:33 +00:00 |
|
David Heinemeier Hansson
|
0297b31b82
|
Fixed Array#to_xml when it contains a series of hashes (each piece would get its own XML declaration) (closes #6610) [thkarcher/cyu]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5668 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-03 16:47:53 +00:00 |
|
David Heinemeier Hansson
|
eacca8d7e6
|
Added Time#to_s(:time) which will just return H:M, like 17:44 [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5628 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-25 23:56:28 +00:00 |
|
Jeremy Kemper
|
615d05f5de
|
Test autoloading nested subclass of parent.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5541 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-16 22:50:46 +00:00 |
|
Marcel Molina
|
309a6bd550
|
Add Module#attr_accessor_with_default to initialize value of attribute before setting it. Closes #6538. [Stuart Halloway, Marcel Molina Jr.]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5539 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-16 19:35:13 +00:00 |
|
Jeremy Kemper
|
b97ffa2a4f
|
Hash#to_xml handles keys with the same name as Kernel methods. Closes #6613.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5521 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-14 09:08:40 +00:00 |
|
Sam Stephenson
|
2516063f61
|
Don't quote hash keys in Hash#to_json if they're valid JavaScript identifiers.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5486 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-11-11 18:25:26 +00:00 |
|