1

我想从 rails 3.2.0 升级到 3.2.7,我正在寻找两者之间应用程序上下文文件更改的完整列表。

4

3 回答 3

1

以下是 rails 3.2.0应用程序和 rails 3.2.7应用程序的带注释的递归差异,不包括Gemfile.lockconfig/initializers/secret_token.rb. 要升级,请进行这些更改并运行bundle update.

顺便说一下,这里是中间发布公告:3.2.1 , 3.2.2 , 3.2.3 , 3.2.4 , 3.2.5 , 3.2.6

宝石文件

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 -- 添加空间(装饰)

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 -- 添加配置行(在whitelist_attributes 这里阅读)

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 -- 更改注释

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
于 2012-08-08T21:56:28.317 回答
0

如果您正在寻找确切的文件差异,您可以使用 Github 来比较标签:

https://github.com/rails/rails/compare/v3.2.0...v3.2.7#files_bucket

于 2012-08-08T22:53:57.990 回答
0

尝试使用 pkgdiff工具为 rails 包创建视觉差异。要为3.2.03.2.7创建一个运行:

$ pkgdiff -old rails-3.2.0-0-gf36dcaf.tar.gz -new rails-3.2.7-0-gd1b9cf2.tar.gz

输出就是这个 HTML 报告

于 2012-08-10T15:12:57.980 回答