rails 1.2.6 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rails might be problematic. Click here for more details.

Files changed (148) hide show
  1. data/CHANGELOG +491 -12
  2. data/MIT-LICENSE +1 -1
  3. data/README +17 -25
  4. data/Rakefile +41 -18
  5. data/bin/about +1 -1
  6. data/bin/console +1 -1
  7. data/bin/destroy +1 -1
  8. data/bin/generate +1 -1
  9. data/bin/performance/request +3 -0
  10. data/bin/plugin +1 -1
  11. data/bin/runner +1 -1
  12. data/bin/server +1 -1
  13. data/builtin/rails_info/rails/info.rb +2 -2
  14. data/configs/apache.conf +1 -1
  15. data/configs/databases/mysql.yml +9 -3
  16. data/configs/databases/postgresql.yml +16 -12
  17. data/configs/initializers/inflections.rb +10 -0
  18. data/configs/initializers/mime_types.rb +5 -0
  19. data/configs/routes.rb +23 -11
  20. data/doc/README_FOR_APP +1 -1
  21. data/environments/boot.rb +95 -26
  22. data/environments/development.rb +2 -5
  23. data/environments/environment.rb +24 -25
  24. data/environments/test.rb +4 -1
  25. data/helpers/application.rb +5 -2
  26. data/helpers/test_helper.rb +10 -0
  27. data/html/422.html +30 -0
  28. data/html/500.html +1 -1
  29. data/html/index.html +2 -2
  30. data/html/javascripts/controls.js +484 -354
  31. data/html/javascripts/dragdrop.js +88 -58
  32. data/html/javascripts/effects.js +396 -364
  33. data/html/javascripts/prototype.js +2817 -1107
  34. data/html/robots.txt +5 -1
  35. data/lib/commands/console.rb +12 -5
  36. data/lib/commands/performance/request.rb +6 -0
  37. data/lib/commands/plugin.rb +15 -10
  38. data/lib/commands/process/spawner.rb +14 -4
  39. data/lib/commands/servers/base.rb +12 -0
  40. data/lib/commands/servers/mongrel.rb +5 -1
  41. data/lib/commands/servers/webrick.rb +14 -7
  42. data/lib/console_app.rb +5 -2
  43. data/lib/console_with_helpers.rb +5 -2
  44. data/lib/dispatcher.rb +3 -151
  45. data/lib/fcgi_handler.rb +79 -81
  46. data/lib/initializer.rb +125 -169
  47. data/lib/rails/plugin.rb +84 -0
  48. data/lib/rails/plugin/loader.rb +150 -0
  49. data/lib/rails/plugin/locator.rb +78 -0
  50. data/lib/rails/version.rb +3 -3
  51. data/lib/rails_generator/base.rb +11 -9
  52. data/lib/rails_generator/commands.rb +20 -10
  53. data/lib/rails_generator/generators/applications/app/USAGE +0 -7
  54. data/lib/rails_generator/generators/applications/app/app_generator.rb +25 -6
  55. data/lib/rails_generator/generators/components/controller/USAGE +11 -12
  56. data/lib/rails_generator/generators/components/controller/controller_generator.rb +2 -2
  57. data/lib/rails_generator/generators/components/controller/templates/functional_test.rb +1 -11
  58. data/lib/rails_generator/generators/components/controller/templates/{view.rhtml → view.html.erb} +0 -0
  59. data/lib/rails_generator/generators/components/integration_test/USAGE +5 -11
  60. data/lib/rails_generator/generators/components/mailer/USAGE +8 -10
  61. data/lib/rails_generator/generators/components/mailer/mailer_generator.rb +3 -3
  62. data/lib/rails_generator/generators/components/mailer/templates/fixture.erb +3 -0
  63. data/lib/rails_generator/generators/components/mailer/templates/fixture.rhtml +0 -3
  64. data/lib/rails_generator/generators/components/mailer/templates/unit_test.rb +8 -24
  65. data/lib/rails_generator/generators/components/mailer/templates/view.erb +3 -0
  66. data/lib/rails_generator/generators/components/mailer/templates/view.rhtml +0 -3
  67. data/lib/rails_generator/generators/components/migration/USAGE +23 -8
  68. data/lib/rails_generator/generators/components/migration/migration_generator.rb +15 -2
  69. data/lib/rails_generator/generators/components/migration/templates/migration.rb +6 -2
  70. data/lib/rails_generator/generators/components/model/USAGE +15 -14
  71. data/lib/rails_generator/generators/components/model/model_generator.rb +10 -3
  72. data/lib/rails_generator/generators/components/model/templates/fixtures.yml +11 -3
  73. data/lib/rails_generator/generators/components/model/templates/migration.rb +4 -1
  74. data/lib/rails_generator/generators/components/model/templates/unit_test.rb +1 -3
  75. data/lib/rails_generator/generators/components/observer/USAGE +5 -7
  76. data/lib/rails_generator/generators/components/observer/templates/unit_test.rb +0 -2
  77. data/lib/rails_generator/generators/components/plugin/USAGE +8 -18
  78. data/lib/rails_generator/generators/components/plugin/plugin_generator.rb +1 -0
  79. data/lib/rails_generator/generators/components/plugin/templates/MIT-LICENSE +20 -0
  80. data/lib/rails_generator/generators/components/plugin/templates/README +10 -1
  81. data/lib/rails_generator/generators/components/plugin/templates/USAGE +1 -1
  82. data/lib/rails_generator/generators/components/plugin/templates/init.rb +1 -1
  83. data/lib/rails_generator/generators/components/plugin/templates/plugin.rb +1 -1
  84. data/lib/rails_generator/generators/components/plugin/templates/tasks.rake +1 -1
  85. data/lib/rails_generator/generators/components/resource/USAGE +23 -0
  86. data/lib/rails_generator/generators/components/resource/resource_generator.rb +13 -15
  87. data/lib/rails_generator/generators/components/resource/templates/controller.rb +1 -1
  88. data/lib/rails_generator/generators/components/resource/templates/functional_test.rb +2 -14
  89. data/lib/rails_generator/generators/components/scaffold/USAGE +24 -31
  90. data/lib/rails_generator/generators/components/scaffold/scaffold_generator.rb +45 -146
  91. data/lib/rails_generator/generators/components/scaffold/templates/controller.rb +64 -37
  92. data/lib/rails_generator/generators/components/scaffold/templates/functional_test.rb +23 -80
  93. data/lib/rails_generator/generators/components/scaffold/templates/{layout.rhtml → layout.html.erb} +0 -0
  94. data/lib/rails_generator/generators/components/scaffold/templates/style.css +1 -1
  95. data/lib/rails_generator/generators/components/{scaffold_resource/templates/view_edit.rhtml → scaffold/templates/view_edit.html.erb} +4 -4
  96. data/lib/rails_generator/generators/components/{scaffold_resource/templates/view_index.rhtml → scaffold/templates/view_index.html.erb} +4 -4
  97. data/lib/rails_generator/generators/components/{scaffold_resource/templates/view_new.rhtml → scaffold/templates/view_new.html.erb} +3 -3
  98. data/lib/rails_generator/generators/components/{scaffold_resource/templates/view_show.rhtml → scaffold/templates/view_show.html.erb} +1 -1
  99. data/lib/rails_generator/generators/components/session_migration/USAGE +6 -11
  100. data/lib/rails_generator/generators/components/session_migration/templates/migration.rb +3 -3
  101. data/lib/rails_generator/lookup.rb +45 -10
  102. data/lib/rails_generator/scripts.rb +6 -3
  103. data/lib/rails_generator/scripts/destroy.rb +23 -0
  104. data/lib/rails_generator/secret_key_generator.rb +160 -0
  105. data/lib/rails_generator/spec.rb +1 -1
  106. data/lib/source_annotation_extractor.rb +62 -0
  107. data/lib/tasks/annotations.rake +23 -0
  108. data/lib/tasks/databases.rake +249 -83
  109. data/lib/tasks/documentation.rake +11 -13
  110. data/lib/tasks/framework.rake +1 -1
  111. data/lib/tasks/rails.rb +1 -1
  112. data/lib/tasks/testing.rake +5 -7
  113. data/lib/test_help.rb +4 -3
  114. data/lib/webrick_server.rb +3 -4
  115. metadata +31 -49
  116. data/bin/breakpointer +0 -3
  117. data/lib/binding_of_caller.rb +0 -85
  118. data/lib/breakpoint.rb +0 -553
  119. data/lib/breakpoint_client.rb +0 -196
  120. data/lib/commands/breakpointer.rb +0 -1
  121. data/lib/rails_generator/generators/components/resource/templates/USAGE +0 -18
  122. data/lib/rails_generator/generators/components/resource/templates/fixtures.yml +0 -11
  123. data/lib/rails_generator/generators/components/resource/templates/migration.rb +0 -13
  124. data/lib/rails_generator/generators/components/resource/templates/model.rb +0 -2
  125. data/lib/rails_generator/generators/components/resource/templates/unit_test.rb +0 -10
  126. data/lib/rails_generator/generators/components/scaffold/templates/form.rhtml +0 -3
  127. data/lib/rails_generator/generators/components/scaffold/templates/form_scaffolding.rhtml +0 -1
  128. data/lib/rails_generator/generators/components/scaffold/templates/view_edit.rhtml +0 -9
  129. data/lib/rails_generator/generators/components/scaffold/templates/view_list.rhtml +0 -27
  130. data/lib/rails_generator/generators/components/scaffold/templates/view_new.rhtml +0 -8
  131. data/lib/rails_generator/generators/components/scaffold/templates/view_show.rhtml +0 -8
  132. data/lib/rails_generator/generators/components/scaffold_resource/USAGE +0 -29
  133. data/lib/rails_generator/generators/components/scaffold_resource/scaffold_resource_generator.rb +0 -93
  134. data/lib/rails_generator/generators/components/scaffold_resource/templates/controller.rb +0 -79
  135. data/lib/rails_generator/generators/components/scaffold_resource/templates/fixtures.yml +0 -11
  136. data/lib/rails_generator/generators/components/scaffold_resource/templates/functional_test.rb +0 -57
  137. data/lib/rails_generator/generators/components/scaffold_resource/templates/helper.rb +0 -2
  138. data/lib/rails_generator/generators/components/scaffold_resource/templates/layout.rhtml +0 -17
  139. data/lib/rails_generator/generators/components/scaffold_resource/templates/migration.rb +0 -13
  140. data/lib/rails_generator/generators/components/scaffold_resource/templates/model.rb +0 -2
  141. data/lib/rails_generator/generators/components/scaffold_resource/templates/style.css +0 -74
  142. data/lib/rails_generator/generators/components/scaffold_resource/templates/unit_test.rb +0 -10
  143. data/lib/rails_generator/generators/components/web_service/USAGE +0 -28
  144. data/lib/rails_generator/generators/components/web_service/templates/api_definition.rb +0 -5
  145. data/lib/rails_generator/generators/components/web_service/templates/controller.rb +0 -8
  146. data/lib/rails_generator/generators/components/web_service/templates/functional_test.rb +0 -19
  147. data/lib/rails_generator/generators/components/web_service/web_service_generator.rb +0 -29
  148. data/lib/tasks/pre_namespace_aliases.rake +0 -53
