Commit Graph

1005 Commits

Author SHA1 Message Date
Joshua Peek
6c8d852056 fix up activesupport test load paths 2010-02-28 18:16:57 -06:00
Santiago Pastorino
b4b158ee10 no more interpreted as grouped expression warnings on array_ext_test 2010-02-26 14:54:02 -08:00
Jeremy Kemper
763f32ab47 metaclass deprecated in 2.3.6 2010-02-25 11:12:27 -08:00
Jeremy Kemper
f7b0a857e9 Use Object#singleton_class instead of #metaclass. Prefer Ruby's choice. 2010-02-25 09:32:29 -08:00
Carlhuda
24ab5665b2 Revert "Fix test load paths for those not using bundler"
This reverts commit eec2d301d4.

This commit broke tests. You cannot have a file called "bundler" on the load path.
2010-02-23 17:31:17 -08:00
Carlhuda
3345af61fb Fix streaming by having it create a File object, which can be handled by Rack servers as appropriate 2010-02-23 15:37:17 -08:00
Yehuda Katz
2f821a0a98 Fix test ordering bug related to introducing masked Name class 2010-02-19 10:31:51 -08:00
José Valim
3f948a0e29 Merge master. 2010-02-17 00:48:04 +01:00
Yehuda Katz
762088a0ef Clear the attribute after done 2010-02-16 15:00:10 -08:00
Prem Sichanugrist
f0523f72b4 Rename Rails::Subscriber to Rails::LogSubscriber 2010-02-16 22:36:15 +01:00
Joshua Peek
546e319a5f CI has a bunch of duplicate load paths 2010-02-15 10:53:44 -06:00
Joshua Peek
4419497e40 Make sure AS test env doesn't have duplicate libs in load path 2010-02-15 10:38:39 -06:00
Joshua Peek
eec2d301d4 Fix test load paths for those not using bundler 2010-02-15 10:20:11 -06:00
Yehuda Katz
4da45060a2 Simplify dependencies.rb some. Remove alias of Kernel::Foo to Object::Foo as it was not used and breaks Ruby semantics. 2010-02-14 10:48:06 -08:00
Xavier Noria
aa82bdf929 moves Class#reachable? to Module#reachable?, bases implementation on anonymous? and constantize, and adds test coverage 2010-02-11 23:41:16 +01:00
Xavier Noria
b8bb54af7f defines Module#anonymous? 2010-02-11 23:15:04 +01:00
Yehuda Katz
77f630d317 Since require_dependency cannot be cleared, remove the dependencies 2010-02-10 15:06:42 -08:00
Yehuda Katz
a3eaaf6b50 Fix a JSON ordering issue 2010-02-10 14:46:16 -08:00
Yehuda Katz
ff7db40464 No need to emulate default Ruby behavior in initialize 2010-02-10 14:40:36 -08:00
Yehuda Katz
bea38d64ee Don't rely on @message in Error classes being available for use 2010-02-10 14:40:36 -08:00
Jeremy Kemper
d1938953f4 Reinstate Object.subclasses_of and Class#descendents for plugin compat.
This reverts commits 7d312e54ba, 5f981ff029, f85f5dfc8f, 245bfafe33, and ec7c642f5f
2010-02-09 18:20:57 -08:00
Xavier Noria
cf9a52a7b6 removes Module#as_load_path, which is no longer used 2010-02-07 23:06:15 +01:00
Xavier Noria
afd2e19be3 removes Module#included_in_classes, which is no longer used 2010-02-07 23:03:13 +01:00
Santiago Pastorino and José Ignacio Costa
293c53ab3e Fixed html_safe test cases which weren't testing correctly
[#3845 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-02-05 13:25:51 -08:00
Jeremy Kemper
63bb955a99 Automatically prefer Yajl or JSON backend over Yaml, if available 2010-02-05 10:22:45 -08:00
Brian Lopez
a96bf4ab5e Add yajl-ruby as a JSON parsing backend
[#2666 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-02-05 10:15:51 -08:00
José Valim
31248fe369 Remove instrument! and require thread from AS::Notifications. 2010-02-04 10:39:55 +01:00
José Valim
ff2d04a9ec Revert "failing tests in multibyte_chars_test.rb fixed". The bug is in Ruby 1.9.1 p376, not in AS test suite.
This reverts commit bf1f70d877.
2010-02-02 12:07:41 +01:00
Santiago Pastorino
bf1f70d877 failing tests in multibyte_chars_test.rb fixed
Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
2010-02-01 09:30:00 -08:00
Jeremy Kemper
8ae25a8e41 Introduce class_attribute to declare inheritable class attributes. Writing an attribute on a subclass behaves just like overriding the superclass reader method. Unifies and replaces most usage of cattr_accessor, class_inheritable_attribute, superclass_delegating_attribute, and extlib_inheritable_attribute. 2010-02-01 02:02:41 -08:00
Santiago Pastorino
1adfb92135 Deleted all references to ActionView::SafeBuffer in favor of ActiveSupport::SafeBuffer
Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
2010-01-31 22:14:18 -08:00
Yehuda Katz
4cbb9db0a5 For performance reasons, you can no longer call html_safe! on Strings. Instead, all Strings are always not html_safe?. Instead, you can get a SafeBuffer from a String by calling #html_safe, which will SafeBuffer.new(self).
* Additionally, instead of doing concat("</form>".html_safe), you can do
    safe_concat("</form>"), which will skip both the flag set, and the flag
    check.
  * For the first pass, I converted virtually all #html_safe!s to #html_safe,
    and the tests pass. A further optimization would be to try to use
    #safe_concat as much as possible, reducing the performance impact if
    we know up front that a String is safe.
2010-01-31 19:39:13 -08:00
Carl Lerche
9f01dff9c2 Get rails tests running on bundler 0.9 2010-01-31 19:13:43 -08:00
Mikel Lindsaar
2ebea1c02d deOMGifying Railties, Active Support, and Action Pack 2010-01-31 09:46:30 -08:00
Yehuda Katz
8031a53abd superclass_delegating_accessor rewritten to serve as the base for many other kinds of accessors (step 1 of unification) 2010-01-29 03:01:02 -08:00
Jeremy Kemper
d58398c2b5 Ensure test sets json time format flag 2010-01-28 10:46:23 -08:00
Geoff Buesing
e98f9579c4 Time#- with a DateTime argument behaves the same as with a Time argument, i.e. returns the difference between self and arg as a Float [#3476 status:resolved] 2010-01-27 20:17:09 -06:00
Gregor Schmidt
7b8c6472ff Adding custom yaml (de-)serialization for OrderedHash
[#3608 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-01-27 15:29:06 -08:00
Jeremy Kemper
aef76d1e71 Merge remote branch 'fxn/master' 2010-01-26 15:38:49 -08:00
Xavier Noria
c25ac0deee removes Object#extended_by 2010-01-26 23:03:58 +01:00
Xavier Noria
ccec730d7f removes unused method Object#extend_with_included_modules_from 2010-01-26 23:01:51 +01:00
Xavier Noria
7d312e54ba deletes no void files removal.rb and class_test.rb 2010-01-26 22:57:27 +01:00
Xavier Noria
44afd785c8 removes unused method Class#remove_class 2010-01-26 22:51:44 +01:00
Xavier Noria
245bfafe33 removes unused Object#subclasses_of 2010-01-26 22:46:47 +01:00
Xavier Noria
1b2ac25a2f removes unused Class#remove_subclasses 2010-01-26 22:42:56 +01:00
Xavier Noria
ec7c642f5f removes unused method Class#subclasses 2010-01-26 22:37:55 +01:00
José Valim and Mikel Lindsaar
328b0b1268 Remove deprecated behavior since 2.3. 2010-01-24 23:32:09 +01:00
José Valim and Mikel Lindsaar
0361414ae3 Add uniq_by and uniq_by! to Array. 2010-01-24 23:28:52 +01:00
José Valim
378464a2e4 Default to sync instrumentation. 2010-01-21 13:09:12 +01:00
Yehuda Katz
1a50d2e66a Stop overriding LoadError.new to return a MissingSourceError (and sometimes nil!) 2010-01-19 22:35:26 -08:00