Commit Graph

2547 Commits

Author SHA1 Message Date
Xavier Noria
bdbb15e5a5 new reporting method Kernel#quietly 2011-05-13 01:41:52 +02:00
Josh Kalderimis
3d03c79829 Remove a circular require in AS deprecations. This is safe as AS deprecations is autoloaded as needed. 2011-05-12 15:24:10 +02:00
Santiago Pastorino
8cf4725f64 Merge pull request #227 from farski/master
Unnecessary redundancy in Time/Date calculations
2011-05-11 17:10:44 -07:00
Corin Langosch
295bf413e5 add missing require for ordered_hash dependency 2011-05-11 16:22:35 +02:00
Aaron Patterson
8f999a3f80 make sure log file is written in binary mode. fixes #497 2011-05-10 13:23:05 -07:00
Vijay Dev
3f36441e90 Update copyright year in Active Resource and Active Support
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-05-09 20:17:23 -03:00
José Valim
2750f2ee00 Fix failing test. 2011-05-09 17:08:59 +02:00
Mike Howard
372d72445b xml_mini.rb:_dasherize() replacement 20 to 25% faster
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-05-09 17:06:56 +02:00
Vijay Dev
91c18554f6 adds code examples for negative ordinalize 2011-05-08 23:48:15 +05:30
José Valim
9727dd1e38 Merge pull request #388 from smartinez87/remove_method
Better use #remove_possible_method here
2011-05-08 07:42:02 -07:00
Sebastian Martinez
b94d94a1ae Better use #remove_possible_method here 2011-05-08 11:31:56 -03:00
David Lee
099eb2b3fd indifferent access should recurse Hash subclasses
This commit makes Hash subclasses convert to HWIA by default for nested
objects of subclasses of Hash, but allows certain subclasses to prevent nested
conversion by introducing Hash#nested_under_indifferent_access that subclasses
can overwrite.

ActiveSupport::OrderedHash is one such subclass that overwrites
+nested_under_indifferent_access+, since implicitly converting it to HWIA would
remove the ordering of keys and values in Ruby 1.8.

This change is necessary because commit ce9456e broke nested indifferent access
conversion for all subclasses of Hash.
2011-05-08 03:40:51 -07:00
José Valim
30db3a82f6 Merge pull request #430 from dlee/methodoverride
Logs should show overridden method; Issue 426
2011-05-08 03:33:22 -07:00
José Valim
ad129639c7 Fix failing xml mini test. 2011-05-08 12:25:02 +02:00
José Valim
0ef978d1d2 Revert "Merge pull request #275 from pk-amooma/master"
Several AP tests fail after this change.

This reverts commit aaf01cd53718c8aa5b69ac056b997e6dd9893777, reversing
changes made to 9cc18c52faeebaad6a76bd62cdca1c6b9f96afed.
2011-05-07 23:45:15 +02:00
José Valim
803548c46b xml_mini_test.rb now runs. 2011-05-07 22:45:06 +02:00
Jason
3880ab0d7c ordinalize negative numbers patch
Applied patch by Amir Manji
  https://github.com/rails/rails/issues/437#issuecomment-1116045