data/CHANGELOG CHANGED
@@ -1,36 +1,515 @@
1
- *1.2.6* (November 24th, 2007)
1
+ *2.0.0* (December 6th, 2007)
2
2
 
3
- * Fix :cookie_only to correctly avoid session fixation attacks (CVE-2007-6077)
3
+ * The test task stops with a warning if you have pending migrations. #10377 [Josh Knowles]
4
4
 
5
- * Fix regression where the association would not construct new finder SQL on save causing bogus queries for "WHERE owner_id = NULL" even after owner was saved.
5
+ * Add warning to documentation about using transactional fixtures when the code under test uses transactions itself. Closes #7548 [thijsv]
6
6
 
7
- *1.2.5* (October 12th, 2007)
7
+ * Update Prototype to 1.6.0.1. [sam]
8
8
 
9
- * Correct RAILS_GEM_VERSION regexp. Use =version gem requirement instead of ~>version so you don't get surprised by a beta gem in production. This change means upgrading to 1.2.5 will require a boot.rb upgrade. [Jeremy Kemper]
9
+ * Update script.aculo.us to 1.8.0.1. [madrobby]
10
10
 
11
- * Move custom inflections example so available before route generation. #6829 [dcmanges, Nate, piotrb]
11
+ * Added db:fixtures:identity as a way of locating what ID a foxy fixture was assigned #10332 [jbarnette]
12
12
 
