CHANGELOG 32.1 KB
Newer Older
1 2
*SVN*

3 4
* Support using different database adapters for development and test with ActiveRecord::Base.schema_format = :ruby [Sam Stephenson]

J
Jamis Buck 已提交
5 6
* Make webrick work with session(:off)

7 8
* Add --version, -v option to the Rails command. Closes #1840. [stancell]

9
* Update Prototype to V1.4.0_pre11, script.aculo.us to V1.5_rc3 [2504] and fix the rails generator to include the new .js files [Thomas Fuchs]
10

11 12
* Make the generator skip a file if it already exists and is identical to the new file.

J
Jamis Buck 已提交
13 14
* Add experimental plugin support #2335

T
Thomas Fuchs 已提交
15 16
* Made Rakefile aware of new .js files in script.aculo.us [Thomas Fuchs]

17
* Make table_name and controller_name in generators honor AR::Base.pluralize_table_names. #1216 #2213 [kazuhiko@fdiary.net]
18

J
Jeremy Kemper 已提交
19 20
* Clearly label functional and unit tests in rake stats output.  #2297 [lasse.koskela@gmail.com]

21 22
* Make the migration generator only check files ending in *.rb when calculating the next file name #2317 [Chad Fowler]

23 24
* Added prevention of duplicate migrations from the generator #2240 [fbeausoleil@ftml.net]

25 26
* Add db_schema_dump and db_schema_import rake tasks to work with the new ActiveRecord::SchemaDumper (for dumping a schema to and reading a schema from a ruby file).

