Yehuda Katz
1c9de08734
Escape the file name (who knows when a "(" might appear in a filename!)
2010-02-27 12:18:28 -08:00
Yehuda Katz
d8acaf2b66
Remove the noisy lines involving AS::Dependencies from the NameError stack trace if a constant cannot be found.
2010-02-27 11:51:19 -08:00
Jeremy Kemper
763f32ab47
metaclass deprecated in 2.3.6
2010-02-25 11:12:27 -08:00
Jeremy Kemper
0b87d114bd
Missed singleton_class
2010-02-25 10:57:29 -08:00
Jeremy Kemper
f7b0a857e9
Use Object#singleton_class instead of #metaclass. Prefer Ruby's choice.
2010-02-25 09:32:29 -08:00
Jeremy Kemper
6b12d74026
Commented metaprogramming turned out to be noisier not clearer
2010-02-25 09:28:18 -08:00
Carlhuda
47498a7f59
Woops, forgot to actually add active_support/core_ext/file/path.rb
2010-02-23 17:42:26 -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
José Valim
fed72b5842
Rename engines_load_path to railties_load_path.
2010-02-20 15:46:55 +01:00
Santiago Pastorino
e4b910f6a3
require publicize_conversion_method to ensure to_date and to_datetime became public before redefining them (avoid warnings)
2010-02-19 13:36:34 -08:00
Santiago Pastorino
7ad2c5c06f
warning: instance variable @_const_missing not initialized fixed
2010-02-19 11:35:03 -08:00
Yehuda Katz
2f98032fc9
Fix a problem where nil was appearing in the list
2010-02-19 10:12:04 -08:00
Yehuda Katz
e6ce856462
Git fail
2010-02-18 16:48:28 -08:00
Carl Lerche
ae8c384e2c
Avoid calling triggering const_missing if const_missing is private when doing constantize
2010-02-18 16:29:32 -08:00
Yehuda Katz
98c299fba5
Don't constantize possible module names when looking for new constants unless they exist
2010-02-18 14:04:26 -08:00
Jeremy Kemper
cc852e2580
Use FileUtils.mv instead of rename to copy in case of cross-device links
2010-02-18 10:48:01 -08:00
Prem Sichanugrist
f0523f72b4
Rename Rails::Subscriber to Rails::LogSubscriber
2010-02-16 22:36:15 +01:00
Yehuda Katz
38eb2f1454
Right.
2010-02-14 12:13:37 -08:00
Yehuda Katz
411c15ed52
require Strings, not Symbols
2010-02-14 11:56:21 -08:00
Yehuda Katz
8e4363de72
Save off Module's const_missing, not Class'
2010-02-14 11:35:05 -08:00
Yehuda Katz
a1b60696e2
Missing require
2010-02-14 11:18:34 -08:00
Xavier Noria
b68f5f77e3
name.blank? -> anonymous? in a few places
...
Signed-off-by: Yehuda Katz <yehudakatz@YK.local >
2010-02-14 11:09:22 -08:00
Xavier Noria
f7db067b12
adds a few missing requires in AS object.rb and module.rb
...
Signed-off-by: Yehuda Katz <yehudakatz@YK.local >
2010-02-14 11:07:29 -08: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
a506bac586
fixes Module#anonymous? for 1.9
2010-02-11 23:58:15 +01: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
Jeremy Kemper
f84b4b4e5f
Reinstate object/extending require too for Object.subclasses_of
2010-02-09 19:42:08 -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
Jeremy Kemper
a1a6e54d14
Fix doc typo and update fast_xs URL. Thanks to Dmitrii Golub.
2010-02-07 11:42:24 -08:00
José Valim
345e0b274c
Add backtrace cleaner on test unit railtie.
2010-02-07 13:45:47 +01:00
Jeremy Kemper
9423c2a7d8
Merge remote branch 'fxn/master'
2010-02-06 13:03:41 -08:00
RomD
3caca406c8
remove trailing whitespace
...
Signed-off-by: Carl Lerche <carllerche@mac.com >
2010-02-06 09:51:53 -08:00
RomD
f44a0b1d52
fix usage examples and more to use new invocations
...
Signed-off-by: Carl Lerche <carllerche@mac.com >
2010-02-06 09:51:53 -08:00
Xavier Noria
299ab1faa1
removes Kernel#daemonize, which is no longer used
2010-02-06 18:33:09 +01:00
Prem Sichanugrist
1d9d9d2d89
Fix tiny version number from '3.0.0beta' to '3.0.0.beta1', so 'rake install' will be run correctly [ #3879 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-02-06 15:51:44 +01:00
Santiago Pastorino
c65f4b1ffb
Making SafeBuffer << an alias for concat method
...
[#3848 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-02-05 13:26:29 -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
ab14e3f862
Merge branch 'master' of gitproxy:rails/rails
2010-02-04 13:05:27 +01:00
José Valim
31248fe369
Remove instrument! and require thread from AS::Notifications.
2010-02-04 10:39:55 +01:00
David Heinemeier Hansson
79817aa9e7
Move to 3.0.0.beta
2010-02-03 17:29:51 -08:00
Mikel Lindsaar
d1eed079e1
Merge branch 'master' of git://github.com/rails/rails
2010-02-02 10:51:19 +11:00
Jeremy Kemper
e5ab4b0d07
Convert to class_attribute
2010-02-01 02:02:42 -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
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
Mikel Lindsaar
65ad16568c
Updating copyright dates on all licenses
2010-02-01 10:10:53 +11: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