13
+ * Generated fixtures should not specify ids since theyre expected to be foxy fixtures #10330 [jbarnette]
13
14
 
14
- *1.2.4* (October 4th, 2007)
15
+ * Update to Prototype -r8232. [sam]
15
16
 
16
- * Add a new rake task to aid debugging of named routes.
17
+ * Introduce SecretKeyGenerator for more secure session secrets than CGI::Session's pseudo-random id generator. Consider extracting to Active Support later. #10286 [Hongli Lai]
17
18
 
18
- rake routes
19
+ * RAILS_GEM_VERSION may be set to any valid gem version specifier. #10057 [Chad Woolley, Chu Yeow]
20
+
21
+ * Load config/preinitializer.rb, if present, before loading the environment. #9943 [Chad Woolley]
22
+
23
+ * FastCGI handler ignores unsupported signals like USR2 on Windows. [Grzegorz Derebecki]
24
+
25
+ * Only load ActionMailer::TestCase if ActionMailer is loaded. Closes #10137 [defunkt]
26
+
27
+ * Fixed that db:reset would use migrations instead of loading db/schema.rb [DHH]
28
+
29
+ * Ensure the plugin loader only loads plugins once. Closes #10102 [haruki_zaemon]
30
+
31
+ * Refactor Plugin Loader. Add plugin lib paths early, and add lots of tests. Closes #9795 [lazyatom]
32
+
33
+ * Added --skip-timestamps to generators that produce models #10036 [tpope]
34
+
35
+ * Update Prototype to 1.6.0 and script.aculo.us to 1.8.0. [sam, madrobby]
36
+
37
+ * Added db:rollback to rollback the schema one version (or multiple as specified by STEP) [Jeffrey Allan Hardy]
38
+
39
+ * Fix typo in test_helper. Closes #9925 [viktor tron]
40
+
41
+ * Request profiler. [Jeremy Kemper]
42
+
43
+ * config/boot.rb correctly detects RAILS_GEM_VERSION. #9834 [alexch, thewoolleyman]
44
+
45
+ * Fixed incorrect migration number if script/generate executed outside of Rails root #7080 [jeremymcanally]
46
+
47
+ * Update Prototype to 1.6.0_rc1 and script.aculo.us to 1.8.0 preview 0. [sam, madrobby]
48
+
49
+ * Generated fixtures use the actual primary key instead of id. #4343 [Frederick Ros, Tarmo Tänav]
50
+
51
+ * Extend the console +helper+ method to allow you to include custom helpers. e.g:
52
+ >> helper :posts
53
+ >> helper.some_method_from_posts_helper(Post.find(1))
54
+
55
+ * db:create works with remote databases whereas db:create:all only creates
56
+ databases on localhost. #9753 [Trevor Wennblom]
57
+
58
+ * Removed calls to fixtures in generated tests as fixtures :all is now present by default in test_helper.rb [DHH]
59
+
60
+ * Add --prefix option to script/server when using mongrel. [dacat]
61
+
62
+
63
+ *2.0.0 [Preview Release]* (September 29th, 2007) [Includes duplicates of changes from 1.1.4 - 1.2.3]
64
+
65
+ * Fixed that installing plugins from SVN repositories that use trunk/ will work #8188 [evan]
66
+
67
+ * Moved the SourceAnnotationExtractor to a separate file in case libraries try to load the rails rake tasks twice. [Rick]
68
+
69
+ * Moved Dispatcher to ActionController::Dispatcher. [Jeremy Kemper]
70
+
71
+ * Changed the default logger from Ruby's own Logger with the clean_logger extensions to ActiveSupport::BufferedLogger for performance reasons [DHH]. (You can change it back with config.logger = Logger.new("/path/to/log", level).)
72
+
73
+ * Added a default 422.html page to be rendered when ActiveRecord::RecordInvalid, ActiveRecord::RecordNotSaved, or ActionController::InvalidAuthenticityToken is raised [DHH]
74
+
75
+ * Added --skip-fixture option to script/generate model #6862 [sandofsky]
76
+
77
+ * Print Rails version when starting console #7440 [eyematz]
78
+
79
+ * Fixed the placement of fixture files for nested models when generating through script/generate model #7547 [jkit]
80
+
81
+ * Added TEMPLATE option to rake doc:app to set a custom output template #7737 [Jakob S]
82
+
83
+ * Added VERBOSE option to rake db:migrate to turn off output #8204 [jbarnette]
84
+
85
+ * Fixed that rake doc:app should use UTF-8 #8906 [farzy]
86
+
87
+ * Fixes rake annotations to search erb and builder files as well #9150 [m.langenberg]
88
+
89
+ * Removed web_service generator [Koz]
90
+
91
+ * Added the :all option to config.plugins that'll include the rest of the plugins not already explicitly named #9613 [fcheung]. Example:
92
+
93
+ # Loads :classic_pagination before all the other plugins
94
+ config.plugins = [ :classic_pagination, :all ]
95
+
96
+ * Added symbols as a legal way of specifying plugins in config.plugins #9629 [tom]
97
+
98
+ * Removed deprecated task names, like clear_logs, in favor of the new namespaced style [DHH]
99
+
100
+ * Support multiple config.after_initialize blocks so plugins and apps can more easily cooperate. #9582 [zdennis]
101
+
102
+ * Added db:drop:all to drop all databases declared in config/database.yml [DHH]
103
+
104
+ * Use attribute pairs instead of the migration name to create add and remove column migrations. Closes #9166 [lifofifo]
105
+
106
+ For example:
107
+
108
+ ruby script/generation migration AddSomeStuffToCustomers first_name:string last_name:string
109
+
110
+ or
111
+
112
+ ruby script/generation migration RemoveSomeStuffFromCustomers first_name:string last_name:string
113
+
114
+ * Add ActiveResource to Rails::Info. Closes #8741 [kampers]
19
115
 
