2018/03/31分のコミットです。
CHANGELOGへの追加はありませんでした。
Merge pull request #32366 from utilum/use_current_config
activerecord/lib/active_record/railties/databases.rake
の修正です。
structure:dump
taskで参照するconfigが誤っていたのを修正しています。
Remove useless stylesheet file in guide
rails guideの修正です。
使用していない stylesheetを削除しています。
Add earlier releases links v3.0 and v3.1 in guides
guides/source/_welcome.html.erb
の修正です。
rails guideのTOPページのヘッダーにRails 3.1、Rails 3.0のguideへのリンクが無かったのを追加しています。
[ci skip] Modify twitter api link in api guide
rails guideのUsing Rails for API-only Applications
の修正です。
twitter developer siteへのURLをhttps://dev.twitter.com
からhttps://developer.twitter.com/
に修正しています。
Bump tested versions of Ruby on CI
.travis.yml
の修正です。
CIで使用するRubyのバージョンを更新しています。
[ci skip] Capitalize sentence of first char in AS guide
rails guideのActive Support Core Extensions
の修正です。
Stand-Alone Active Support
の項で行の先頭が小文字になっている箇所があったのを大文字に修正しています。
が、これは小文字のまま正しかったので、後ほどrevertされています。
[ci skip] Use Oxford comma style in guide
guides/source/_welcome.html.erb
の修正です。
rails guideのTOPページのヘッダーの各guideへのリンクの末尾に、カンマが不足している箇所があったのを修正していまうs.
Revert "[ci skip] Capitalize sentence of first char in AS guide"
Stand-Alone Active Support
の項で行の先頭が小文字になっている箇所があったのを大文字に修正した、[ci skip] Capitalize sentence of first char in AS guide をrevertしています。
修正した箇所は行の先頭ではなく、前の段から続く行の一部であり、小文字になっているのが正しい為。
Fix: FileStoreTest#test_filename_max_size fails in Ruby 2.5.1
activesupport/test/cache/stores/file_store_test.rb
の修正です。
FileStoreTest#test_filename_max_size
がRuby 2.5.1でコケてしまっていたのを修正しています。
Dir::Tmpname.create
が第一引数のbasenameのfile separatorを無視する(自動で一つのファイル名として連結する)ように変更されており、その影響でテスト用に作るファイルがTemp filename too long
のエラーで作れなくなってしまっていました。
# 2.5.0 Dir::Tmpname.create("a/b/c") { |file| puts file } # => /tmp/a/b/c20180401-20582-92f8ks # 2.5.1 Dir::Tmpname.create("a/b/c") { |file| puts file } #= > /tmp/abc20180401-20545-1s9m1ka
ファイル名とパスを別で渡すようにして対応しています。
参考:Ignore file separator from tmpfile/tmpdir name.
Deriving secret_key_base
breaks key_generator
defined in 5.1.
railties/lib/rails/application.rb
の修正です。
secret_key_base
メソッドで、config/secrets.yml
のsecret_key_base
が既に定義されていたら、そちらの値を使用するよう修正しています。
if Rails.env.test? || Rails.env.development? - Digest::MD5.hexdigest self.class.name + secrets.secret_key_base || Digest::MD5.hexdigest(self.class.name) else
元々はdevelopment、又は、test envだと強制的に値を生成するようになっていたのですが、それだとRails 5.1 -> 5.2にアップグレードした際に、元のsecret_key_base
に依存している値が(encrypted secrets等)読み込めない為、値が定義されていたらそちらの値を使用するようにしています。
Fix two-level database configurations with URLs
activerecord/lib/active_record/database_configurations.rb
の修正です。
database.yml
がニ階層構成、かつ、接続先にurl
を指定した場合にDBに接続出来ないバグがあったのを修正しています。
Put images into each page's dir in guides
rails guideの修正です。
guide内で使用する画像が全てguides/assets/images/
直下に格納されていたのを、各ガイド毎のディレクトリを作成し、その配下に格納するよう修正しています、
Remove needless images in guides
rails guideの修正です。
guideで使用していない画像を削除しています。