Commit Graph

1576 Commits

Author SHA1 Message Date
Joshua Peek
8f2d8f4528 script/performance/profiler should require environment 2009-10-16 19:33:24 -05:00
Joshua Peek
2f7217c76a script/performance/benchmarker should require environment 2009-10-16 19:33:24 -05:00
Joshua Peek
7635c9f4c0 script/generate should require environment 2009-10-16 19:33:24 -05:00
Joshua Peek
c40f79f330 script/about should require environment 2009-10-16 19:24:19 -05:00
Joshua Peek
c1261b5484 Use Rails.application where we want a valid rack app 2009-10-16 19:04:28 -05:00
Joshua Peek
d859402696 Use Rails.initialize! where we just want to run the initializers and aren't concerned about the config 2009-10-16 18:58:35 -05:00
Joshua Peek
92bfc693f2 Rackup file should require environment 2009-10-16 18:46:34 -05:00
Carl Lerche
591eaf3b2c Get apps generated with working again. 2009-10-16 16:03:14 -07:00
Joshua Peek
2ca93403a2 Ruby 1.9: qualify toplevel File reference since config.ru could be eval'd in a different scope
Restores accidentally-reverted commit.
2009-10-16 14:21:27 -07:00
Carl Lerche
2110a524a4 Deprecate RAILS_ROOT in favor of Rails.root (which proxies to the application's object root) 2009-10-16 12:51:02 -07:00
Jeremy Kemper
71f7e75d95 Merge branch 'master' into orchestra 2009-10-15 17:36:54 -07:00
Carl Lerche
97296b11e2 Have config/application.rb contain the application definition and require that file instead of config/boot.rb or config/environment.rb in script/*. 2009-10-15 14:54:12 -07:00
José Valim
2d7abe245e Renamed Orchestra to Notifications once again [#3321 state:resolved] 2009-10-15 18:51:51 -03:00
José Valim
aeaabc6d2d Configure Orchestra on initialization. 2009-10-15 18:19:25 -03:00
Carl Lerche
bf9819f73d Have Rails.root be based off of config.ru 2009-10-14 16:40:25 -07:00
Carl Lerche
ff8be66f24 Finish porting over the initializers to the app object and fix all the tests 2009-10-14 11:47:37 -07:00
Yehuda Katz + Carl Lerche
5ffb877d3a Add Gemfile to the rails application generator 2009-10-14 11:18:45 -07:00
Yehuda Katz + Carl Lerche
d56984c016 Make rails configuration's path object's root lazy 2009-10-14 11:18:45 -07:00
Jeremy Kemper
7b8f9d254a Fix generators load paths 2009-10-11 12:35:01 -07:00
Carl Lerche
992c2db76c Finish porting over the initializers to the app object and fix all the tests 2009-10-08 18:12:28 -07:00
Carl Lerche
5c42157cd8 Even more initializers ported over 2009-10-08 15:30:17 -07:00
Carl Lerche
ed77e84c4b Ported over more initializers 2009-10-08 15:08:08 -07:00
Carl Lerche
feb04bf897 Move the ensure_tmp_directories_exist initializer to the application object 2009-10-08 12:31:09 -07:00
Carl Lerche
e4d7e5090c Moving more initializers into the application object 2009-10-08 12:31:09 -07:00
Carl Lerche
6d6ae0841c Start moving the initializers into the application object 2009-10-08 12:31:09 -07:00
Carl Lerche
d096589245 Remove the old initializer file. 2009-10-08 12:31:09 -07:00
Michael Koziarski
28bd0873ff Don't need h in there now that XSS protection is on by default 2009-10-08 14:34:15 +13:00
Joshua Peek
b480da5cd6 Coerce all out going body parts to Strings 2009-10-05 13:58:43 -05:00
Joshua Peek
570f055c44 Yank FCGI Handler from core
http://github.com/rails/fcgi_handler
2009-10-05 11:16:24 -05:00
Joshua Peek
20d6938453 Rewrite FCGI handler test 2009-10-05 10:36:05 -05:00
Carl Lerche
2370e87ae0 Remove all calls to Rails::Initializer from boot.rb
This is starting a refactor of the rails initialization process. The boot.rb file will not remain the same.
2009-09-30 12:05:34 -07:00
Carl Lerche
34aae6d739 Remove a duplicate initializer 2009-09-29 17:46:33 -07:00
Carl Lerche
c9d4529c9d Change Rails::Application to a class that is inherited from.
This is still very experimental.
2009-09-29 17:33:17 -07:00
Carl Lerche
6b086449be Fix the broken railties isolation tests 2009-09-29 16:07:29 -07:00
Yehuda Katz + Carl Lerche
6f6a589d4b Create the application object from config/environment.rb
This is preliminary and not necessarily reflective of the
  full plan.
2009-09-28 18:00:26 -07:00
Joshua Peek
a6757a02e1 Move middleware and route configuration from AC::Dispatcher to Rails application object 2009-09-26 21:59:28 -05:00
Joshua Peek
b0506b086f Create separate middleware stack for initializer 2009-09-26 21:07:49 -05:00
Joshua Peek
acfeec5151 Allow integration test rack app to be set with "@app" ivar instead of using open_session 2009-09-26 20:51:05 -05:00
Joshua Peek
1f72700575 Move default middleware stack into initializer 2009-09-26 13:41:32 -05:00
Joshua Peek
db65bb5a31 Pull middleware for Rails info from the initializer instead of ActionController 2009-09-26 12:41:17 -05:00
Joshua Peek
15cffe6fbc ruby 1.9: Qualify toplevel File reference since config.ru could be eval'd in a different scope 2009-09-26 11:52:37 -05:00
Joshua Peek
ef58194129 Move Rails::Static into ActionDispatch 2009-09-26 11:37:42 -05:00
Joshua Peek
dbb32115ef Enable static asset server by default 2009-09-26 11:24:56 -05:00
Joshua Peek
79a4d505fa Add gem filter for default gem path since it maybe different than the set of gem paths 2009-09-26 11:04:08 -05:00
Joshua Peek
5eeed9f00a Move tmp directory creation from server to initializer 2009-09-26 10:56:36 -05:00
Joshua Peek
c83c0f6936 Remove config.ru generation from --with-dispatchers option 2009-09-25 23:15:49 -05:00
Joshua Peek
5fba5409f7 Fix railties tests 2009-09-25 22:54:41 -05:00
Joshua Peek
85e0a6cd7d Set const for application object. "Basecamp::Application" 2009-09-25 22:35:54 -05:00
Joshua Peek
968c994c3b Initializer.run returns an application object 2009-09-25 22:28:09 -05:00
Joshua Peek
dfbd3b9409 Extract "parse_config" into AD 2009-09-25 21:40:55 -05:00