20
116
  * use Gem.find_name instead of search when freezing gems. Prevent false positives for other gems with rails in the name. Closes #8729 [wselman]
21
117
 
118
+ * Automatically generate add/remove column commands in specially named migrations like AddLocationToEvent. Closes #9006 [zenspider]
119
+
120
+ * Default to plural table name in Rails Generator if ActiveRecord is not present. Closes #8963 [evan]
121
+
122
+ * Added rake routes for listing all the defined routes in the system #8795 [josh]
123
+
124
+ * db:create creates the database for the current environment if it's on localhost. db:create:all creates local databases for all environments. #8783 [matt]
125
+
126
+ * Generators: look for generators in all gems, not just those suffixed with _generator, in the gem's generators or rails_generators directory. Allow use of the rails_generators directory instead of the standard generators directory in plugins also. #8730 [Dr Nic, topfunky]
127
+
128
+ * MySQL, PostgreSQL: database.yml defaults to utf-8. #8701 [matt]
129
+
130
+ * Added db:version to get the current schema number [via Err The Blog]
131
+
132
+ * Added --skip-migration option to scaffold and resource generators #8656 [Michael Glaesemann]
133
+
134
+ * Fix that FCGIs would leave log files open when asked to shut down by USR2 #3028 [sebastian.kanthak/josh]
135
+
136
+ * Fixed that dispatcher preparation callbacks only run once in production mode. Mock Routes.reload so that dispatcher preparation callback tests run. [Rick]
137
+
22
138
  * Fix syntax error in dispatcher than wrecked failsafe responses. #8625 [mtitorenko]
23
139
 
