Todos estão esperando o Rails 2.2. Mas acabou de sair o Ruby on Rails 2.1.1 como um release de manutenção.
O principal motivo por trás deste release é a correção da vulnerabilidade de Denial of Service no REXML. Outras correções também foram incluídas nesta versão. Para ver quais foram clique aqui.
Para atualizar o Rails basta executar no terminal:
DHH também adianta o que nós já sabiamos. Em breve teremos um beta da versão 2.2, assim como aconteceu com o Rails 2.1.
A grande maioria das correções já foram mencionadas neste blog. Para relembrar eu selecionei algumas delas. Clique para ver o que foi alterado em português.
- Deprecate define_javascript_functions, javascript_include_tag and friends are much better.
- Fix polymorphic_url with singleton resources.
- Add :tokenizer option to validates_length_of to specify how to split up the attribute string.
- Always treat integer :limit as byte length.
- Partial updates don’t update lock_version if nothing changed.
- Fix column collision with named_scope and :joins.
- db:migrate:down and :up update schema_migrations.
- PostgreSQL: support :conditions => [':foo::integer', { :foo => 1 }] without treating the ::integer typecast as a bind variable.
- MySQL: rename_column preserves column defaults.
- Add :from option to calculations.
- Add :validate option to associations to enable/disable the automatic validation of associated models.
- Added StringQuestioneer for doing things like StringQuestioneer.new(”production”).production? # => true and StringQuestioneer.new(”production”).development? # => false
- Fixed Date#end_of_quarter to not blow up on May 31st
- Fix script/about in production mode.
2 Comentários em "Rails 2.1.1: Muitas correções de bugs"
Já tá na agulha o livro Rails 2.2, né?
Sim!
Deixe o seu comentário!