我想从Rails 3.2.0升级到3.2.7,并且我正在寻找两者之间应用程序上下文文件更改的完整列表。
The following is an annotated recursive diff of a rails 3.2.0 app and a rails 3.2.7 app, excluding Gemfile.lock
and config/initializers/secret_token.rb
. To upgrade, make these changes and run bundle update
.
By the way, here are the intermediary release announcements: 3.2.1 , 3.2.2 , 3.2.3 , 3.2.4 , 3.2.5 , 3.2.6 .
Gemfile
diff --recursive rails-3.2.0/depot/Gemfile rails-3.2.7/depot/Gemfile
3c3
< gem 'rails', '3.2.0'
---
> gem 'rails', '3.2.7'
18c18
< # gem 'therubyracer'
---
> # gem 'therubyracer', :platforms => :ruby
31c31
< # Use unicorn as the web server
---
> # Use unicorn as the app server
38c38
< # gem 'ruby-debug19', :require => 'ruby-debug'
---
> # gem 'debugger'
app/assets/stylesheets/application.css -- add space (cosmetic)
diff --recursive rails-3.2.0/depot/app/assets/stylesheets/application.css rails-3.2.7/depot/app/assets/stylesheets/application.css
13c13
< */
---
> */
config/application.rb -- add config lines (read about whitelist_attributes
here )
diff --recursive rails-3.2.0/depot/config/application.rb rails-3.2.7/depot/config/application.rb
41a42,44
> # Enable escaping HTML in JSON.
> config.active_support.escape_html_entities_in_json = true
>
51c54
< # config.active_record.whitelist_attributes = true
---
> config.active_record.whitelist_attributes = true
config/environments/production.rb -- change comment
diff --recursive rails-3.2.0/depot/config/environments/production.rb rails-3.2.7/depot/config/environments/production.rb
23c23
< # Defaults to Rails.root.join("public/assets")
---
> # Defaults to nil and saved in location specified by config.assets.prefix
If you're looking for an exact file difference, you can use Github to compare the tags:
https://github.com/rails/rails/compare/v3.2.0...v3.2.7#files_bucket
Try pkgdiff tool to create visual diffs for rails packages. To create the one for 3.2.0 and 3.2.7 run:
$ pkgdiff -old rails-3.2.0-0-gf36dcaf.tar.gz -new rails-3.2.7-0-gd1b9cf2.tar.gz
The output is this HTML report .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.