Commit Graph

4055 Commits

Author SHA1 Message Date
Joshua Peek
a06c47a52b Drop JS scripts from core 2010-01-29 20:27:23 -06:00
José Valim
24aba77d9c Only load testing tasks if test unit is being used. 2010-01-29 17:51:06 +01:00
José Valim
17ea8d8d4d Automatically configure generators if application is defined. 2010-01-29 17:51:06 +01:00
Pratik Naik
285361d158 Merge remote branch 'mainstream/master'
Conflicts:
	railties/lib/rails/railtie.rb
2010-01-28 19:46:17 +00:00
Carl Lerche
f15bbcf97e Move the ActiveRecord generator settings into the Railtie 2010-01-28 10:45:25 -08:00
José Valim
e7418ab63c Add more tests to some key points in Railties.
Signed-off-by: Carl Lerche <carllerche@mac.com>
2010-01-28 10:28:41 -08:00
José Valim
64ea3dfd9f Add reloadable specific for engines and move environment to application paths.
Signed-off-by: Carl Lerche <carllerche@mac.com>
2010-01-28 10:28:41 -08:00
José Valim
d3d487479a Add config.to_prepare back and add tests for it.
Signed-off-by: Carl Lerche <carllerche@mac.com>
2010-01-28 10:28:40 -08:00
José Valim
226d8e745a Refactor MetalLoader and RoutesReloader to rely less on class configuration.
Signed-off-by: Carl Lerche <carllerche@mac.com>
2010-01-28 10:28:40 -08:00
Carl Lerche
252911e378 Cleanup the test_unit generator move into the railtie 2010-01-28 10:17:41 -08:00
Carl Lerche
6268fcdc30 Fix the test_framework generator tests 2010-01-28 10:03:47 -08:00
Carlhuda
c7c3eac762 Test::Unit Railtie 2010-01-28 09:55:29 -08:00
Stefan Penner
3aa1ea1ae4 Merge branch 'rails/master' into ujs 2010-01-27 22:44:56 -06:00
Jeremy Kemper
2c12a71378 Missed template change for defaults -> default 2010-01-27 19:53:46 -08:00
Jeremy Kemper
452bb1e48d Rename 'defaults' class method to 'default' to reflect that it's a declaration 2010-01-27 19:38:17 -08:00
Jeremy Kemper
079714277d Attend to brittle mailer generator tests 2010-01-27 19:33:26 -08:00
Erik St. Martin
2ec99192d5 renaming javascript drivers to *.rails.js for better naming convention 2010-01-27 22:32:10 -05:00
Erik St. Martin
eff999d679 initial prototype of jQuery driver complete 2010-01-27 21:35:58 -05:00
Erik St. Martin
a0232d8641 jquery driver now supports :confirm 2010-01-27 20:58:17 -05:00
Erik St. Martin
4911343bf7 jquery driver now supports :popup 2010-01-27 20:42:36 -05:00
Jeremy Kemper
f2dd3578c0 self.defaults => default 2010-01-27 17:35:51 -08:00
Xavier Noria
5d21676aaa AS guide: Class#subclasses has been removed in ec7c642f5fe60afc857aa64f1a9b4c2be56f9d70 2010-01-27 22:15:37 +01:00
Xavier Noria
7346dec713 AS guide: Object#remove_subclasses_of has been removed in 5b01c8bb8bd9354fda8dc00c2df6888dbab7f017 2010-01-27 22:14:14 +01:00
Xavier Noria
afc7baf568 AS guide: Object#subclasses_of has been removed in 245bfafe335ff883f7a096eab95ac22fe2848679 2010-01-27 22:12:58 +01:00
Xavier Noria
be45bf0fd9 AS guide: Class#descendents has been removed in f85f5dfc8ffefff174b695c6363211d342f77a57 2010-01-27 22:11:38 +01:00
Xavier Noria
5c2be6d804 AS guide: Class#reachable? has been removed in 5f981ff0294ba45aa44ad15aa063970b29aeec44 2010-01-27 22:10:46 +01:00
Xavier Noria
b0edc8dcf2 AS guide: Class#remove_class has been removed in 44afd785c8e390f47bc5b80e5d94309b6b56a13c 2010-01-27 22:09:52 +01:00
Xavier Noria
6bdd9cb8f1 AS guide: Object#extend_with_included_modules_from has been removed in ccec730d7f2ccf5e44d3ac2b4b05c7c57af1cfb4 2010-01-27 22:08:08 +01:00
Xavier Noria
7a91f3712c Object#extended_by has been deleted in c25ac0deeefe55837ba8fd2b2dc860924a507e63 2010-01-27 22:06:04 +01:00
Stephen St. Martin
da19dfa419 support for observers in jquery driver, and minor bug fixes 2010-01-27 12:44:35 -06:00
Erik St. Martin
d13f254160 initial prototype of prototype js driver 2010-01-27 12:44:35 -06:00
Stephen St. Martin
5584d58e65 refactored to be more dry, data-update-failure now correctly works, combine compat and driver, namespaced events, and support for periodically_call_remote 2010-01-27 12:44:35 -06:00
Erik St. Martin
007db3fca8 start of prototype driver, missing observe_form, observe_field, and periodically_call_remote 2010-01-27 12:44:35 -06:00
Stephen St. Martin
ff26ca68d2 support for submit_to_remote in jquery driver 2010-01-27 12:44:34 -06:00
Stephen St. Martin
2204215b43 upgrade jquery to 1.4.1 and default request method to GET as its default on forms and links 2010-01-27 12:44:34 -06:00
Stephen St. Martin
ed09413230 refractor handler code for remote_form_tag to also handle link_to_remote, fix a bug preventing :method from being used, also add missing :position, :confirm is still not functional yet 2010-01-27 12:44:34 -06:00
Stephen St. Martin
04ad12d681 initial jquery driver and compat, right now the only supported method is form_remote_tag 2010-01-27 12:44:34 -06:00
James Miller
d546a72d00 Add my info to the credits 2010-01-27 09:51:46 -08:00
James Miller
b204d9477c Fix view description mismatch 2010-01-27 09:23:42 -08:00
Mikel Lindsaar
458b6a7fc9 Fixing mailer generators to use the right email address 2010-01-27 10:35:56 +11:00
José Valim
1078677575 Merge remote branch 'mikel/master' 2010-01-26 16:00:57 +01:00
José Valim
d7de1c76ca Add a test which ensures application can overwrite plugins/engines view paths. 2010-01-26 15:46:17 +01:00
José Valim
081dfca33a Clean up Rails::Rack::Logger. 2010-01-26 15:37:45 +01:00
José Valim
edb8131535 Move Rails::Rack::Metal to Rails::Application::Metal and just add cascade if any metal was declared. 2010-01-26 15:27:46 +01:00
José Valim
517b35a2bb Middleware stack actually runs routes and not the application. 2010-01-26 15:00:27 +01:00
José Valim
f8bf1982df Add tests for explicit engines. 2010-01-26 14:58:00 +01:00
José Valim
7adb1ffc03 Remove old fixtures files. 2010-01-26 14:09:48 +01:00
José Valim
1dca7ebc93 Refactor railties test, break huge files in smaller chunks and move initializers to application folder. 2010-01-26 13:57:11 +01:00
José Valim
e6da2f651f Ensure app does not show up in generators. 2010-01-26 12:23:02 +01:00
José Valim
007c0bb3b0 Ensure proper class is shown on rake middleware. 2010-01-26 12:16:47 +01:00
José Valim
db99324a89 Ensure calling a method in Rails::Application does not instantiate a void application. 2010-01-26 12:16:47 +01:00
José Valim and Mikel Lindsaar
8fabcb2eca Update generators to use new defaults. 2010-01-26 11:48:25 +01:00
Mikel Lindsaar
b8c82edc1f Updating generators for mailer to reflect changes in API 2010-01-26 18:59:52 +11:00
José Valim
abad097016 Merge remote branch 'mikel/master' 2010-01-26 01:56:52 +01:00
José Valim and Mikel Lindsaar
1b3cb54eba More work on generated mailer templates. 2010-01-26 01:09:08 +01:00
José Valim
5d07869245 Ensure all initializers are collections. 2010-01-26 00:08:08 +01:00
José Valim
a89c8cb528 Merge branch 'master' of git://github.com/rails/rails
Conflicts:
	railties/test/railties/plugin_test.rb
