Rilasciato Rails 2.0.2

Leggo che è stato rilasciato Rails 2.0.2, una piccola update del nostro amato framework nella sua versione più affascinante... La 2.

Questo aggiornamento apporta miglioramenti, in termini di stabilita, sicurezza e correzzione bug.

Vediamo brevemente un elenco delle modifiche apportate:

SQLite3 è il nuovo database di default

questa dicono che è la funzione più importante apportata... il motivo? Semplice, oltre ad essere più veloce operare su db SQLite, ha il suo peso il fatto che è installato di default in Leopard, il quale è già provvisto di tutte le gemme per farlo funzionare correttamente. Considerando che ad oggi l'editor più utilizzato dai Railsiti è TextMate e che questo è disponibile solo per piattaforme mac la dice lunga sul perché di questa modifica.

Migliorate le performance su I/O.

E' stata aggiunta una nuova riga (di default) in config/enviroments/production.rb

config.action_view.cache_template_loading = true

In questo modo, rails evita di verificare ogni volta se ci sono stati cambiamenti ai nostri template, riducendo le richieste I/O riducendo (drasticamente solo nel caso avete un server datato) i tempi di esecuzione.
Ricordatevi che dopo questa modifica per vedere correttamente i template, non basta più fare un commit, ma dovrete riavviare il vostro server web.

Bene bene bene... direi che possiamo installarla no?
Quindi digitate semplicemente
gem install rails
oppure se avete problemi
gem install rails --source http://gems.rubyonrails.org
Di segutio trovate il changelog... le modifiche non son mica finite...
CHANGELOG RAILS 2.0.2

Action Pack

Added delete_via_redirect and put_via_redirect to integration testing #10497 [philodespotos]

Allow headers[‘Accept’] to be set by hand when calling xml_http_request #10461 [BMorearty] Added OPTIONS to list of default accepted HTTP methods #10449 [holoway]

Added option to pass proc to ActionController::Base.asset_host for maximum configurability #10521 [chuyeow]. Example:
ActionController::Base.asset_host = Proc.new { |source| if source.starts_with?(’/images’) “http://images.example.com” else “http://assets.example.com” end }

Fixed that ActionView#file_exists? would be incorrect if @first_render is set #10569 [dbussink]

Added that Array#to_param calls to_param on all it’s elements #10473 [brandon] Ensure asset cache directories are automatically created. #10337 [Josh Peek, Cheah Chu Yeow]

render :xml and :json preserve custom content types. #10388 [jmettraux, Cheah Chu Yeow]

Refactor Action View template handlers. #10437, #10455 [Josh Peek]

Fix DoubleRenderError message and leave out mention of returning false from filters. Closes #10380 [Frederick Cheung] Clean up some cruft around ActionController::Base#head. Closes #10417 [ssoroka]

Active Record

Ensure optimistic locking handles nil #lock_version values properly. Closes #10510 [rick]

Make the Fixtures Test::Unit enhancements more supporting for double-loaded test cases. Closes #10379 [brynary]

Fix that validates_acceptance_of still works for non-existent tables (useful for bootstrapping new databases). Closes #10474 [hasmanyjosh]

Ensure that the :uniq option for has_many :through associations retains the order. #10463 [remvee]

Base.exists? doesn’t rescue exceptions to avoid hiding SQL errors. #10458 [Michael Klishin]

Documentation: Active Record exceptions, destroy_all and delete_all. #10444, #10447 [Michael Klishin]


Active Resource

Added more specific exceptions for 400, 401, and 403 (all descending from ClientError so existing rescues will work) #10326 [trek]

Correct empty response handling. #10445 [seangeo]


Active Support

Ruby 1.9 compatibility. #1689, #10466, #10468 [Cheah Chu Yeow, Pratik Naik, Jeremy Kemper]

TimeZone#to_s uses UTC rather than GMT. #1689 [Cheah Chu Yeow]

Refactor of Hash#symbolize_keys! to use Hash#replace. Closes #10420 [ReinH]

Fix HashWithIndifferentAccess#to_options! so it doesn’t clear the options hash. Closes #10419 [ReinH]


Rails

Changed the default database from mysql to sqlite3, so now running “rails myapp” will have a config/database.yml that’s setup for SQLite3 (which in OS X Leopard is installed by default, so is the gem, so everything Just Works with no database configuration at all). To get a Rails application preconfigured for MySQL, just run “rails -d mysql myapp” [DHH]

Turned on ActionView::Base.cache_template_loading by default in config/environments/production.rb to prevent file system stat calls for every template loading to see if it changed (this means that you have to restart the application to see template changes in production mode) [DHH]

Introduce `rake secret` to output a crytographically secure secret key for use with cookie sessions #10363 [revans]

Fixed that local database creation should consider 127.0.0.1 local #9026 [parcelbrat] Fixed that functional tests generated for scaffolds should use fixture calls instead of hard-coded IDs #10435 [boone]

Added db:migrate:redo and db:migrate:reset for rerunning existing migrations #10431, #10432 [matt]

RAILS_GEM_VERSION may be double-quoted also. #10443 [James Cox] Update rails:freeze:gems to work with RubyGems 0.9.5. [Jeremy Kemper]

Questo post è stato inviato il December 18, 2007 01:26 e Posted in , . Puoi seguire tutte le risposte tramite il Atom feed. You can leave a comments, Or a trackback from your own site.
Tags ,


Trackbacks

Utilizza il link seguente per fare trackback dal tuo sito
http://blog.lipsiasoft.com/trackbacks?article_id=rails-2-0-2&day=18&month=12&year=2007

Commenti

Lascia una risposta

Lascia un commento