José Valim
6487d2871c
Fix an issue where log was not being tailed in the first request.
2010-01-15 12:24:31 +01:00
José Valim
b0994be5bd
LogTailer should be invoked after all logs in threads were flushed.
2010-01-15 12:24:31 +01:00
José Valim
b4019d5080
Rails::Subscriber is now responsible for flushing all loggers it's responsible for.
2010-01-15 12:24:31 +01:00
José Valim
8c8942ed4f
Move Dispatcher setup to Railties and add instrumentation hook.
2010-01-15 12:24:30 +01:00
José Valim
9038a4af35
Add documentation to f.submit and make scaffold generators use the new shortcut.
2010-01-14 02:02:07 +01:00
José Valim
da5978c223
Add subscriber for ActionPack and move all logging inside it.
2010-01-13 01:19:23 +01:00
José Valim
743cafb7f4
Create Rails::Subscriber::TestHelper and use it to make ActiveRecord subscriber tests run in both sync and async scenarios.
2010-01-13 01:19:23 +01:00
José Valim
fe3ceabeed
Set up subscriber on initialization.
2010-01-13 01:19:23 +01:00
José Valim
1a275730b2
Set deprecation warnings for RAILS_ENV and RAILS_DEFAULT_LOGGER.
2010-01-13 01:19:22 +01:00
José Valim
9dd4c79d61
Allow to add subscribers through Railtie.
2010-01-13 01:19:22 +01:00
José Valim
1e12dc04cb
Stub initial Rails::Subscriber implementation.
2010-01-13 01:19:22 +01:00
José Valim
5f34bd61b0
As the other constants, RAILS_DEFAULT_LOGGER no more.
2010-01-13 01:19:22 +01:00
José Valim
c4e3344a26
Revert "Add a generator_paths config option"
...
This reverts commit 8665c754cb61c947cd55f8886c28188050aed78d.
2010-01-13 01:19:22 +01:00
José Valim
a5c45e69d9
Remove old bundler version from vendor.
2010-01-13 01:19:22 +01:00
David Heinemeier Hansson
8cb594a2e1
Get everyone running on Rails.env and fix the broken environment settings for script/console and script/dbconsole
2010-01-11 14:01:28 -08:00
Joshua Peek
02bbde4e78
Cleanup junk metal and revise API
...
API Change: Returning a "X-Cascade: pass" header triggers the cascade
instead of a 404 response.
2010-01-10 23:09:10 -06:00
David Heinemeier Hansson
d2c4a93c69
Have to remove the environment name from ARGV or IRB will freak out
2010-01-09 09:52:16 -08:00
Yehuda Katz
8665c754cb
Add a generator_paths config option
2010-01-09 11:04:06 -06:00
José Valim
3022ce4f72
No more hacks to ensure generators are executed inside Rails.root.
2010-01-07 21:24:50 +01:00
José Valim
ccc9f0b7de
Ensure application names are not singularized.
2010-01-07 21:09:32 +01:00
Joshua Peek
8fe66f1af0
Run railtie and plugin initializers before app specific ones
2010-01-07 14:01:34 -06:00
José Valim
19e7c524d2
Ensure config/application.rb also uses app_const instead of app_name.classify.
2010-01-07 20:59:26 +01:00
Jeffrey Hardy
2dcc53bdbc
Remove stray semicolon from cookie_verification_secret initialzer template
2010-01-07 11:51:54 -05:00
Jeffrey Hardy
f8352ec255
Align assignments in the session_store initializer template
2010-01-07 11:46:55 -05:00
Jeffrey Hardy
8a41b710f6
Fix spacing on frameworks error message
2010-01-06 13:37:11 -05:00
Joshua Peek
88fd569ba0
Remove config.gem deprecation stub since its not "deprecated" but
...
completely removed.
This makes feature detection easier with config.respond_to?(:gem)
2010-01-06 11:33:04 -06:00
Joshua Peek
bbe80ae652
config.plugins should still work with an array of strings
2010-01-05 23:37:40 -06:00
Dan Croak
38f669766c
Rails layouts, error pages, and public/index now use HTML5.
...
The specification allows the character encoding meta tag to be removed
if character encoding is set at the transport level (Content-Type),
which Rails is doing.
http://dev.w3.org/html5/html4-differences/#character-encoding
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2010-01-05 10:13:29 -06:00
Joshua Peek
3f28e0bda6
Trash string coercion rack hacks
2010-01-04 19:46:21 -06:00
Joshua Peek
76b5f18feb
Default middleware stack needs to be available at configuration time
2010-01-04 19:40:16 -06:00
Jeremy Kemper
6591a10b1f
Reinstate explicit active_support/test_case require since console_app interacts with a non-autoloaded constant
2010-01-04 17:00:47 -08:00
Carlhuda
952e449fc0
Fix --dev option
2010-01-04 16:32:43 -08:00
Joshua Peek
17f053931e
use_instantiated_fixtures and use_transactional_fixtures defaults are set in active_record/fixtures
2010-01-04 17:23:36 -06:00
Joshua Peek
508ffccfe7
rack and rack-test are pulled in by AD
2010-01-04 16:55:27 -06:00
Joshua Peek
e5ed62deea
Autoload AR test case
2010-01-04 16:50:01 -06:00
Joshua Peek
640d9e7e32
Autoload AMo test case
2010-01-04 16:29:07 -06:00
Joshua Peek
2601a16ede
Autoload AS test case
2010-01-04 16:22:46 -06:00
Joshua Peek
ce56c36cd3
Autoload AM test case class
2010-01-04 16:22:46 -06:00
Joshua Peek
cf83a6f16b
Autoload AC and AV test case classes
2010-01-04 16:22:46 -06:00
David Heinemeier Hansson
5e94d3e3ea
Merge
2010-01-03 22:27:28 -08:00
David Heinemeier Hansson
d7d917335e
Stop featuring ActiveSupport::TestCase.use_instantiated_fixtures and ActiveSupport::TestCase.use_transactional_fixtures as likely-to-change settings in test/test_helper.rb -- they are not and their values are already set in test_help.rb [DHH]
2010-01-03 19:55:21 -08:00
David Heinemeier Hansson
437df4a8d3
Describe intent, not implementation
2010-01-03 19:46:10 -08:00
David Heinemeier Hansson
0ad07d9c26
Removed config/initializers/new_rails_defaults.rb as all frameworks now follow the settings from it [DHH]
2010-01-03 19:32:48 -08:00
David Heinemeier Hansson
6042067c0b
Changed the default ActiveSupport.use_standard_json_time_format from false to true and
...
ActiveSupport.escape_html_entities_in_json from true to false to match previously announced Rails 3 defaults [DHH]
2010-01-03 19:20:43 -08:00
David Heinemeier Hansson
0422314b29
Time zoning should be turned on by default with UTC
2010-01-03 21:55:48 -05:00
David Heinemeier Hansson
51460b5bf2
This comment has been true of all helpers for a long time
2010-01-03 21:34:19 -05:00
David Heinemeier Hansson
950e6bb491
Remove self-evident comment about how subclasses work
2010-01-03 21:32:40 -05:00
David Heinemeier Hansson
090d12b49b
Added that ActionController::Base now does helper :all instead of relying on the default ApplicationController in Rails to do it [DHH]
2010-01-03 21:32:02 -05:00
José Valim
271e7c803f
Move all generators tests to use new test case syntax.
2010-01-03 17:14:50 +01:00
José Valim
441227a10f
Create Rails::Generators::TestCase.
2010-01-03 17:14:49 +01:00
José Valim
e88ea3255f
Assert for valid application names. [ #3556 status:resolved]
2010-01-03 17:14:49 +01:00
José Valim
6716e4bc0c
Use regexp in lookups instead of traversing namespaces. This removes the need of special cases.
2010-01-03 17:14:48 +01:00
Yehuda Katz
106d8f7688
AppName::Application.root should work
2010-01-02 22:49:40 -08:00
Yehuda Katz
f1cd3a98f3
Doc fix
2010-01-02 22:46:09 -08:00
Steve Agalloco
c3d19eb950
app_generator option should be skip_activerecord not no_activerecord
...
(Thor actually accepts both, the patch was applied to improve readability)
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-01-03 00:47:01 +01:00
José Valim
4c5b5024c3
Rails notifications are set through Railtie in each framework.
2010-01-02 22:27:03 +01:00
José Valim
fd719d7ecf
Update vendored Thor.
2010-01-02 22:27:03 +01:00
Carl Lerche
ae7ada1fde
Some railties cleanup:
...
* Rename <framework>/rails.rb -> <framework>/railtie.rb
* Rails::Plugin -> Rails::Railtie
* Rails::Plugin::Vendored -> Rails::Plugin
2009-12-31 13:12:52 -08:00
Carl Lerche
e749424dfa
Rename rails.rb -> rails/all.rb and rails/core.rb -> rails.rb
2009-12-31 13:12:52 -08:00
Carl Lerche
2f8643955a
Raise a helpful error if config.frameworks is used
2009-12-31 11:57:59 -08:00
Carl Lerche
a23f4b6aee
Add a /rails.rb for each framework for consistency
2009-12-31 11:57:59 -08:00
Carl Lerche
1e41097294
Fully remove config.frameworks in favor of requires in boot.rb
2009-12-31 11:57:59 -08:00
David Heinemeier Hansson
ea41a757aa
Dont gitkeep things that are gitignored
2009-12-31 11:09:10 -05:00
David Heinemeier Hansson
96c27e4003
Merge branch 'master' of github.com:rails/rails
2009-12-31 01:15:30 -05:00
David Heinemeier Hansson
5d8342cc32
Added .gitkeep to empty directories and --skip-git to skip gitignore/gitkeep files
2009-12-31 01:14:23 -05:00
David Heinemeier Hansson
5eb3ceca01
Orphan experiment no longer needed
2009-12-30 22:55:52 -05:00
Jeremy Kemper
1fbd02e446
Revert "Add config.action_controller.include behavior to plugins."
...
This reverts commit 7e8b7f46bfc086a36db996420fbee93348c5268e.
Conflicts:
railties/lib/rails/plugin.rb
2009-12-30 19:34:15 -08:00
Jeremy Kemper
d349b22097
Remove self-require
2009-12-30 19:00:12 -08:00
Jeremy Kemper
79550e8995
Revert "Add default respond_to formats to ApplicationController."
...
(Needs consensus that these are appropriate defaults.)
This reverts commit 66604b2e0e8d3aba25cab673c7a3d7831a68490c.
2009-12-29 19:11:00 -08:00
Carl Lerche
e5c88434db
Use the correct method for eager loading autoloads
2009-12-29 19:04:37 -08:00
Jeremy Kemper
485d244eae
Merge branch 'master' of github.com:rails/rails
2009-12-29 15:38:17 -08:00
José Valim
1a4d909c68
Add rails app --edge and rails app --dev
2009-12-29 23:58:34 +01:00
José Valim
66604b2e0e
Add default respond_to formats to ApplicationController.
2009-12-29 23:58:25 +01:00
Sam Pohlenz
468bdb3ed8
Make plugins responsible for loading their own rake tasks
...
Signed-off-by: Carl Lerche <carllerche@mac.com>
2009-12-29 14:47:48 -08:00
Sam Pohlenz
cbce027669
Application object should instantiate non-vendored plugins
...
Signed-off-by: Carl Lerche <carllerche@mac.com>
2009-12-29 14:45:43 -08:00
Carl Lerche
3cb7e04763
Finally remove rails/initializer.rb
2009-12-29 13:20:10 -08:00
Carl Lerche
aa1b32ae97
Check to see if the plugin object responds to load_tasks (vendor/plugin/* does not yet) Fixes Sam Ruby's tests.
2009-12-29 10:49:12 -08:00
Carl Lerche
4ee70643b3
Don't require initializer.rb in core.rb
2009-12-28 18:26:15 -08:00
Carl Lerche
49c800b6bd
Move the ActiveRecord related rake tasks into the AR gem.
2009-12-28 17:53:05 -08:00
Carl Lerche
c02f278263
Add the ability to have plugins load rake tasks.
2009-12-28 17:53:04 -08:00
David Heinemeier Hansson
a642edbef3
Added default .gitignore (this is just recognizing Git market share, don't throw a hissy if you use another SCM) [DHH]
2009-12-27 17:48:11 -08:00
José Valim
a176263ebc
Fix generators tests.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-12-27 15:19:16 -08:00
David Heinemeier Hansson
5012a1558d
Merge branch 'master' of github.com:rails/rails
2009-12-27 14:44:21 -08:00
David Heinemeier Hansson
1cd949006a
Fix the i18n dependency problem
2009-12-27 14:43:06 -08:00
Yehuda Katz
12e43494a7
Merge remote branch 'jose/perf'
2009-12-27 14:36:59 -08:00
José Valim
7e8b7f46bf
Add config.action_controller.include behavior to plugins.
2009-12-27 13:31:36 +01:00
Joshua Peek
bdf8ee44c5
script/server should init Rails by loading config.ru
...
Fixes "Rails 3.0 doesn't fucking work"
2009-12-26 18:23:48 -06:00
David Heinemeier Hansson
b9c0a16655
The new routes shortform now also works for :as
2009-12-24 16:08:03 -08:00
Carlhuda
84f1137ef8
Merge remote branch 'origin/master'
...
Conflicts:
railties/lib/rails/application.rb
2009-12-23 19:18:11 -08:00
Carlhuda
af5c3c852e
Require active_support/all unless specifically requested to be left out.
2009-12-23 19:00:20 -08:00
Carlhuda
d2bd71a145
Finish moving config.frameworks-dependent code to the framework plugin
2009-12-23 17:23:29 -08:00
Jeremy Kemper
1ee50e58f6
Fix Rack::Lock middleware condition: use *unless* we allow concurrency
2009-12-23 17:14:21 -08:00
Jeremy Kemper
94bb331635
Shift more responsibility from application class to its singleton instance. Treat instantiation and boot as separate steps. Use app.config rather than app.configuration.
2009-12-23 17:11:17 -08:00
Carlhuda
38aeb1528c
Moving out some framework specific initializers into the framework libraries.
2009-12-23 16:13:09 -08:00
Carlhuda
fa8dfc7d01
Raise an exception if an initializer is defined without a block
2009-12-23 15:16:38 -08:00
Carlhuda
dc677f7665
tests pass with requiring the frameworks in rails.rb
2009-12-23 15:16:38 -08:00
David Heinemeier Hansson
e7ef57dd0d
Merge
2009-12-22 17:31:29 -08:00
David Heinemeier Hansson
ec095456d8
Dont auto require rubygems, move dep on rack-test to Gemfile
2009-12-22 17:29:25 -08:00
Joshua Peek
2d0c703c92
Use Rack::Runtime middleware so the reported time includes the entire middleware stack
2009-12-22 16:18:22 -06:00
Joshua Peek
1de95077dc
Merge branch 'master' of github.com:rails/rails
...
Conflicts:
railties/test/initializer/initialize_i18n_test.rb
railties/test/initializer/path_test.rb
2009-12-21 20:41:25 -06:00
Joshua Peek
426348b484
Update routes.rb template to use App name
2009-12-21 20:15:27 -06:00
Jeremy Kemper
2e571e8f99
Blog -> Blog::Application. Leave the toplevel module up for grabs.
2009-12-21 17:03:21 -08:00
David Heinemeier Hansson
76e732a7be
Fix the documentation for root :to. It should use a fully qualified controller#action syntax ( Closes #3606 )
2009-12-21 16:54:04 -08:00
David Heinemeier Hansson
a43a9c81cf
Dont need to specify password_confirmation, that happens automatically
2009-12-21 16:41:02 -08:00
Carlhuda
d982fe2b2f
Replace reopening the class with App.configure as an alias to class_eval
2009-12-21 16:35:54 -08:00
Carlhuda
b0b4ae970c
test.rb, dev.rb, and production.rb just reopen the Application class; no more hax required
2009-12-21 16:03:26 -08:00
David Heinemeier Hansson
36624b2c70
Give the builtin controllers their own routes.rb now that the legacy catch-all is gone
2009-12-21 15:55:59 -08:00
David Heinemeier Hansson
cf66d16bdf
Its cookie_verifier_secret
2009-12-21 15:49:52 -08:00
David Heinemeier Hansson
fa8849a573
Merge branch 'master' of github.com:rails/rails
2009-12-21 11:28:16 -08:00
David Heinemeier Hansson
f09ad263ca
Turn filter_parameter_logging on by default for password and password_confirmation and remove contentless comments
2009-12-20 20:50:25 -08:00
David Heinemeier Hansson
f9a4cf1562
Show the new short-form in an example
2009-12-20 20:45:18 -08:00
David Heinemeier Hansson
3506cb730b
Mark the wild controller route as legacy an comment it out
2009-12-20 19:40:18 -08:00
David Heinemeier Hansson
c06aff0a7e
Added cookies.permanent, cookies.signed, and cookies.permanent.signed accessor for common cookie actions [DHH]
2009-12-20 14:33:13 -08:00
David Heinemeier Hansson
44fb54fecd
Models with no attributes should just have empty hash fixtures [Sam] ( Closes #3563 )
2009-12-17 17:53:16 -08:00
David Heinemeier Hansson
fa575973b1
Added alert/notice from 2-3-stable and refactored redirect_to into just living in Redirector [DHH]
2009-12-17 16:37:11 -08:00
Joshua Peek
b9d4ceb43c
Need to lazy realize middleware options so they can be modified in
...
the environment
2009-12-16 16:12:04 -06:00
Joshua Peek
7ee5843c3c
Fully expand relative rails framework paths and make sure we aren't
...
adding any to the load path more than once.
2009-12-16 11:56:51 -06:00
Carl Lerche
1b27f5c4f7
Add the ability for plugins to set default configuration settings.
2009-12-15 22:13:52 -08:00
Joshua Peek
f0bbc647c2
Procs don't call themselves
...
Fixes dev mode reloading [#3574 state:resolved]
2009-12-15 10:48:56 -06:00
Joshua Peek
5f8e48cbd2
Move route reloading into railties
2009-12-14 17:54:41 -06:00
Joshua Peek
f70079efb1
Fix warnings in railties configuration and initializeable
2009-12-14 15:42:48 -06:00
Joshua Peek
71cd5b9568
Don't require AD test_case
2009-12-12 19:44:52 -06:00
Joshua Peek
b2ef6d13f0
Fixed old routing mapper example in generated routes.rb
2009-12-09 20:39:42 -06:00
Joshua Peek
0fec53f243
Scaffolding generates new routing dsl examples
2009-12-09 18:57:16 -06:00
Carlhuda
c1304098cc
Reorganize autoloads:
...
* A new module (ActiveSupport::Autoload) is provide that extends
autoloading with new behavior.
* All autoloads in modules that have extended ActiveSupport::Autoload
will be eagerly required in threadsafe environments
* Autoloads can optionally leave off the path if the path is the same
as full_constant_name.underscore
* It is possible to specify that a group of autoloads live under an
additional path. For instance, all of ActionDispatch's middlewares
are ActionDispatch::MiddlewareName, but they live under
"action_dispatch/middlewares/middleware_name"
* It is possible to specify that a group of autoloads are all found
at the same path. For instance, a number of exceptions might all
be declared there.
* One consequence of this is that testing-related constants are not
autoloaded. To get the testing helpers for a given component,
require "component_name/test_case". For instance, "action_controller/test_case".
* test_help.rb, which is automatically required by a Rails application's
test helper, requires the test_case.rb for all active components, so
this change will not be disruptive in existing or new applications.
2009-12-02 20:01:08 -08:00
Joshua Peek
de2cd8e39f
Merge branch 'master' of github.com:rails/rails
2009-12-02 14:12:35 -06:00
Joshua Peek
8db038227c
Move controller namespace tracking into route set so it gets
...
reloaded in dev mode
2009-12-02 14:10:22 -06:00
Carlhuda
6680f9c4d7
Fix an ivar name conflict in Rails::Server
2009-12-02 11:35:47 -08:00
Carlhuda
fe41c7030b
Stop evalling the environment file in favor of require + setting a Kernel#config. This will fix the bug where reopening classes caused them to be overwritten.
2009-12-02 11:35:47 -08:00
Carlhuda
39034997d1
Add support for bare ActiveSupport via config.active_support.bare
2009-12-02 11:35:47 -08:00
Carlhuda
abfc4dad3e
Remove global Rails initializers
2009-12-02 11:35:47 -08:00
José Valim
28657e4f41
Update vendored thor and ensure that content is completely modified before checking file collisions.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-12-01 17:51:10 -08:00
Jeremy Kemper
74be70039f
Avoid using unrequired core extensions
2009-12-01 15:07:41 -08:00
Jeremy Kemper
544de09631
rails:update:configs updates boot.rb and the rest of config/*
2009-12-01 13:37:29 -08:00
Jeremy Kemper
df9f5e771b
Reinstate rails:update:configs task removed in e1fdc8b
2009-12-01 13:37:29 -08:00
Jeremy Kemper
fe319103db
Fix rails:update:scripts
2009-12-01 13:37:29 -08:00
Jeremy Kemper
eeb1afa200
Expand path relative to __FILE__
2009-11-28 12:50:09 -08:00
Carl Lerche
02c3c9dfbc
Fix the application.rb generator
2009-11-25 14:52:56 -08:00
Carl Lerche
34eac1cf1c
Load application specific rake tasks in the application object
2009-11-25 14:29:28 -08:00
Carlhuda
530b8ff5ae
Have script/* and Rakefile use the application object
2009-11-24 14:36:30 -08:00
Carlhuda
a2cb90c0c2
Refactor script/dbconsole into an object
2009-11-24 13:05:21 -08:00
Jeremy Kemper
d8c5ea76bc
Use Rails.env after loading environment
2009-11-24 10:46:16 -08:00
Joshua Peek
fa007e591d
Quieter rake test runner
2009-11-24 12:04:36 -06:00
Jeremy Kemper
e62e6d4099
Add a dead --irb option mentioning upgrade path
2009-11-23 22:09:36 -08:00
Jeremy Kemper
0088ceb6fa
Set RAILS_ENV before loading config/environment
2009-11-23 22:07:37 -08:00
Carlhuda
53d7acdf4f
Refactor script/console into an object and use IRB.start instead of calling exec.
2009-11-23 17:28:50 -08:00
Carlhuda
a080323cb0
Refactor script/server into an object that inherits from Rack::Server
2009-11-23 17:28:50 -08:00
Carlhuda
58dec09353
Update rails application root detection to take into consideration a callstack that includes the rack library
2009-11-23 17:28:50 -08:00
Jeremy Kemper
eeb1f472a5
RAILS_ENV falls back to RACK_ENV
2009-11-23 16:10:51 -08:00
David Heinemeier Hansson
35eda7d6d2
Fixed that the debugger wouldn't go into IRB mode because of left-over ARGVs [DHH]
2009-11-23 15:36:48 -06:00
José Valim
d0aa0cfbd7
Ensure generator fallbacks work even when a context is given.
...
Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
2009-11-23 09:08:48 -08:00
José Valim
d6f10126eb
Also load generators at lib/rails_generators.
...
Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
2009-11-23 09:08:33 -08:00
Jeremy Kemper
e1935e3c0c
Fix Rails::Rack::Static deprecated constant proxy
2009-11-21 10:45:42 -08:00
Jeremy Kemper
c7c39f52dc
Revert "Final steps toward clean rails "foo"; cd foo; gem bundle; script/server working"
...
Broke stuff.
This reverts commit 520b8b59110dd130c89b317b6bd65d8644c7836f.
2009-11-19 15:24:00 -08:00
Yehuda Katz + Carl Lerche
520b8b5911
Final steps toward clean rails "foo"; cd foo; gem bundle; script/server working
2009-11-18 16:28:37 -08:00
Yehuda Katz
c2997017f7
Make script/server work with correct application.rb
2009-11-16 13:58:08 -08:00
Yehuda Katz
2675ba9ef4
Require action_dispatch, not action_controller
2009-11-16 12:37:43 -08:00
Yehuda Katz + Carl Lerche
82b9b151ff
Refactor plugins
2009-11-11 18:09:16 -08:00
Jeremy Kemper
7ad6e9bc78
Fix generated performance test helper requires
2009-11-10 01:52:40 -08:00
Jeremy Kemper
3ce6a10b67
Contortions to work around brittle naming dependency
2009-11-09 20:10:10 -08:00
José Valim
51fe6d05e7
Refactor generators a little bit.
...
Signed-off-by: Yehuda Katz <wycats@mobile-166-129-219-135.mycingular.net>
2009-11-08 18:41:44 -08:00
José Valim
216e8c6bfa
Update Rails Generators to use Thor 0.12.0.
...
Signed-off-by: Yehuda Katz <wycats@mobile-166-129-219-135.mycingular.net>
2009-11-08 18:41:44 -08:00
Jeremy Kemper
cb9a1759c0
Fix generators tests that expect a class name
2009-11-05 16:12:02 -08:00
Yehuda Katz
b0dfd1d19b
Update Ruby version check to 1.8.7
2009-11-05 15:38:25 -08:00
Yehuda Katz + Carl Lerche
4369426993
Add the ability to merge initializers from various objects in order.
2009-11-05 14:45:53 -08:00
Yehuda Katz + Carl Lerche
897164ddb7
Conceptually unify instance & global initializers
2009-11-05 14:44:29 -08:00
Jeremy Kemper
a3d5274e67
Configure generator when needed rather than during initialization
2009-11-03 18:58:40 -08:00
José Valim
d627c932bd
Pass config.generators options along when RAILS_GENERATORS is set and show --force-plural message just once.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-11-03 18:22:05 -08:00
Jeremy Kemper
e5211e3bd0
Improve Gemfile commentary
2009-11-03 16:36:19 -08:00
José Valim
3b8e29fe56
Remove --freeze (since Rails will come bundled in all new apps) and update gem action to change Gemfile instead of config.environment.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-11-03 16:32:47 -08:00
José Valim
3fb548cac3
Ensure ActiveRecord is loaded on revoke/destroy.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-11-03 16:32:47 -08:00
José Valim
e15b5eda2b
Avoid duplicated names on help description and show proper error message if trying to load a Rails 2.x generator.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-11-03 16:32:47 -08:00
José Valim
d226f17507
Ensure that generators can be invoked from any directory.
...
Signed-off-by: Engine Yard <engineyard@Engine-Yards-MacBook-Pro.local>
2009-11-02 18:20:16 -08:00
Jeremy Kemper
36a9644b86
Clarify date/time dependencies
2009-11-02 17:50:12 -08:00
Yehuda Katz
14370e1aab
CI breakage
...
This reverts commit a288b74f1c75c6f100de7611a5093a421f1ad6d1.
2009-11-02 17:12:01 -08:00
José Valim
a288b74f1c
Generators should use Rails.root instead of Dir.pwd [ #3408 status:resolved]
...
Signed-off-by: Yehuda Katz <wycats@gmail.com>
2009-10-28 16:54:38 -04:00
Yehuda Katz
86596975be
Tests pass again
2009-10-27 19:05:47 -07:00
Yehuda Katz + Carl Lerche
df95f16570
Update initializable
2009-10-27 17:01:33 -07:00
Yehuda Katz + Carl Lerche
da62a7c536
Duplicate AS code no longer needed
2009-10-27 17:01:33 -07:00
José Valim
c28a45ad8b
Fix rake dev and update vendored Thor.
...
Signed-off-by: Yehuda Katz <wycats@gmail.com>
2009-10-27 16:46:19 -07:00
Joshua Peek
a840c8afbf
Restore rake routes
[ #3402 state:resolved]
2009-10-24 18:08:54 -05:00
Joshua Peek
fa1926ddaa
Exclude gem backtrace filter if rubygems is not loaded
2009-10-20 09:32:26 -05:00
Jeremy Kemper
248d84f2e6
Simplify path expansions
2009-10-19 21:00:22 -07:00
Jeremy Kemper
acb1624f27
Merge commit 'josevalim/fixes'
...
Conflicts:
railties/test/generators/app_generator_test.rb
2009-10-19 18:37:19 -07:00
Jeremy Kemper
7ab30599a6
Error message references application.rb instead of environment.rb
2009-10-19 18:33:57 -07:00
Jeremy Kemper
4afe70790c
Check for environment.rb
2009-10-19 18:12:29 -07:00
Jeremy Kemper
3072bf7555
Check for bundler environment or 2.x-style vendor/rails + rubygems
2009-10-19 18:10:14 -07:00
Pratik Naik
1ac5cf4788
Make sure boot.rb requires rubygems only when needed
2009-10-19 15:06:54 -02:00
Carl Lerche
d0f4d93df8
Remove some remnants of config.gem
2009-10-17 14:38:40 -07:00
José Valim
1f9d234a6b
By default use ActiveModel API in controller generators, unless otherwise specified [ #3123 status:resolved]
2009-10-17 15:56:44 -03:00
José Valim
03c5a0e5c4
Make app generatoor specs green once again.
2009-10-17 15:54:58 -03:00
Joshua Peek
e13d232150
Add stub for configuring your package manager
2009-10-16 20:57:46 -05:00
Carl Lerche
e1fdc8bba3
Remove config.gem in favor of using the bundler. This makes config/boot.rb obsolete.
...
The bundler library is at: http://github.com/wycats/bundler/ and is a rubygem.
2009-10-16 18:10:52 -07:00
Joshua Peek
29ba9c0307
Use Rails.root in statistics rake task
2009-10-16 19:40:59 -05:00
Joshua Peek
7593e8b8b5
Rakefile doesn't need initializers to be ran
2009-10-16 19:40:08 -05:00
Joshua Peek
c7bf1058d3
Fix incorrect path in script/runner template
2009-10-16 19:33:25 -05:00
Joshua Peek
f1640a1653
script/runner should require environment
2009-10-16 19:33:25 -05:00
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
Joshua Peek
accd9b4634
Restore "Start Rails::Application object
...
This reverts commit f14ad4145622f45e9bf7433b5fdef4ce427efe4b.
2009-09-25 21:32:28 -05:00
Joshua Peek
bace497aea
Remove relative url configuration from script/server
2009-09-25 21:17:38 -05:00
Joshua Peek
382870f763
Generate a config.ru stub
2009-09-25 21:10:00 -05:00