2010-01-25 23:44:03 +01:00
Joshua Peek
3086dbd8d0 Failing test for plugin init requiring another plugin lib file 2010-01-25 16:33:29 -06:00
José Valim
cc1bb8590e Refactor some railties tests structure. 2010-01-25 23:17:39 +01:00
José Valim
02908e1142 As first step setup the load path and lazy compare middlewares. 2010-01-25 22:59:08 +01:00
José Valim
1177a40e68 Fix i18n locales order test. 2010-01-25 22:10:11 +01:00
Joshua Peek
c6104e6514 Failing test for using plugin middleware in application config 2010-01-25 12:55:30 -06:00
Joshua Peek
2d1f9fb98f Plugins need to load before app initializers 2010-01-25 11:06:39 -06:00
José Valim and Mikel Lindsaar
9cb3ca1d29 Change mailer generator templates and refactor the whole naming schema. 2010-01-25 13:20:32 +01:00
Mikel Lindsaar
45b7bccd61 Updating credits file to add myself 2010-01-25 20:34:44 +11:00
Mikel Lindsaar
c3743c7ff7 Updated formatting on shell code to fit 2010-01-25 20:34:44 +11:00
Mikel Lindsaar
cdba13e504 Updated layouts and rendering guide to Rails 3.0 2010-01-25 20:34:44 +11:00
José Valim
3b6f659fb6 Add active_model/railtie back to generated boot.rb, add models back to paths, load active_support/railtie since we need it and ensure default logger is set before config. 2010-01-25 01:12:22 +01:00
Ben Marini
c5211c28e2 Updated instructions on how to create test databases with proper encoding [#97] 2010-01-24 15:01:22 -08:00
José Valim and Mikel Lindsaar
4e96442c4e Merge branch 'master' of git://github.com/rails/rails
Conflicts:
	actionmailer/lib/action_mailer/mail_helper.rb
	railties/lib/rails/configuration.rb
2010-01-25 09:50:01 +11:00
Rizwan Reza
396003fc48 Revamp of Rails documentation task
Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local>
2010-01-24 13:16:38 -08:00
José Valim
6e57b88c60 Fix a couple failures on 1.9.1. 2010-01-24 21:21:37 +01:00
Joshua Peek
9543298d02 Use Rails::Application ref in Rakefile and console scripts.
Less places you need to change if you rename your application.
2010-01-24 10:35:45 -06:00
Joshua Peek
9212652155 Add Rails::Application pointer to the default app to add symmetry to Foo::Application 2010-01-24 10:29:38 -06:00
José Valim
84ebfa4550 Ensure metals and initializers in plugins are loaded. 2010-01-24 14:48:00 +01:00
José Valim
dd05b6c543 Add tests for plugin sanity check. 2010-01-24 12:49:12 +01:00
José Valim
e548f96b1d Rename plugin_name to railtie_name and engine_name. 2010-01-24 12:23:21 +01:00
José Valim
b92608770e Ensure environment config has higher priority than application ones. 2010-01-24 12:15:46 +01:00
José Valim
37e4deb260 Ensure helpers work from configured path. 2010-01-24 12:04:37 +01:00
José Valim
e0bdc4f446 Ensure namespaced controllers in engines work. 2010-01-24 11:06:06 +01:00
José Valim
5cd9aad4fd Add I18n tests to engines. 2010-01-24 10:27:42 +01:00
José Valim
25724c664d Load deprecated tasks for plugins. 2010-01-24 10:03:03 +01:00
José Valim
5b26fa4875 Make plugin generator compatible with new schema. 2010-01-24 09:42:28 +01:00
José Valim
2fde9d774b Solve some pendencies. 2010-01-24 09:32:54 +01:00
Mikel Lindsaar
5742a72b8a Fixed :_delete is now :_destroy in Rails 3.0 2010-01-24 19:31:39 +11:00
Mikel Lindsaar
6b2ee4e8a0 Updated "Getting Started" to work and reflect changes in Rails 3.0
Also created http://github.com/mikel/getting-started-code which is
a copy of all the code in this guide.
2010-01-24 16:58:14 +11:00
José Valim
d3c40242a5 Move console stuff to its own directory. 2010-01-23 23:02:43 +01:00
José Valim
f915f9e339 Merge branch 'master' into app
Conflicts:
	railties/lib/rails/application.rb
2010-01-23 22:53:26 +01:00
José Valim
b17e358e3d Move configuration to subfolders. 2010-01-23 22:30:17 +01:00
Pratik Naik
efd0bd3b73 Merge remote branch 'mainstream/master' 2010-01-24 01:33:18 +05:30
José Valim
788fce2550 Create configurable modules and ensure that they are added only on direct children. 2010-01-23 18:41:53 +01:00
orangea
f4571e3617 generate_pdf gets it's parameter now 2010-01-23 09:20:46 -08:00
José Valim
2b75b94ac0 Plugin is now an Engine. 2010-01-23 17:51:48 +01:00
José Valim
924fa084e8 First steps into making Plugin < Engine. 2010-01-23 17:13:25 +01:00
José Valim
13d66cdf25 Extract Railtie load from application. 2010-01-23 16:59:37 +01:00
José Valim
4f03603215 Break application.rb file in smaller chunks. 2010-01-23 16:07:20 +01:00
José Valim
80130d1201 Extract routes reloading responsibilities from application and load them just upon a request. 2010-01-23 16:06:33 +01:00
Xavier Noria
c718da5351 render :text renders text, thank to Patrik Wenger 2010-01-23 13:19:58 +01:00
Mikel Lindsaar
1ea84c38ea Merge branch 'master' of git://github.com/rails/rails 2010-01-23 19:45:25 +11:00
José Valim
4eab3aad8d Ensure user set load paths have higher preference and move Bootstrap inside Application. 2010-01-23 02:03:11 +01:00
José Valim
98240c49b0 Get rid of initializers global and create i18n railtie. 2010-01-23 01:29:29 +01:00
Joshua Peek
c2e57c0bb0 I removed the rdoc task from plugin Rakefile 2010-01-22 13:56:10 -06:00
Joshua Peek
2db14457f4 Delegate App calls to instance 2010-01-22 13:56:10 -06:00
José Valim
c8cc8a9872 Moved more configuration away from bootstrap. 2010-01-22 20:44:38 +01:00
Prem Sichanugrist
cc6f16685c Add test case for load initializers before routing behavior.
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-01-22 17:58:03 +01:00
José Valim
4ae7936727 Got tests working once again. 2010-01-22 16:24:44 +01:00
Joshua Peek
c52820ae15 Use expand_path to require environment in metal template 2010-01-22 08:34:12 -06:00
Joshua Peek
284fd2568d Include cascade header in metal template 2010-01-22 08:31:41 -06:00
Joshua Peek
658f9e7e44 lib is already included w/ rake test task 2010-01-22 08:29:42 -06:00
Joshua Peek
5bf5688f51 Remove rdoc task from generated plugin Rakefile 2010-01-22 08:29:07 -06:00
Joshua Peek
259f3846a9 Template whitespace 2010-01-22 08:27:05 -06:00
Mikel Lindsaar
6fd7d1fc12 Fixing typo in config.frameworks error 2010-01-22 19:38:50 +11:00
Mikel Lindsaar
4443f4173b Added more documentation on railtie.rb 2010-01-22 14:54:32 +11:00
José Valim and Mikel Lindsaar
8a6a2ca712 Merge branch 'master' of git://github.com/rails/rails 2010-01-22 13:37:29 +11:00
José Valim and Mikel Lindsaar
c9dc1ac95b Updating functional tests to not compare equality with encoded, Mail::Message has an == operator 2010-01-22 13:32:16 +11:00
José Valim
02c5137ead Add view paths to Engine setup. 2010-01-22 01:10:31 +01:00
José Valim
7fcf8590e7 Massive cleanup in Railties and load stack. 2010-01-21 23:14:20 +01:00
Prem Sichanugrist
2df1810cf3 Add test case for load initializers before routing behavior.
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-01-21 17:45:21 +01:00
José Valim
fc4f237864 Make filter parameters based on request, so they can be modified for anything in the middleware stack. 2010-01-21 16:52:49 +01:00
José Valim
04063393f9 Give higher priority to rails generators. 2010-01-21 14:11:24 +01:00
José Valim
378464a2e4 Default to sync instrumentation. 2010-01-21 13:09:12 +01:00
José Valim
48dc1ae309 Don't let generators die if rubygems puts crap in your load path. 2010-01-21 12:10:39 +01:00
José Valim
31fddf2ace Tidy up new filter_parameters implementation. 2010-01-21 11:57:24 +01:00
Prem Sichanugrist
b1bc3b3cd3 Add deprecation warning for calling filter_parameter_logging ActionController::Base, and allow it to be configured in config.filter_parameters
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-01-21 11:41:31 +01:00
Xavier Noria
32eea7a157 AS guide: updates docs for LoadError after 1a50d2e 2010-01-21 08:01:15 +01:00
Santiago Pastorino
d1ffc54c06 fixes the failure of config.plugins without :all option tests [#3718 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-01-20 15:02:13 +01:00
Joshua Peek
a5d06d05fb Cleanup middleware introspection output 2010-01-19 22:56:37 -06:00
Xavier Noria
2877e5c216 AS guide: documents Float#round 2010-01-19 22:45:41 +01:00
José Valim
d2759d125a Avoid load tasks from plugins recursively (so stuff in tests or vendor does not get loaded). 2010-01-19 20:07:50 +01:00
José Valim
4ca9765088 Allow railties to specify generators paths. 2010-01-19 19:59:08 +01:00
José Valim
e8e8da5c85 Logging thread should not die on logging errors. 2010-01-19 16:13:27 +01:00
Mikel Lindsaar
eaae58ce0c Merge branch 'master' of github.com:lifo/docrails 2010-01-19 19:41:15 +11:00
Mikel Lindsaar
c5acbcbb0f Adding Rails 3.0 release notes 2010-01-19 19:39:13 +11:00
Mikel Lindsaar
83e5f2bbaa remove newline 2010-01-19 19:38:47 +11:00
Pratik Naik
c71120e29c Merge remote branch 'mainstream/master' 2010-01-19 13:40:26 +05:30
Mikel Lindsaar
087b67805e Adding initial intro to railtie 2010-01-19 19:05:42 +11:00
Mikel Lindsaar
001c99e75e Fix up spelling in railties/lib/rails/subscriber.rb docs 2010-01-19 17:09:21 +11:00
José Valim
c7255386cd script/generate mailer Notifier will now create a mailer at app/mailers. 2010-01-19 01:36:06 +01:00
José Valim
a18dd52d58 Get generators tests running on Ruby 1.9.1 2010-01-19 01:36:06 +01:00
José Valim
93d64dfefc Improve script/generate help. 2010-01-19 01:36:06 +01:00
José Valim
e1029be1eb Since Rails will require Ruby >= 1.8.7, we can rely on instance_exec. 2010-01-19 01:36:06 +01:00
Joshua Peek
f2693cda44 Install plugin view paths into AM view load path 2010-01-18 16:48:04 -06:00
Xavier Noria
907754d7ee AS guide: documents Object#extend_with_included_modules_from 2010-01-18 23:32:17 +01:00
Xavier Noria
cf82ddc96a AS guide: documents Object#extended_by 2010-01-18 23:28:14 +01:00
Joshua Peek
59cd044310 Add all folders in app/* to the load path 2010-01-18 15:37:58 -06:00
José Valim
728db5a932 Rake tasks should load generators from new paths. 2010-01-18 18:22:55 +01:00
Joshua Peek
68b76a38eb Cleanup deprecation notices. 2010-01-18 09:49:38 -06:00
José Valim
a2b76d1dde Improve generators help. 2010-01-18 16:21:11 +01:00
José Valim
61f77b1dcd More cleaning up on rails generators load path. 2010-01-18 16:21:11 +01:00
José Valim
9fffdc5cdb Generators load path now will be Ruby load path. If you want to use rspec:install generator, you need generators/rspec/install_generator in your load path. 2010-01-18 16:21:11 +01:00