2017/03/02分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Tell users how to assign a $EDITOR.
railties/lib/rails/commands/secrets/secrets_command.rb
の修正です。
secrets:edit
コマンド実行時に、$EDITOR
変数が設定されてない場合に$EDITOR
を設定するむねメッセージを表示するよう修正しています。
No $EDITOR to open decrypted secrets in. Assign one like this: EDITOR="mate --wait" bin/rails secrets:edit For editors that fork and exit immediately, it's important to pass a wait flag, otherwise the secrets will be saved immediately with no chance to edit.
Put it to me straight: just say it.
railties/lib/rails/commands/secrets/secrets_command.rb
の修正です。
先の$EDITOR
についてのメッセージを表示する際に、Kernelのputs
メソッドを使用していたのをThorのsay
メソッドを使用するよう修正しています。
[ci skip] Add changelog entry for encrypted secrets.
railties/CHANGELOG.md
の修正です。
encrypted secrets(Merge pull request #28128 from rails/revert-28127-revert-28038-encrypted-secrets)の対応について、CHANGELOGにエントリーを追加しています。
Merge pull request #28220 from kamipo/valid_type_accept_only_supported_types
activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
の修正です。
type(e.g. integer
、string
等)がそのadapterでサポートされているかどうかをチェックする為のvalid_type?
メソッドがsqlite3 adapterで必ずtrueを返すようになってしまっていたのを、適切にチェック処理を行うよう修正しています。
Update DateTime#change
to support usec and nsec
activesupport/lib/active_support/core_ext/date_time/calculations.rb
の修正です。
DateTime#change
メソッドで:usec
、及び:nsec
オプションを使用出来るよう修正しています。
Convert ENV["EDITOR"]
to string before check
railties/lib/rails/commands/secrets/secrets_command.rb
の修正です。
ENV["EDITOR"]
が空かどうかをempty?
でチェックする前に、でStringに変換するよう修正しています。ENV["EDITOR"]
がnilだった場合にNoMethodError
になってしまう為。