Commit Graph

2800 Commits

Author SHA1 Message Date
Carlhuda
98f77e0827 Rename named_url_helpers to url_helpers and url_helpers to url_for 2010-02-26 15:04:50 -08:00
José Valim
e6dffb70e6 reload! on console now works as expected. [#3822 status:resolved] 2010-02-26 12:09:39 +01:00
Dr Nic Williams
b56b9ee7d6 #add_source: Fixed docco + added required newline to line added to Gemfile
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-26 11:11:35 +01:00
Ramon Soares
79c47abe6c the folder public/javascripts should be created by default [#4027 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-26 10:54:44 +01:00
José Valim
36a234609d Update thor dependency. 2010-02-26 10:51:13 +01:00
José Valim
5893baa683 Add autoload to generators modules and fix failing test. 2010-02-26 10:44:53 +01:00
Carlhuda
8760add31a Get URL helpers working again in integration tests. 2010-02-25 17:53:30 -08:00
Carlhuda
fc4582fb66 Final pass at removing the router from a global constant 2010-02-25 17:53:29 -08:00
Carlhuda
9a5be2e5a8 Get Railties tests passing 2010-02-25 17:53:01 -08:00
José Valim
76237f163f Application detection should also allow dots in the path. 2010-02-26 02:35:14 +01:00
Jeremy Kemper
6e78fdbef0 Remove doubled period 2010-02-25 16:45:59 -08:00
Jeremy Kemper
e2795383cf Update plugin tasks dirs deprecation warning 2010-02-25 16:32:24 -08:00
Jeremy Kemper
ffc45f3e71 Fix dangling klass reference 2010-02-25 11:01:15 -08:00
Jeremy Kemper
c7f9e8c06c Fix test on 1.8.8. Broken by inherited hook now running before Class.new block. 2010-02-25 10:46:29 -08:00
Thomas R. Koll
45ceacd6de load_path is expecting a String in the application.rb generator
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-02-25 10:45:34 -08:00
Jeremy Kemper
f7b0a857e9 Use Object#singleton_class instead of #metaclass. Prefer Ruby's choice. 2010-02-25 09:32:29 -08:00
David Heinemeier Hansson
bf0f14579a let the rails command recurse upwards looking for script/rails, and exec ruby on it for better portability [Xavier Noria] (Closes #4008) 2010-02-25 08:32:37 -08:00
Carl Lerche
ba57575e03 Remove references to ActionDispatch::Routing::Routes in favor of Rails.appication.routes. 2010-02-24 10:52:16 -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
24ab5665b2 Revert "Fix test load paths for those not using bundler"
This reverts commit eec2d301d4ce9df9c71c1a5aa63053eb970b6818.

This commit broke tests. You cannot have a file called "bundler" on the load path.
2010-02-23 17:31:17 -08:00
Carlhuda
5e2bd08023 Makes send_file work again by deferring to Rack::Sendfile.
* Add the Rack::Sendfile middleware
  * Make the header to use configurable via config.action_dispatch.x_sendfile_header (default to "X-Sendfile"). 
  * Add Railties tests to confirm that these work
  * Remove the :stream, :buffer_size, and :x_senfile default options to send_file
  * Change the log subscriber to always say "Sent file"
  * Add deprecation warnings for options that are now no-ops

Note that servers can configure this by setting X-Sendfile-Type. Hosting companies and those creating packages of servers specially designed for Rails applications are encouraged to specify this header so that this can work transparently.
2010-02-23 17:06:35 -08:00
David Chelimsky
a6684eeb78 don't set @expected.date in generated mailer test
Signed-off-by: Mikel Lindsaar <raasdnil@gmail.com>
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-22 09:15:27 +01:00
Martin Schürrer
6bc24d40d5 Use ActionDispatch::Routing everywhere 2010-02-21 13:43:51 -08:00
Martin Schürrer
4cdfe98d92 Typo 2010-02-21 13:43:51 -08:00
José Valim
4477bccda6 Also check if application is a valid constant in rake rails:update. 2010-02-21 13:44:08 +01:00
José Valim
7fe4ca3253 Add a test for default_url_options in AM. 2010-02-21 13:19:21 +01:00
José Valim
fed72b5842 Rename engines_load_path to railties_load_path. 2010-02-20 15:46:55 +01:00
José Valim
e49f94d71c Revert behavior from a5684dfa3c16472bfa5d5d861ba78cb6dbadcb59 and ensure after_initializer is executed after to_prepare callbacks. 2010-02-19 08:15:49 +01:00
José Valim
a5684dfa3c Ensure config.after_initializer is executed before building the middleware stack. 2010-02-18 18:56:11 +01:00
Aaron
1477a6101d Fix called_from under Windows so engines works properly
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-18 18:36:55 +01:00
José Valim
d0454e5766 Add readme as method in Rails::Generators::Actions (as we had in 2.3) 2010-02-17 18:43:40 +01:00
José Valim
3f948a0e29 Merge master. 2010-02-17 00:48:04 +01:00
Kyle Maxwell
d4e008fd0f Invalid namespace on app generation raises an error
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-17 00:38:30 +01:00
José Valim
23fd1f1280 Show deprecation message for rails/init.rb in plugins. 2010-02-17 00:18:12 +01:00
José Valim
01cd9d66ed Subscriber should not explode if a non namespaced instrumentation is given. 2010-02-16 22:39:07 +01:00
Prem Sichanugrist
f0523f72b4 Rename Rails::Subscriber to Rails::LogSubscriber 2010-02-16 22:36:15 +01:00
Joshua Peek
eec2d301d4 Fix test load paths for those not using bundler 2010-02-15 10:20:11 -06:00
Yehuda Katz
411c15ed52 require Strings, not Symbols 2010-02-14 11:56:21 -08:00
Carl Lerche
eea28b07cf Remove backtrace cleaner specific to Bundler. Bundler just uses Gem.dir and Gem.path now. 2010-02-11 10:29:50 -08:00
Jeremy Kemper
8afcd33246 Resolve test/unit load ordering by removing backtrace filter from boot initializers 2010-02-11 09:01:52 -08:00
José Valim
97650bf54a Fix a couple failing tests. 2010-02-10 08:33:41 +01:00
Michael Bleigh
9c654744fb Fixes unescaped version passthrough of generator 'gem' command. [#3901 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-10 08:28:03 +01:00
Simo Niemelä
cafe882d12 Fix server environment [#3877 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-10 08:14:02 +01:00
Prem Sichanugrist
f337ebc308 Add default values to output of 'rails server -h', hardcoded as Rack::Server did since options doesn't have any data at the time of parsing arguments [#3910 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-10 08:08:27 +01:00
Prem Sichanugrist
af22c5b16a Add missing -h/--help flag to several rails command [#3909 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-10 08:08:16 +01:00
Mikel Lindsaar
7d76474e5d Debrittlize tests somewhat - fix for CI build
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-10 07:26:01 +01:00
David Heinemeier Hansson
834a45d8a2 Suggest Mongrel and Capistrano in the default bundle 2010-02-09 17:12:37 -08:00
Jeremy Kemper
39ebd6eb2b rails runner loads environment after parsing command-line options 2010-02-09 08:40:21 -08:00
José Valim
7f7dfd2bab Take into account gem versions (so script/rails server can work outside the application) and use Rails::Application.root instead of ROOT_PATH. 2010-02-08 16:05:22 +01:00
Mikel Lindsaar
17b451898c Updating Prototype to 1.6.1 and script.aculo.us to 1.8.3
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-08 09:42:40 +01:00