24
- * Add Active Resource to rails:freeze:edge and drop Action Web Service. #8205 [underbluewaters, Jeremy Kemper]
140
+ * Scaffolded validation errors set the appropriate HTTP status for XML responses. #6946, #8622 [Manfred Stienstra, mmmultiworks]
141
+
142
+ * Sexy migrations for the session_migration generator. #8561 [Vladislav]
143
+
144
+ * Console reload! runs to_prepare callbacks also. #8393 [f.svehla]
145
+
146
+ * Generated migrations include timestamps by default. #8501 [Shane Vitarana]
147
+
148
+ * Drop Action Web Service from rails:freeze:edge. [Jeremy Kemper]
149
+
150
+ * Add db:create, drop, reset, charset, and collation tasks. #8448 [matt]
151
+
152
+ * Scaffold generator depends on model generator instead of duplicating it. #7222 [bscofield]
153
+
154
+ * Scaffold generator tests. #8443 [pelle]
155
+
156
+ * Generated scaffold functional tests use assert_difference. #8421 [norbert]
157
+
158
+ * Update to Prototype 1.5.1. [Sam Stephenson]
159
+
160
+ * Update to script.aculo.us 1.7.1_beta3. [Thomas Fuchs]
161
+
162
+ * Generators use *.html.erb view template naming. #8278 [Tim Pope]
163
+
164
+ * Updated resource_scaffold and model generators to use short-hand style migrations [DHH]
165
+
166
+ * Updated initializer to only load #{RAILS_ENV}.rb once. Added deprecation warning for config.breakpoint_server. [Nicholas Seckar]
167
+
168
+ * Removed breakpointer and Binding.of_caller in favor of relying on ruby-debug by Kent Sibilev since the breakpointer has been broken since Ruby 1.8.4 and will not be coming back [DHH]
169
+
170
+ To use the new debugger, start your server with script/server --debugger and insert a call to 'debugger'
171
+ (instead of 'breakpoint') where you want to jump into the debugger.
172
+
173
+ BACKWARDS INCOMPATIBILITY NOTE: You must remove the default line 12 from config/environments/development.rb:
174
+
175
+ config.breakpoint_server = true
176
+
177
+ This configuration option is no longer available. Rails will fail to start in development mode as long as
178
+ that's still present.
179
+
180
+ * Resource scaffolding returns the created entity.to_xml. [Jeremy Kemper]
181
+
182
+ * Resource scaffolding responds to new.xml. #8185 [Eric Mill]
183
+
184
+ * Include Active Resource in rails:freeze:edge rake task. [Thomas Fuchs]
185
+
186
+ * Include Active Resource instead of Action Web Service [DHH] You can add AWS back with this in config/environment.rb:
187
+
188
+ config.load_paths += %W( #{RAILS_ROOT}/vendor/rails/actionwebservice/lib )
189
+
190
+ ...or just gem 'actionwebservice'
25
191
 
26
192
  * Give generate scaffold a more descriptive database message. Closes #7316 [jeremymcanally]
27
193
 
28
194
  * Canonicalize RAILS_ROOT by using File.expand_path on Windows, which doesn't have to worry about symlinks, and Pathname#realpath elsewhere, which respects symlinks in relative paths but is incompatible with Windows. #6755 [Jeremy Kemper, trevor]
29
195
 
196
+ * Deprecation: remove components from controller paths. [Jeremy Kemper]
197
+
198
+ * Add environment variable RAILS_DEFAULT_DATABASE, which allows the builtin default of 'mysql' to be overridden. [Nicholas Seckar]
199
+
200
+ * Windows: include MinGW in RUBY_PLATFORM check. #2982 [okkez000@gmail.com, Kaspar Schiess]
201
+
202
+ * Split out the basic plugin locator functionality into an abstract super class. Add a FileSystemLocator to do the job of checking the plugin_paths for plugins. Add plugin_locators configuration option which will iterate over the set of plugin locators and load each of the plugin loaders they return. Rename locater everywhere to locator. [Marcel Molina Jr.]
203
+
204
+ * Split plugin location and loading out of the initializer and into a new Plugin namespace, which includes Plugin::Locater and Plugin::Loader. The loader class that is used can be customized using the config.plugin_loader option. Those monkey patching the plugin loading subsystem take note, the internals changing here will likely break your modifications. The good news is that it should be substantially easier to hook into the plugin locating and loading process now. [Marcel Molina Jr.]
205
+
206
+ * Added assumption that all plugin creators desire to be sharing individuals and release their work under the MIT license [DHH]
207
+
208
+ * Added source-annotations extractor tasks to rake [Jamis Buck]. This allows you to add FIXME, OPTIMIZE, and TODO comments to your source code that can then be extracted in concert with rake notes (shows all), rake notes:fixme, rake notes:optimize and rake notes:todo.
209
+
210
+ * Added fixtures :all to test_helper.rb to assume that most people just want all their fixtures loaded all the time [DHH]
211
+
212
+ * Added config/initializers where all ruby files within it are automatically loaded after the Rails configuration is done, so you don't have to litter the environment.rb file with a ton of mixed stuff [DHH]
213
+
214
+ * For new apps, generate a random secret for the cookie-based session store. [Jeremy Kemper]
215
+
216
+ * Stop swallowing errors during rake test [Koz]
217
+
218
+ * Update Rails Initializer to use ActionController::Base#view_paths [Rick]
219
+
220
+ * Fix gem deprecation warnings, which also means depending on RubyGems 0.9.0+ [Chad Fowler]
221
+
222
+ * Plugins may be symlinked in vendor/plugins. #4245 [brandon, progrium@gmail.com]
223
+
224
+ * Resource generator depends on the model generator rather than duplicating it. #7269 [bscofield]
225
+
226
+ * Add/Update usage documentation for script/destroy, resource generator and scaffold_resource generator. Closes #7092, #7271, #7267. [bscofield]
227
+
228
+ * Update to script.aculo.us 1.7.0. [Thomas Fuchs]
229
+
230
+ * Update to Prototype 1.5.0. [Sam Stephenson]
231
+
232
+ * Generator: use destination path for diff tempfiles. #7015 [alfeld]
233
+
234
+ * Fixed that webrick would strip leading newlines and hang connection #4156 [psross]
235
+
236
+ * Ensure plugins are in the Dependencies.load_once_paths collection by default. [Rick]
237
+ If you really want your plugins to reload, add this to the very top of init.rb:
238
+
239
+ Dependencies.load_once_paths.delete(lib_path)
240
+
241
+ * Allow config.to_prepare to work, make the dispatcher safe to 're require'. [Koz, Nicholas Seckar]
242
+
243
+ * Fix scaffold_resource generator so it respects the --pretend argument when creating the routes file. Closes #6852 [fearoffish]
244
+
245
+ * Fix Webrick Daemon dispatching bug regarding a bad current working directory. Closes #4899 [Rick Olson]
246
+
247
+ * Make config.plugins affect the load path and the dependencies system. Allows you to control plugin loading order, and keep disabled plugins off the load path. [James Adam]
248
+
249
+ * Don't generate a components directory in new Rails apps. [Jeremy Kemper]
250
+
251
+ * Fixed script/process/spawner to work properly with Mongrel including in -r (daemonize mode) [DHH]
252
+
253
+ * Added one-letter aliases for the three default environments to script/console, so script/console p will load the production environment (t for test, d for development) [DHH]
254
+
255
+ * Fixed that script/server running against Mongrel should tail the proper log regardless of the environment [DHH]
256
+
257
+ * Update initializer to load Rails::VERSION as soon as possible. Closes #6698. [Nicholas Seckar]
258
+
259
+ * Added ActiveRecord::Base.clear_active_connections! in development mode so the database connection is not carried over from request to request. Some databases won't reread the schema if that doesn't happen (I'm looking at you SQLite), so you have to restart the server after each migration (= no fun) [DHH]
260
+
261
+ * Made RAILS_GEM_VERSION work for beta gems too, so specifying 1.1.6 will give you 1.1.6.4520 if available [DHH]
262
+
263
+ * Update to Prototype and script.aculo.us [5579]. [Thomas Fuchs]
264
+
265
+ * Made script/server work with -e and -d when using Mongrel [DHH]
266
+
267
+ * Update to Prototype 1.5.0_rc2 [5550] which makes it work in Opera again [Thomas Fuchs]
268
+
269
+ * Make sure that exceptions which are thrown outside of the user code try their best to be handeled in ApplicationController#rescue_action [Tobias Luetke]
270
+
271
+ * Rails::VERSION::STRING should always be available without having to require 'rails/version'. #6244 [fearoffish]
272
+
273
+ * Update to Prototype 1.5.0_rc2. [Sam Stephenson]
274
+
275
+ * Add grep-based fallback to reaper, to work in pidless setups [Jamis Buck]
276
+
277
+ * Only wrap request processing with our USR1 signal handler so FastCGI can trap it and raise an exception while waiting for connections. Idle processes exit immediately rather than waiting for another request; active processes gracefully exit when the request is finished. [Jeremy Kemper]
278
+
279
+ * Alter prior change to use require_dependency instead of require_or_load. Causes ApplicationController to be reloaded again. Closes #6587. [Nicholas Seckar]
280
+
281
+ * Rake: use absolute paths to load lib and vendor tasks so they may be run outside of RAILS_ROOT. #6584 [jchris]
282
+
283
+ * Remove temporary crutch to help ApplicationController be unloaded. Closes #6496. [Nicholas Seckar]
284
+
285
+ * scaffold_resource generator uses _path named routes and head instead of render :nothing => true. #6545 [Josh Susser]
286
+
287
+ * Generator can show diff on file collision to help you decide whether to skip or overwrite. #6364 [jeffw, Jeremy Kemper]
288
+
289
+ * Generated directories are recursively svn added, like mkdir -p. #6416 [NeilW]
290
+
291
+ * resource and scaffold_resource generators add a restful route to config/routes.rb [Jeremy Kemper]
292
+
293
+ * Revert environment changes for autoload_paths. [Koz]
294
+
295
+ * Update to latest Prototype, which doesn't serialize disabled form elements, adds clone() to arrays, empty/non-string Element.update() and adds a fixes excessive error reporting in WebKit beta versions [Thomas Fuchs]
296
+
297
+ * Clean up the output of rake stats, de-emphasise components and apis, and remove the indents for tests [Koz]
298
+
299
+ * Added option to script/process/spawner of specifying the binding address #5133 [zsombor]
300
+
301
+ * Update environment.rb comments to include config.autoload_paths. Closes #6478 [caio]
302
+
303
+ * Update scaffold to use new form_tag block functionality. Closes #6480. [BobSilva]
304
+
305
+ * Plugin generator: check for class collisions. #4833 [vinbarnes@gmail.com]
306
+
307
+ * Mailer generator: handle mailers in modules, set mime_version in unit test. [Jeremy Kemper]
308
+
309
+ * Set $KCODE to 'u' by default to enable the multibyte safe String#chars proxy. [Koz]
310
+
311
+ * Added config.plugins to control which plugins are loaded #6269 [skaes]. By default, everything in vendor/plugins will be loaded, but if you specify config.plugins, only those will be loaded. Example:
312
+
313
+ config.plugins = %w[ routing_navigator simply_helpful ]
314
+
315
+ * Clean up html on included error pages. [Tim Lucas]
316
+
317
+ * Fixed default 404.html and 500.htmls to remove extreme ugliness and include human language [DHH]
318
+
319
+ * Update to latest Prototype and script.aculo.us trunk versions [Thomas Fuchs]
320
+
321
+ * PostgreSQL: db:test:purge closes open database connections first. #6236 [alex]
322
+
323
+ * Fixed test:uncommitted on Windows (backslash issue) #4999 [paul@paulbutcher.com]
324
+
325
+ * Fixed migration creation to work with namespaced models, so script/generate model Gallery::Image will use create_table :gallery_images #6327 [BobSilva]
326
+
327
+ * Fixed rename_table on SQLite tables with indexes defined #5942 [brandon@opensoul.org]
328
+
329
+ * Added default timeout setting of 5 seconds to SQLite3 database.yml configurations [DHH]
330
+
331
+ * Added generated attribute options to script/generate model, like the one found in scaffold_resource and resource [DHH]. Examples:
332
+
333
+ ./script/generate model post title:string created_on:date body:text published:boolean
334
+
335
+ * Added script/generate resource which works just like scaffold_resource, but creates empty placeholders instead of predefined [DHH]
336
+
337
+ * script/runner can run files, pass on arguments, and be used as a shebang. #6286 [Tuxie, dlpond]
338
+ #!/usr/bin/env /path/to/my/app/script/runner
339
+ # Example: just start using your models as if you are in script/console
340
+ Product.find(:all).each { |product| product.check_inventory }
341
+
342
+ * Look for rake tasks in plugin subdirs. #6259 [obrie]
343
+
344
+ * Added map.connect ':controller/:action/:id.:format' as a default route to config/routes.rb [DHH]
345
+
346
+ * Updated prototype.js to 1.5.0_rc1 with latest fixes. [Rick Olson]
347
+
348
+ - XPATH support
349
+ - Make Form.getElements() return elements in the correct order
350
+ - fix broken Form.serialize return
351
+
352
+ * session_migration generator adds an index on updated_at. #6207 [grg]
353
+
354
+ * script/server creates the tmp/pids directory. #6204 [jonathan]
355
+
356
+ * Fix script/console --sandbox for internal transactions changes. #5738 [chris@octopod.info, charles.gerungan@gmail.com]
357
+
358
+ * Remove the uncanny default of adding all app/models/*/ directories to the load path. This change will break application which expect the current behavior. As
359
+ documented in initializer.rb, the workaround is:
360
+
361
+ config.autoload_paths += Dir[RAILS_ROOT + '/app/models/*/']
362
+
363
+ References #6031. [Nicholas Seckar]
364
+
365
+ * Update to script.aculo.us 1.6.3 [Thomas Fuchs]
366
+
367
+ * Update to Prototype 1.5.0_rc1 [sam]
368
+
369
+ * Formally Deprecate the old rake tasks. [Koz]
370
+
371
+ * Thoroughly test the FCGI dispatcher. #5970 [Kevin Clark]
372
+
373
+ * Remove Dir.chdir in the Webrick DispatchServlet#initialize method. Fix bad path errors when trying to load config/routes.rb. [Rick Olson]
374
+
375
+ * Tighten rescue clauses. #5985 [james@grayproductions.net]
376
+
377
+ * Cleaning up tests. [Kevin Clark, Jeremy Kemper]
378
+
379
+ * Add Dependencies.load_once_paths. [Nicholas Seckar]
380
+
381
+ * Updated to script.aculo.us 1.6.2 [Thomas Fuchs]
382
+
383
+ * Assign Routing.controller_paths; fix script/about and rails info controller. [Nicholas Seckar]
384
+
385
+ * Don't warn dispatcher of Reloadable deprecations. [Nicholas Seckar]
386
+
387
+ * Rearrange application resetting and preparation, fix bug with leaking subclasses hash in ActiveRecord::Base [Rick Olson]
388
+
389
+ ActiveRecord::Base.reset_subclasses is called before Dependencies are cleared and classes removed.
390
+ ActiveRecord::Base.instantiate_observers is called during a Dispatcher preparation callback.
391
+
392
+ * Add missing mock directories from the autoload_paths configuration. [Rick Olson]
393
+
394
+ * Nested controller scaffolding also nests the generated layout. [iain d broadfoot]
395
+
396
+ * Add "require 'dispatcher'" to webrick server in the continuing quest to squash webrick weirdness. [Nicholas Seckar]
397
+
398
+ * Add autoload_paths support to Initializer. [Nicholas Seckar]
399
+
400
+ * Fix Dispatcher.reset_application! so that AR subclasses are removed and Observers re-initialized *after* Reloadable classes are removed. Closes #5743. [Rick Olson]
401
+
402
+ * Clarify usage of script/plugin source. Closes #5344. [james.adam@gmail.com]
403
+
404
+ * Add Dispatcher.to_prepare and config.to_prepare to provide a pre-request hook. [Nicholas Seckar]
405
+
406
+ * Tweak the Rails load order so observers are loaded after plugins, and reloaded in development mode. Closed #5279. [Rick Olson]
407
+
408
+ * Added that you can change the web server port in config/lighttpd.conf from script/server --port/-p #5465 [mats@imediatec.co.uk]
409
+
410
+ * script/performance/profiler compatibility with the new ruby-prof, including an option to choose the results printer. #5679 [shugo@ruby-lang.org]
411
+
412
+ * Fixed the failsafe response so it uses either the current recognized controller or ApplicationController. [Rick Olson]
413
+
414
+ * Make sure script/reaper only reaps dispatcher pids by default, and not the spawner's pid. [Jamis Buck]
415
+
416
+ * Fix script/plugin about so it uses about.yml and not meta.yml. [James Adam]
417
+
418
+ * Dispatcher processes rescued actions with the same controller that processed the request. #4625 [sd@notso.net]
419
+
420
+ * rails -d frontbase to create a new project with a frontbase database.yml. #4945 [mlaster@metavillage.com]
421
+
422
+ * Ensure the logger is initialized. #5629 [mike@clarkware.com]
423
+
424
+ * Added Mongrel-spawning capabilities to script/process/spawner. Mongrel will be the default choice if installed, otherwise FCGI is tried [DHH]. Examples:
425
+
426
+ spawner # starts instances on 8000, 8001, and 8002 using Mongrel if available
427
+ spawner fcgi # starts instances on 8000, 8001, and 8002 using FCGI
428
+ spawner mongrel -i 5 # starts instances on 8000, 8001, 8002, 8003, and 8004 using Mongrel
429
+ spawner -p 9100 -i 10 # starts 10 instances counting from 9100 to 9109 using Mongrel if available
430
+ spawner -p 9100 -r 5 # starts 3 instances counting from 9100 to 9102 and attempts start them every 5 seconds
431
+
432
+ Also note that script/process/reaper is Mongrel capable. So the combination of spawner and reaper is a built-in alternative to something like mongrel_cluster.
433
+
434
+ * Update scaffolding functional tests to use :id => people(:first) instead of :id => 1. #5612 [evan@protest.net]
435
+
436
+ * db:test:clone should remove existing tables before reloading the schema. #5607 [sveit@tradeharbor.com]
437
+
438
+ * Fixed migration generation for class names like ACLController #5197 [brad@madriska.com]
439
+
440
+ * Added show_source_list and show_call_stack to breakpoints to make it easier to get context #5476 [takiuchi@drecom.co.jp]. Examples:
441
+
442
+ irb(#<TopController:0x40822a68>):002:0> show_source_list
443
+ 0001 class TopController < ApplicationController
444
+ 0002 def show
445
+ 0003-> breakpoint
446
+ 0004 end
447
+ 0005
448
+ 0006 def index
449
+ 0007 end
450
+ 0008
451
+ => "/path/to/rails/root/app/controllers/top_controller.rb"
452
+
453
+ irb(#<TopController:0x40822a68>):004:0> show_call_stack 3
454
+ vendor/rails/railties/lib/breakpoint.rb:536:in `breakpoint'
455
+ vendor/rails/railties/lib/breakpoint.rb:536:in `breakpoint'
456
+ app/controllers/top_controller.rb:3:in `show'
457
+ => "/path/to/rails/root/app/controllers/top_controller.rb:3"
458
+
459
+ * Generate scaffold layout in subdirectory appropriate to its module nesting. #5511 [nils@alumni.rice.edu]
460
+
461
+ * Mongrel: script/server tails the rails log like it does with lighttpd. Prefer mongrel over lighttpd. #5541 [mike@clarkware.com]
462
+
463
+ * Don't assume Active Record is available. #5497 [bob@sporkmonger.com]
464
+
465
+ * Mongrel: script/server works on Win32. #5499 [jeremydurham@gmail.com]
466
+
467
+ * Remove opts.on { |options[:option_name] } style hash assignment. Closes #4440. [nicksieger@gmail.com]
468
+
469
+ * Mongrel support for script/server. #5475 [jeremydurham@gmail.com]
470
+
471
+ * Fix script/plugin so it doesn't barf on invalid URLs [Rick]
472
+
473
+ * Fix plugin install bug at dir with space. (closes #5359) [Yoshimasa NIWA]
474
+
475
+ * Fix bug with 'script/plugin install' so it reports unknown plugin names correctly. [Rick]
476
+
477
+ * Added uninstall.rb hook to plugin handling, such that plugins have a way of removing assets and other artifacts on removal #5003 [takiuchi@drecom.co.jp]
478
+
479
+ * Create temporary dirs relative to RAILS_ROOT when running script/server #5014 [elliot@townx.org]
480
+
481
+ * Minor tweak to dispatcher to use recognize instead of recognize!, as per the new routes. [Jamis Buck]
482
+
483
+ * Make "script/plugin install" work with svn+ssh URLs. [Sam Stephenson]
484
+
485
+ * Added lib/ to the directories that will get application docs generated [DHH]
486
+
487
+ * Add observer generator. Closes #5167. [francois.beausoleil@gmail.com]
488
+
489
+ * Session migration generator obeys pluralize_table_names. #5145 [james.adam@gmail.com]
490
+
491
+ * rake test:recent understands subdirectories. #2925 [jerrett@bravenet.com]
492
+
493
+ * The app generator detects the XAMPP package's MySQL socket location. #3832 [elliot@townx.org]
494
+
495
+ * The app generator sets a session key in application.rb so apps running on the same host may distinguish their cookies. #2967 [rcoder, rails-bug@owl.me.uk]
496
+
497
+ * Distinguish the spawners for different processes [DHH]
498
+
499
+ * Added -n/--process to script/process/spawner name the process pid (default is dispatch) [DHH]
500
+
501
+ * Namespaced OrderedHash so the Rails implementation does not clash with any others. (fixes #4911) [Julian Tarkhanov]
502
+
503
+ * Replace Ruby's deprecated append_features in favor of included. [Marcel Molina Jr.]
504
+
505
+ * Added script/process/inspector to do simple process status information on Rails dispatchers keeping pid files in tmp/pids [DHH]
506
+
507
+ * Added pid file usage to script/process/spawner and script/process/reaper along with a directive in default config/lighttpd.conf file to record the pid. They will all save their pid file in tmp/pids [DHH]
508
+
30
509
 
31
510
  *1.2.3* (March 12th, 2007)
32
511
 
33
- * Ruby 1.8.6 compatibility fixes. Upgrade rake dependency to 0.7.2.
512
+ * Ruby 1.8.6 compatibility
34
513
 
35
514
  * Windows: include MinGW in RUBY_PLATFORM check. #2982 [okkez000@gmail.com, Kaspar Schiess]
36
515
 
@@ -337,7 +816,7 @@ References #6031. [Nicholas Seckar]
337
816
  * Updated to Active Record 1.14.3, Action Pack 1.12.2, ActionWebService 1.1.3, ActionMailer 1.2.2
338
817
 
339
818
 
340
- *1.1.2* (April 9th, 2005)
819
+ *1.1.2* (April 9th, 2006)
341
820
 
342
821
  * Mention in docs that config.frameworks doesn't work when getting Rails via Gems. Closes #4857. [Alisdair McDiarmid]
343
822