Signed-off-by: Jason <jasonmichaelroth@gmail.com>
2011-05-07 13:21:00 -06:00
José Valim
f77cd7c7b6 Merge pull request #286 from jasoncodes/marshal_subsec
Fix marshal round-tripping of fractional seconds (Time#subsec).
2011-05-07 04:39:50 -07:00
José Valim
aaf01cd537 Merge pull request #275 from pk-amooma/master
properly escape "'" to "'" for XML
2011-05-07 03:41:26 -07:00
José Valim
b011a7a938 Merge remote branch 'rolftimmermans/desc_tracker' 2011-05-07 12:26:45 +02:00
José Valim
a761d77902 Merge pull request #248 from bigfix/enumerable_as_json
Enumerable should pass encoding options to children in #as_json/#to_json
2011-05-07 03:19:56 -07:00
David Lee
17a91a6ef9 Logs should show overridden method; Issue 426 2011-05-07 03:04:26 -07:00
José Valim
a6ef255ff5 Merge pull request #349 from bradley178/master
Hash.from_xml chokes on empty CDATA
2011-05-07 02:58:16 -07:00
José Valim
894bdbd53d Move variables to underscore format, update protected instance variables list. 2011-05-06 14:57:25 +02:00
Jan Xie
25288c137c minitest/ruby19 compatible performance test 2011-05-05 16:11:49 +08:00
David Heinemeier Hansson
169ae75e09 Prepare for beta1 2011-05-04 20:21:05 -05:00
Sebastian Martinez
1c2dc92aae Use #remove_possible_method instead 2011-05-04 15:07:34 -03:00
Aaron Patterson
b8ccd05524 convert strings to lambdas so we can use a consistent interface to the objects in the collection 2011-05-01 12:16:12 -07:00
Aaron Patterson
23eb81a3d1 assert_difference can take a callable piece of code rather than just evaling a string 2011-05-01 11:55:13 -07:00
Dan Pickett
1efaed5af1 Merge branch 'master' of github.com:lifo/docrails 2011-04-29 19:18:10 -04:00
Bradley Harris
aba149d702 Fix bug with empty CDATA not being handled in Hash.from_xml 2011-04-29 14:47:49 -04:00
José Valim
0c76eb1106 No need for &block here. 2011-04-29 20:30:21 +02:00
José Valim
bb44cd727f Tidy up previous commit. 2011-04-28 09:47:07 +02:00
José Valim
182d00897a Merged pull request #219 from panthomakos/memcache.
Character encoding issues with MemCacheStore in 1.9.2
2011-04-28 00:40:42 -07:00
José Valim
5297049e32 Merged pull request #328 from MSNexploder/fix_clear_inflector.
proper reset all inflector scopes
2011-04-28 00:19:13 -07:00
Josh Kalderimis
11537c57cb fixed a small bug with Array#from core_ext 2011-04-27 17:35:00 +02:00
Vijay Dev
f76dd271c6 minor changes 2011-04-27 19:50:51 +05:30
Jared McFarland
d56befbd31 using @tenderlove's suggested implementation to speed things up 2011-04-27 20:51:39 +08:00
Jared McFarland
74634d452b fixing Array#from to return consistent results 2011-04-26 14:46:52 -07:00
Aaron Patterson
e28f9ad9df simplifying buffered logger for easier and slightly more performant codes. pumpkin 2011-04-26 10:41:59 -07:00
Josh Kalderimis
75216248ef bump AS deprecation_horizon to 3.2 2011-04-25 19:55:09 +02:00
Stefan Huber
ba9891f13d proper reset all inflector scopes 2011-04-25 02:17:22 +01:00
Xavier Noria
af1b48926f Merge branch 'master' of git://github.com/lifo/docrails
Conflicts:
	activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
2011-04-23 01:11:24 +02:00
José Valim
f7538808d4 File watcher won't make the cut for 3.1. Maybe on 3.2. 2011-04-23 00:00:30 +02:00
Cheah Chu Yeow
c389b832f0 Grammar fixes for Object#in? documentation. 2011-04-22 15:14:14 +08:00
Akira Matsuda
1c5d5ad3e9 NilClass is a singleton 2011-04-20 06:31:56 +09:00
Xavier Noria
e162e912c9 Merge branch 'master' of git://github.com/lifo/docrails
Conflicts:
	railties/guides/source/ajax_on_rails.textile
	railties/guides/source/generators.textile
2011-04-19 21:54:10 +02:00
Xavier Noria
5fee98adf8 remove unwanted Example headers as per the guidelines, s/instaces of NilClass/nil/ and friends, completes some rdocs 2011-04-19 21:15:15 +02:00
Xavier Noria
eaf0d1a491 commit copy-edit: simplifies blank? rdoc and revises formatting 2011-04-19 21:00:16 +02:00
Xavier Noria
571b4a2a91 Revert "Formated docs"
Reason: "To be blank" and "to be empty" belongs to our everyday
terminology, they go in regular font.

This reverts commit 280a8709923d2bf707ec4d82ac1e5cb14941da3d.
2011-04-19 21:00:15 +02:00