27 28
* Reformed all the config/environments/* files to conform to the new Rails::Configuration approach. Fully backwards compatible.

D
David Heinemeier Hansson 已提交
29
* Added create_sessions_table, drop_sessions_table, and purge_sessions_table as rake tasks for databases that supports migrations (MySQL, PostgreSQL, SQLite) to get a table for use with CGI::Session::ActiveRecordStore
30

31 32
* Added dump of schema version to the db_structure_dump task for databases that support migrations #1835 [Rick Olson]

33 34
* Fixed script/profiler for Ruby 1.8.2 #1863 [Rick Olson]

35 36
* Fixed clone_structure_to_test task for SQLite #1864 [jon@burningbush.us]

37 38
* Added -m/--mime-types option to the WEBrick server, so you can specify a Apache-style mime.types file to load #2059 [ask@develooper.com]

39 40
* Added -c/--svn option to the generator that'll add new files and remove destroyed files using svn add/revert/remove as appropriate #2064 [kevin.clark@gmail.com]

41
* Added -c/--charset option to WEBrick server, so you can specify a default charset (which without changes is UTF-8) #2084 [wejn@box.cz]
42

43 44
* Make the default stats task extendable by modifying the STATS_DIRECTORIES constant

45 46
* Allow the selected environment to define RAILS_DEFAULT_LOGGER, and have Rails::Initializer use it if it exists.

47 48 49 50
* Moved all the shared tasks from Rakefile into Rails, so that the Rakefile is empty and doesn't require updating.

* Added Rails::Initializer and Rails::Configuration to abstract all of the common setup out of config/environment.rb (uses config/boot.rb to bootstrap the initializer and paths)

51 52
* Fixed the scaffold generator to fail right away if the database isn't accessible instead of in mid-air #1169 [Chad Fowler]

53 54
* Corrected project-local generator location in scripts.rb #2010 [Michael Schuerig]

55 56
* Don't require the environment just to clear the logs #2093 [Scott Barron]

57 58
* Make the default rakefile read *.rake files from config/tasks (for easy extension of the rakefile by e.g. generators)

59 60
* Only load breakpoint in development mode and when BREAKPOINT_SERVER_PORT is defined.

61 62
* Allow the --toggle-spin switch on process/reaper to be negated

63 64
* Replace render_partial with render :partial in scaffold generator [Nicholas Seckar]

65 66
* Added -w flag to ps in process/reaper #1934 [Scott Barron]

67 68
* Allow ERb in the database.yml file (just like with fixtures), so you can pull out the database configuration in environment variables #1822 [Duane Johnson]

69 70
* Added convenience controls for FCGI processes (especially when managed remotely): spinner, spawner, and reaper. They reside in script/process. More details can be had by calling them with -h/--help.

71 72
* Added load_fixtures task to the Rakefile, which will load all the fixtures into the database for the current environment #1791 [Marcel Molina]

73 74
* Added an empty robots.txt to public/, so that web servers asking for it won't trigger a dynamic call, like favicon.ico #1738 [michael@schubert]

75 76 77
* Dropped the 'immediate close-down' of FCGI processes since it didn't work consistently and produced bad responses when it didn't. So now a TERM ensures exit after the next request (just as if the process is handling a request when it receives the signal). This means that you'll have to 'nudge' all FCGI processes with a request in order to ensure that they have all reloaded. This can be done by something like ./script/process/repear --nudge 'http://www.myapp.com' --instances 10, which will load the myapp site 10 times (and thus hit all of the 10 FCGI processes once, enough to shut down).


78
*0.13.1* (11 July, 2005)
79

80 81
* Look for app-specific generators in RAILS_ROOT/generators rather than the clunky old RAILS_ROOT/script/generators.  Nobody really uses this feature except for the unit tests, so it's a negligible-impact change.  If you want to work with third-party generators, drop them in ~/.rails/generators or simply install gems.

82 83
* Fixed that each request with the WEBrick adapter would open a new database connection #1685 [Sam Stephenson]

84 85
* Added support for SQL Server in the database rake tasks #1652 [ken.barker@gmail.com] Note: osql and scptxfr may need to be installed on your development environment. This involves getting the .exes and a .rll (scptxfr) from a production SQL Server (not developer level SQL Server). Add their location to your Environment PATH and you are all set.

86 87 88 89 90
* Added a VERSION parameter to the migrate task that allows you to do "rake migrate VERSION=34" to migrate to the 34th version traveling up or down depending on the current version

* Extend Ruby version check to include RUBY_RELEASE_DATE >= '2005-12-25', the final Ruby 1.8.2 release #1674 [court3nay@gmail.com]

* Improved documentation for environment config files #1625 [court3nay@gmail.com]
91

92

93
*0.13.0* (6 July, 2005)
94

95 96
* Changed the default logging level in config/environment.rb to INFO for production (so SQL statements won't be logged)

97 98 99 100
* Added migration generator: ./script/generate migration add_system_settings

* Added "migrate" as rake task to execute all the pending migrations from db/migrate

101 102
* Fixed that model generator would make fixtures plural, even if ActiveRecord::Base.pluralize_table_names was false #1185 [Marcel Molina]

103 104
* Added a DOCTYPE of HTML transitional to the HTML files generated by Rails #1124 [Michael Koziarski]

105 106
* SIGTERM also gracefully exits dispatch.fcgi.  Ignore SIGUSR1 on Windows.

107
* Add the option to manually manage garbage collection in the FastCGI dispatcher.  Set the number of requests between GC runs in your public/dispatch.fcgi [skaes@web.de]
108

109 110
* Allow dynamic application reloading for dispatch.fcgi processes by sending a SIGHUP. If the process is currently handling a request, the request will be allowed to complete first. This allows production fcgi's to be reloaded without having to restart them.

111 112
* RailsFCGIHandler (dispatch.fcgi) no longer tries to explicitly flush $stdout (CgiProcess#out always calls flush)

113 114
* Fixed rakefile actions against PostgreSQL when the password is all numeric #1462 [michael@schubert.cx]

115 116
* ActionMailer::Base subclasses are reloaded with the other rails components #1262

117
* Made the WEBrick adapter not use a mutex around action performance if ActionController::Base.allow_concurrency is true (default is false)
118

119 120
* Fixed that mailer generator generated fixtures/plural while units expected fixtures/singular #1457 [Scott Barron]

121 122
* Added a 'whiny nil' that's aim to ensure that when users pass nil to methods where that isn't appropriate, instead of NoMethodError? and the name of some method used by the framework users will see a message explaining what type of object was expected. Only active in test and development environments by default #1209 [Michael Koziarski]

123 124
* Fixed the test_helper.rb to be safe for requiring controllers from multiple spots, like app/controllers/article_controller.rb and app/controllers/admin/article_controller.rb, without reloading the environment twice #1390 [Nicholas Seckar]

125 126
* Fixed Webrick to escape + characters in URL's the same way that lighttpd and apache do #1397 [Nicholas Seckar]

127 128
* Added -e/--environment option to script/runner #1408 [fbeausoleil@ftml.net]

129 130
* Modernize the scaffold generator to use the simplified render and test methods and to change style from @params["id"] to params[:id].  #1367

131 132
* Added graceful exit from pressing CTRL-C during the run of the rails command #1150 [Caleb Tennis]

133
* Allow graceful exits for dispatch.fcgi processes by sending a SIGUSR1. If the process is currently handling a request, the request will be allowed to complete and then will terminate itself. If a request is not being handled, the process is terminated immediately (via #exit). This basically works like restart graceful on Apache. [Jamis Buck]
134 135 136

* Made dispatch.fcgi more robust by catching fluke errors and retrying unless its a permanent condition. [Jamis Buck]

137
* Added console --profile for profiling an IRB session #1154 [Jeremy Kemper]
138

139
* Changed console_sandbox into console --sandbox #1154 [Jeremy Kemper]
140 141


142 143 144 145 146
*0.12.1* (20th April, 2005)

* Upgraded to Active Record 1.10.1, Action Pack 1.8.1, Action Mailer 0.9.1, Action Web Service 0.7.1


147
*0.12.0* (19th April, 2005)
148

149 150
* Fixed that purge_test_database would use database settings from the development environment when recreating the test database #1122 [rails@cogentdude.com]

151 152 153 154 155 156 157 158 159 160 161 162 163
* Added script/benchmarker to easily benchmark one or more statement a number of times from within the environment. Examples:

    # runs the one statement 10 times
    script/benchmarker 10 'Person.expensive_method(10)'
    
    # pits the two statements against each other with 50 runs each
    script/benchmarker 50 'Person.expensive_method(10)' 'Person.cheap_method(10)'

* Added script/profiler to easily profile a single statement from within the environment. Examples:

    script/profiler 'Person.expensive_method(10)'
    script/profiler 'Person.expensive_method(10)' 10 # runs the statement 10 times

164 165
* Added Rake target clear_logs that'll truncate all the *.log files in log/ to zero #1079 [Lucas Carlson]

166 167
* Added lazy typing for generate, such that ./script/generate cn == ./script/generate controller and the likes #1051 [k@v2studio.com]

168 169
* Fixed that ownership is brought over in pg_dump during tests for PostgreSQL #1060 [pburleson@gmail.com]

170 171
* Upgraded to Active Record 1.10.0, Action Pack 1.8.0, Action Mailer 0.9.0, Action Web Service 0.7.0, Active Support 1.0.4

172

173
*0.11.1* (27th March, 2005)
174 175 176

* Fixed the dispatch.fcgi use of a logger

177 178
* Upgraded to Active Record 1.9.1, Action Pack 1.7.0, Action Mailer 0.8.1, Action Web Service 0.6.2, Active Support 1.0.3

179

180
*0.11.0* (22th March, 2005)
181

182 183 184 185
* Removed SCRIPT_NAME from the WEBrick environment to prevent conflicts with PATH_INFO #896 [Nicholas Seckar]

* Removed ?$1 from the dispatch.f/cgi redirect line to get rid of 'complete/path/from/request.html' => nil being in the @params now that the ENV["REQUEST_URI"] is used to determine the path #895 [dblack/Nicholas Seckar]

186 187
* Added additional error handling to the FastCGI dispatcher to catch even errors taking down the entire process

188 189
* Improved the generated scaffold code a lot to take advantage of recent Rails developments #882 [Tobias Luetke]

190 191
* Combined the script/environment.rb used for gems and regular files version. If vendor/rails/* has all the frameworks, then files version is used, otherwise gems #878 [Nicholas Seckar]

192 193
* Changed .htaccess to allow dispatch.* to be called from a sub-directory as part of the push with Action Pack to make Rails work on non-vhost setups #826 [Nicholas Seckar/Tobias Luetke]

194 195 196 197 198 199 200
* Added script/runner which can be used to run code inside the environment by eval'ing the first parameter. Examples:
    
    ./script/runner 'ReminderService.deliver'
    ./script/runner 'Mailer.receive(STDIN.read)'
  
  This makes it easier to do CRON and postfix scripts without actually making a script just to trigger 1 line of code.

201 202
* Fixed webrick_server cookie handling to allow multiple cookes to be set at once #800, #813 [dave@cherryville.org]

203
* Fixed the Rakefile's interaction with postgresql to:
204

205 206
    1. Use PGPASSWORD and PGHOST in the environment to fix prompting for 
       passwords when connecting to a remote db and local socket connections. 
207
    2. Add a '-x' flag to pg_dump which stops it dumping privileges #807 [rasputnik]
208 209
    3. Quote the user name and use template0 when dumping so the functions doesn't get dumped too #855 [pburleson]
    4. Use the port if available #875 [madrobby]
210

211 212
* Upgraded to Active Record 1.9.0, Action Pack 1.6.0, Action Mailer 0.8.0, Action Web Service 0.6.1, Active Support 1.0.2

213

214
*0.10.1* (7th March, 2005)
215

216 217
* Fixed rake stats to ignore editor backup files like model.rb~ #791 [skanthak]

218 219
* Added exception shallowing if the DRb server can't be started (not worth making a fuss about to distract new users) #779 [Tobias Luetke]

220 221
* Added an empty favicon.ico file to the public directory of new applications (so the logs are not spammed by its absence)

222 223
* Fixed that scaffold generator new template should use local variable instead of instance variable #778 [Dan Peterson]

224 225
* Allow unit tests to run on a remote server for PostgreSQL #781 [adamm@galacticasoftware.com]

226 227
* Added web_service generator (run ./script/generate web_service for help) #776 [Leon Bredt]

228 229
* Added app/apis and components to code statistics report #729 [Scott Barron]

230 231
* Fixed WEBrick server to use ABSOLUTE_RAILS_ROOT instead of working_directory #687 [Nicholas Seckar]

232 233
* Fixed rails_generator to be usable without RubyGems #686 [Cristi BALAN]

234 235
* Fixed -h/--help for generate and destroy generators #331

236 237
* Added begin/rescue around the FCGI dispatcher so no uncaught exceptions can bubble up to kill the process (logs to log/fastcgi.crash.log)

238 239
* Fixed that association#count would produce invalid sql when called sequentialy #659 [kanis@comcard.de]

240 241
* Fixed test/mocks/testing to the correct test/mocks/test #740

242 243
* Added early failure if the Ruby version isn't 1.8.2 or above #735

244 245
* Removed the obsolete -i/--index option from the WEBrick servlet #743

246 247
* Upgraded to Active Record 1.8.0, Action Pack 1.5.1, Action Mailer 0.7.1, Action Web Service 0.6.0, Active Support 1.0.1

248

D
David Heinemeier Hansson 已提交
249
*0.10.0* (24th February, 2005)
250

251 252
* Changed default IP binding for WEBrick from 127.0.0.1 to 0.0.0.0 so that the server is accessible both locally and remotely #696 [Marcel]

253 254
* Fixed that script/server -d was broken so daemon mode couldn't be used #687 [Nicholas Seckar]

255 256 257 258 259 260 261 262 263 264
* Upgraded to breakpoint 92 which fixes:

    * overload IRB.parse_opts(), fixes #443
      => breakpoints in tests work even when running them via rake
    * untaint handlers, might fix an issue discussed on the Rails ML
    * added verbose mode to breakpoint_client
    * less noise caused by breakpoint_client by default
    * ignored TerminateLineInput exception in signal handler
      => quiet exit on Ctrl-C

265 266 267 268 269 270 271 272 273 274 275
* Added support for independent components residing in /components. Example:

    Controller: components/list/items_controller.rb
    (holds a List::ItemsController class with uses_component_template_root called)
    
    Model     : components/list/item.rb
    (namespace is still shared, so an Item model in app/models will take precedence)
    
    Views     : components/list/items/show.rhtml


276
* Added --sandbox option to script/console that'll roll back all changes made to the database when you quit #672 [Jeremy Kemper]
277

278
* Added 'recent' as a rake target that'll run tests for files that changed in the last 10 minutes #612 [Jeremy Kemper]
279

280
* Changed script/console to default to development environment and drop --no-inspect #650 [Jeremy Kemper]
281

282
* Added that the 'fixture :posts' syntax can be used for has_and_belongs_to_many fixtures where a model doesn't exist #572 [Jeremy Kemper]
283

284 285
* Added that running test_units and test_functional now performs the clone_structure_to_test as well #566 [rasputnik]

286
* Added new generator framework that informs about its doings on generation and enables updating and destruction of generated artifacts. See the new script/destroy and script/update for more details #487 [Jeremy Kemper]
287

D
David Heinemeier Hansson 已提交
288 289 290 291 292 293
* Added Action Web Service as a new add-on framework for Action Pack [Leon Bredt]

* Added Active Support as an independent utility and standard library extension bundle

* Upgraded to Active Record 1.7.0, Action Pack 1.5.0, Action Mailer 0.7.0

294

295
*0.9.5* (January 25th, 2005)
296

297
* Fixed dependency reloading by switching to a remove_const approach where all Active Records, Active Record Observers, and Action Controllers are reloading by undefining their classes. This enables you to remove methods in all three types and see the change reflected immediately and it fixes #539. This also means that only those three types of classes will benefit from the const_missing and reloading approach. If you want other classes (like some in lib/) to reload, you must use require_dependency to do it.
298

299 300
* Added Florian Gross' latest version of Breakpointer and friends that fixes a variaty of bugs #441 [Florian Gross]

301 302
* Fixed skeleton Rakefile to work with sqlite3 out of the box #521 [rasputnik]

303 304
* Fixed that script/breakpointer didn't get the Ruby path rewritten as the other scripts #523 [brandt@kurowski.net]

305 306
* Fixed handling of syntax errors in models that had already been succesfully required once in the current interpreter

307 308
* Fixed that models that weren't referenced in associations weren't being reloaded in the development mode by reinstating the reload

309 310 311 312
* Fixed that generate scaffold would produce bad functional tests

* Fixed that FCGI can also display SyntaxErrors

313 314
* Upgraded to Active Record 1.6.0, Action Pack 1.4.0

315

316
*0.9.4.1* (January 18th, 2005)
D
David Heinemeier Hansson 已提交
317

318 319
* Added 5-second timeout to WordNet alternatives on creating reserved-word models #501 [Marcel Molina]

D
David Heinemeier Hansson 已提交
320 321
* Fixed binding of caller #496 [Alexey]

322 323
* Upgraded to Active Record 1.5.1, Action Pack 1.3.1, Action Mailer 0.6.1

D
David Heinemeier Hansson 已提交
324

325
*0.9.4* (January 17th, 2005)
326

D
David Heinemeier Hansson 已提交
327 328
* Added that ApplicationController will catch a ControllerNotFound exception if someone attempts to access a url pointing to an unexisting controller [Tobias Luetke]

329 330
* Flipped code-to-test ratio around to be more readable #468 [Scott Baron]

331 332
* Fixed log file permissions to be 666 instead of 777 (so they're not executable) #471 [Lucas Carlson]

333 334
* Fixed that auto reloading would some times not work or would reload the models twice #475 [Tobias Luetke]

335 336
* Added rewrite rules to deal with caching to public/.htaccess

337 338
* Added the option to specify a controller name to "generate scaffold" and made the default controller name the plural form of the model.

339 340 341
* Added that rake clone_structure_to_test, db_structure_dump, and purge_test_database tasks now pick up the source database to use from
  RAILS_ENV instead of just forcing development #424 [Tobias Luetke]

342 343
* Fixed script/console to work with Windows (that requires the use of irb.bat) #418 [octopod]

344 345
* Fixed WEBrick servlet slowdown over time by restricting the load path reloading to mod_ruby

346 347
* Removed Fancy Indexing as a default option on the WEBrick servlet as it made it harder to use various caching schemes

348 349
* Upgraded to Active Record 1.5, Action Pack 1.3, Action Mailer 0.6

350

351
*0.9.3* (January 4th, 2005)
352

353 354
* Added support for SQLite in the auto-dumping/importing of schemas for development -> test #416

355 356
* Added automated rewriting of the shebang lines on installs through the gem rails command #379 [Manfred Stienstra]

357 358 359 360 361
* Added ActionMailer::Base.deliver_method = :test to the test environment so that mail objects are available in ActionMailer::Base.deliveries
  for functional testing.

* Added protection for creating a model through the generators with a name of an existing class, like Thread or Date.
  It'll even offer you a synonym using wordnet.princeton.edu as a look-up. No, I'm not kidding :) [Florian Gross]
362

363 364 365 366
* Fixed dependency management to happen in a unified fashion for Active Record and Action Pack using the new Dependencies module. This means that
  the environment options needs to change from:
  
    Before in development.rb:
367 368
      ActionController::Base.reload_dependencies = true  
      ActiveRecord::Base.reload_associations     = true
369 370 371 372 373
    
    Now in development.rb:
      Dependencies.mechanism = :load

    Before in production.rb and test.rb:
374 375
      ActionController::Base.reload_dependencies = false
      ActiveRecord::Base.reload_associations     = false
376 377 378 379

    Now in production.rb and test.rb:
      Dependencies.mechanism = :require

380
* Fixed problems with dependency caching and controller hierarchies on Ruby 1.8.2 in development mode #351
381

382
* Fixed that generated action_mailers doesnt need to require the action_mailer since thats already done in the environment #382 [Lucas Carlson]
383

384 385
* Upgraded to Action Pack 1.2.0 and Active Record 1.4.0

386

D
David Heinemeier Hansson 已提交
387
*0.9.2*
388

389 390
* Fixed CTRL-C exists from the Breakpointer to be a clean affair without error dumping [Kent Sibilev]

391 392
* Fixed "rake stats" to work with sub-directories in models and controllers and to report the code to test ration [Scott Baron]

393 394
* Added that Active Record associations are now reloaded instead of cleared to work with the new const_missing hook in Active Record.

395 396
* Added graceful handling of an inaccessible log file by redirecting output to STDERR with a warning #330 [rainmkr]

397 398
* Added support for a -h/--help parameter in the generator #331 [Ulysses]

D
David Heinemeier Hansson 已提交
399 400 401
* Fixed that File.expand_path in config/environment.rb would fail when dealing with symlinked public directories [mjobin]

* Upgraded to Action Pack 1.1.0 and Active Record 1.3.0
402 403


404 405 406 407 408 409 410 411
*0.9.1*

* Upgraded to Action Pack 1.0.1 for important bug fix

* Updated gem dependencies


*0.9.0*
D
Initial  
David Heinemeier Hansson 已提交
412

413 414
* Renamed public/dispatch.servlet to script/server -- it wasn't really dispatching anyway as its delegating calls to public/dispatch.rb

415 416 417
* Renamed AbstractApplicationController and abstract_application.rb to ApplicationController and application.rb, so that it will be possible
  for the framework to automatically pick up on app/views/layouts/application.rhtml and app/helpers/application.rb

418
* Added script/console that makes it even easier to start an IRB session for interacting with the domain model. Run with no-args to
419 420
  see help.

421
* Added breakpoint support through the script/breakpointer client. This means that you can break out of execution at any point in
D
Initial  
David Heinemeier Hansson 已提交
422 423 424 425 426 427 428 429 430
  the code, investigate and change the model, AND then resume execution! Example:
  
    class WeblogController < ActionController::Base
      def index
        @posts = Post.find_all
        breakpoint "Breaking out from the list"
      end
    end
    
431 432
  So the controller will accept the action, run the first line, then present you with a IRB prompt in the breakpointer window. 
  Here you can do things like:
D
Initial  
David Heinemeier Hansson 已提交
433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489
  
  Executing breakpoint "Breaking out from the list" at .../webrick_server.rb:16 in 'breakpoint'

    >> @posts.inspect
    => "[#<Post:0x14a6be8 @attributes={\"title\"=>nil, \"body\"=>nil, \"id\"=>\"1\"}>, 
         #<Post:0x14a6620 @attributes={\"title\"=>\"Rails you know!\", \"body\"=>\"Only ten..\", \"id\"=>\"2\"}>]"
    >> @posts.first.title = "hello from a breakpoint"
    => "hello from a breakpoint"

  ...and even better is that you can examine how your runtime objects actually work:

    >> f = @posts.first 
    => #<Post:0x13630c4 @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>
    >> f.
    Display all 152 possibilities? (y or n)
  
  Finally, when you're ready to resume execution, you press CTRL-D

* Changed environments to be configurable through an environment variable. By default, the environment is "development", but you
  can change that and set your own by configuring the Apache vhost with a string like (mod_env must be available on the server):
  
    SetEnv RAILS_ENV production
  
  ...if you're using WEBrick, you can pick the environment to use with the command-line parameters -e/--environment, like this:
  
    ruby public/dispatcher.servlet -e production

* Added a new default environment called "development", which leaves the production environment to be tuned exclusively for that.

* Added a start_server in the root of the Rails application to make it even easier to get started

* Fixed public/.htaccess to use RewriteBase and share the same rewrite rules for all the dispatch methods

* Fixed webrick_server to handle requests in a serialized manner (the Rails reloading infrastructure is not thread-safe)

* Added support for controllers in directories. So you can have:

    app/controllers/account_controller.rb        # URL: /account/
    app/controllers/admin/account_controller.rb  # URL: /admin/account/
  
  NOTE: You need to update your public/.htaccess with the new rules to pick it up

* Added reloading for associations and dependencies under cached environments like FastCGI and mod_ruby. This makes it possible to use 
  those environments for development. This is turned on by default, but can be turned off with 
  ActiveRecord::Base.reload_associations = false and ActionController::Base.reload_dependencies = false in production environments.

* Added support for sub-directories in app/models. So now you can have something like Basecamp with:

    app/models/accounting
    app/models/project
    app/models/participants
    app/models/settings
  
  It's poor man's namespacing, but only for file-system organization. You still require files just like before.
  Nothing changes inside the files themselves.


490
* Fixed a few references in the tests generated by new_mailer [Jeremy Kemper]
D
Initial  
David Heinemeier Hansson 已提交
491 492 493 494 495 496 497 498

* Added support for mocks in testing with test/mocks

* Cleaned up the environments a bit and added global constant RAILS_ROOT


*0.8.5* (9)

499
* Made dev-util available to all tests, so you can insert breakpoints in any test case to get an IRB prompt at that point [Jeremy Kemper]:
D
Initial  
David Heinemeier Hansson 已提交
500 501 502 503 504 505 506 507

    def test_complex_stuff
      @david.projects << @new_project
      breakpoint "Let's have a closer look at @david"
    end
  
  You need to install dev-utils yourself for this to work ("gem install dev-util").

508
* Added shared generator behavior so future upgrades should be possible without manually copying over files [Jeremy Kemper]
D
Initial  
David Heinemeier Hansson 已提交
509

510
* Added the new helper style to both controller and helper templates [Jeremy Kemper]
D
Initial  
David Heinemeier Hansson 已提交
511

512
* Added new_crud generator for creating a model and controller at the same time with explicit scaffolding [Jeremy Kemper]
D
Initial  
David Heinemeier Hansson 已提交
513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683

* Added configuration of Test::Unit::TestCase.fixture_path to test_helper to concide with the new AR fixtures style

* Fixed that new_model was generating singular table/fixture names

* Upgraded to Action Mailer 0.4.0

* Upgraded to Action Pack 0.9.5

* Upgraded to Active Record 1.1.0


*0.8.0 (15)*

* Removed custom_table_name option for new_model now that the Inflector is as powerful as it is

* Changed the default rake action to just do testing and separate API generation and coding statistics into a "doc" task.

* Fixed WEBrick dispatcher to handle missing slashes in the URLs gracefully [alexey]

* Added user option for all postgresql tool calls in the rakefile [elvstone]

* Fixed problem with running "ruby public/dispatch.servlet" instead of "cd public; ruby dispatch.servlet" [alexey]

* Fixed WEBrick server so that it no longer hardcodes the ruby interpreter used to "ruby" but will get the one used based
  on the Ruby runtime configuration. [Marcel Molina Jr.]

* Fixed Dispatcher so it'll route requests to magic_beans to MagicBeansController/magic_beans_controller.rb [Caio Chassot]

* "new_controller MagicBeans" and "new_model SubscriptionPayments" will now both behave properly as they use the new Inflector.

* Fixed problem with MySQL foreign key constraint checks in Rake :clone_production_structure_to_test target [Andreas Schwarz]

* Changed WEBrick server to by default be auto-reloading, which is slower but makes source changes instant.
  Class compilation cache can be turned on with "-c" or "--cache-classes".

* Added "-b/--binding" option to WEBrick dispatcher to bind the server to a specific IP address (default: 127.0.0.1) [Kevin Temp]

* dispatch.fcgi now DOESN'T set FCGI_PURE_RUBY as it was slowing things down for now reason [Andreas Schwarz]

* Added new_mailer generator to work with Action Mailer

* Included new framework: Action Mailer 0.3

* Upgraded to Action Pack 0.9.0

* Upgraded to Active Record 1.0.0


*0.7.0*

* Added an optional second argument to the new_model script that allows the programmer to specify the table name, 
  which will used to generate a custom table_name method in the model and will also be used in the creation of fixtures.
  [Kevin Radloff]

* script/new_model now turns AccountHolder into account_holder instead of accountholder [Kevin Radloff]

* Fixed the faulty handleing of static files with WEBrick [Andreas Schwarz]

* Unified function_test_helper and unit_test_helper into test_helper

* Fixed bug with the automated production => test database dropping on PostgreSQL [dhawkins]

* create_fixtures in both the functional and unit test helper now turns off the log during fixture generation
  and can generate more than one fixture at a time. Which makes it possible for assignments like:
  
    @people, @projects, @project_access, @companies, @accounts = 
      create_fixtures "people", "projects", "project_access", "companies", "accounts"

* Upgraded to Action Pack 0.8.5 (locally-scoped variables, partials, advanced send_file)

* Upgraded to Active Record 0.9.5 (better table_name guessing, cloning, find_all_in_collection)


*0.6.5*

* No longer specifies a template for rdoc, so it'll use whatever is default (you can change it in the rakefile)

* The new_model generator will now use the same rules for plural wordings as Active Record 
  (so Category will give categories, not categorys) [Kevin Radloff]

* dispatch.fcgi now sets FCGI_PURE_RUBY to true to ensure that it's the Ruby version that's loaded [danp]

* Made the GEM work with Windows

* Fixed bug where mod_ruby would "forget" the load paths added when switching between controllers

* PostgreSQL are now supported for the automated production => test database dropping [Kevin Radloff]

* Errors thrown by the dispatcher are now properly handled in FCGI.

* Upgraded to Action Pack 0.8.0 (lots and lots and lots of fixes)

* Upgraded to Active Record 0.9.4 (a bunch of fixes)


*0.6.0*

* Added AbstractionApplicationController as a superclass for all controllers generated. This class can be used
  to carry filters and methods that are to be shared by all. It has an accompanying ApplicationHelper that all
  controllers will also automatically have available.

* Added environments that can be included from any script to get the full Active Record and Action Controller
  context running. This can be used by maintenance scripts or to interact with the model through IRB. Example:
  
    require 'config/environments/production'
    
    for account in Account.find_all
      account.recalculate_interests
    end
  
  A short migration script for an account model that had it's interest calculation strategy changed.

* Accessing the index of a controller with "/weblog" will now redirect to "/weblog/" (only on Apache, not WEBrick)

* Simplified the default Apache config so even remote requests are served off CGI as a default.
  You'll now have to do something specific to activate mod_ruby and FCGI (like using the force urls).
  This should make it easier for new comers that start on an external server.

* Added more of the necessary Apache options to .htaccess to make it easier to setup

* Upgraded to Action Pack 0.7.9 (lots of fixes)

* Upgraded to Active Record 0.9.3 (lots of fixes)


*0.5.7*

* Fixed bug in the WEBrick dispatcher that prevented it from getting parameters from the URL
  (through GET requests or otherwise)

* Added lib in root as a place to store app specific libraries

* Added lib and vendor to load_path, so anything store within can be loaded directly. 
  Hence lib/redcloth.rb can be loaded with require "redcloth"

* Upgraded to Action Pack 0.7.8 (lots of fixes)

* Upgraded to Active Record 0.9.2 (minor upgrade)


*0.5.6*

* Upgraded to Action Pack 0.7.7 (multipart form fix)

* Updated the generated template stubs to valid XHTML files

* Ensure that controllers generated are capitalized, so "new_controller TodoLists" 
  gives the same as "new_controller Todolists" and "new_controller todolists".


*0.5.5*

* Works on Windows out of the box! (Dropped symlinks)

* Added webrick dispatcher: Try "ruby public/dispatch.servlet --help" [Florian Gross]

* Report errors about initialization to browser (instead of attempting to use uninitialized logger)

* Upgraded to Action Pack 0.7.6

* Upgraded to Active Record 0.9.1

* Added distinct 500.html instead of reusing 404.html

* Added MIT license


*0.5.0*

* First public release