2020/01/19 はコミットはありませんでした。
rails commit log流し読み(2020/01/18)
2020/01/18分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
actioncable/CHANGELOG.md
Reduce FILENAME_MAX_SIZE to accomodate large PIDs
activesupport/lib/active_support/cache/file_store.rb
の修正です。
cache storeのファイル名の最大値を228から226に修正しています。
元々PIDが最大5桁(65535)である事を想定した数字になっていたのですが、今のLinuxだとPIDが最大7桁(4194304)になる為、その分数字を調整しています。
Deprecate and replace #default_hash
and #[]
activerecord/lib/active_record/database_configurations.rb
、
activerecord/lib/active_record/railties/databases.rake
の修正です。
database configurationsのdefault_hash
、[]
メソッドがdeprecateになりました。今後はconfigs_for
メソッドを使う必要があります。
Introduce ActionCable::Channel#stop_stream_from/for to unsubscribe specific streams (#37171)
actioncable/lib/action_cable/channel/streams.rb
の修正です。
特定のstreamをunsubscribeするためのActionCable::Channel#stop_stream_from
及び#stop_stream_for
メソッドを追加しています。
stop_stream_from
はstreamingを、stop_stream_for
はmodelを指定するようになっています。
rails commit log流し読み(2020/01/17)
2020/01/17分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
activestorage/CHANGELOG.md
Only enqueue analysis jobs when blob is analyzable
Active Jobの修正です。
analyzerにnull-analyzerが指定されている場合、analyzer処理用のjobをエンキューしないよう修正しています。
activestorage/lib/active_storage/analyzer.rb
のdocの修正です。
analysis
をanlysis
にタイポしていたのを修正しています。
Mark working_with_javascript_in_rails as WIP
guides/source/documents.yaml
の修正です。
rails guideのWorking with JavaScript in Rails
をWIPにしています。
exampleコードの内容が古い(coffeescriptとjQueryを使用するコードになっている)為。WIP) Update SJR with vanilla js instead jqueryで修正対応中
rails commit log流し読み(2020/01/16)
2020/01/16分のコミットです。
CHANGELOGへの追加はありませんでした。
Allow ActiveSupport deprecation warnings to be configured as disallowed
Active Supportの修正です。
deprecation messageが出力された場合の振る舞いを指定出来る対応しています。
対象とするmessage及び振る舞いはconfigで指定(config.active_support.disallowed_deprecation_warnings
とconfig.active_support.disallowed_deprecation
)出来るようになっています。
例。
ActiveSupport::Deprecation.disallowed_behavior = :raise ActiveSupport::Deprecation.disallowed_warnings = [ "something broke" ] ActiveSupport::Deprecation.warn('something broke!') # => ActiveSupport::DeprecationException
activesupport/lib/active_support/deprecation/disallowed.rb
の修正です。
MatchData
が不要な箇所でmatch
を使用していたのを、match?
を使用するよう修正しています。
activerecord/lib/active_record/associations/preloader/association.rb
の修正です。
booleanの値だけ必要な箇所でArrayを使用していたのを、booleanを使用するよう修正しています。
If dependent: nil
is valid for has_many, it also be valid for has_one
activerecord/lib/active_record/associations.rb
のdocの修正です。
has_one
のdependent
オプションに指定出来る値のリストにnil
を追加しています。
Remove SQLite version support caveats [ci skip]
activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
のdocの修正です。
Nested transactionsについて説明している箇所からSQLite3のバージョンについての説明を削除しています。Rails 6.0でサポートしているSQLite3では全て使用出来る為。
Avoid extra Array allocation for build_tag_values
actionview/lib/action_view/helpers/tag_helper.rb
の修正です。
build_tag_values
メソッドで値を組み立てる際にArray
の生成を減らすようリファクタリングしています。
rails commit log流し読み(2020/01/15)
2020/01/15分のコミットです。
CHANGELOGへの追加はありませんでした。
prevent helper_method from calling to_hash
actionpack/lib/abstract_controller/helpers.rb
の修正です。
helper_method
メソッドで定義したメソッドで、引数を**kwargs
で受け取っていたのを、*args
で受け取るよう修正しています。
to_hash
メソッドの呼び出しが行われるのを避ける為。キーワード引数の警告対策には、代わりにruby2_keywords
を使うよう対応しています。
docやテスト名のタイポをまとめて修正しています。
Don't encourage using octals for dates and times
数字を指定するのにoctal literalを使用していた箇所があったのを、使用していないよう修正しています。octal literalだと08
以上を指定した場合にエラーになってしまい、例として良くないだろう、という理由です。
activerecord/test/cases/adapters/mysql2/mysql2_adapter_test.rb
、
activerecord/test/cases/migration/change_schema_test.rb
の修正です。
MySQL 8.0.19で、(ZEROFILLの指定が無い場合)SHOW CREATEの出力から整数表示幅が削除された事によりエラーになってしまうテストがあったのを修正しています。
参考: The MySQL 8.0.19 Maintenance Release is Generally Available | MySQL Server Blog
rails commit log流し読み(2020/01/14)
2020/01/14分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Add scale support to ActiveRecord::Validations::NumericalityValidator
activemodel/lib/active_model/validations/numericality.rb
、
activerecord/lib/active_record/validations/numericality.rb
の修正です。
ActiveRecord::Validations::NumericalityValidator
にscaleのサポートを追加しています。
Fix warning on arg forwarding in integration tests
actionpack/lib/action_dispatch/testing/integration.rb
の修正です。
integration testsのdelegation処理でキーワード引数に関する警告が表示されないよう対応しています。
Merge pull request #38206 from tsuka/fix-38178
activesupport/lib/active_support/cache/redis_cache_store.rb
の修正です。
Redis::Distributed
client + namespaceを指定 + URLを複数指定している場合に、ActiveSupport::Cache::RedisCacheStore#clear
を実行するとNoMethodError
が発生するバグがあったのを修正しています。
Fix CI error with minitest 5.14
activesupport/lib/active_support/testing/parallelization.rb
の修正です。
minitest 5.14で変更になったUnexpectedError#exception
を使用している箇所がまだあったのを修正しています。
Fix random CI failure due to non-deterministic sorting order
activerecord/test/cases/calculations_test.rb
の修正です。
assertionで値を比較する際に、値をidでsortしてからチェックするよう修正しています。 sortを指定しないと結果が不定になる為。
Pass Benchmark.ms block through to realtime
activesupport/lib/active_support/core_ext/benchmark.rb
の修正です。
Benchmark.ms
メソッドの引数でblockを明示的に受け取るよう修正しています。余計なstackが追加されるのを避ける為。
rexml has been bundled gems in Ruby 2.8 (3.0)
Gemfile
の修正です。
Gemfile
にrexml
gemを追加しています。次のRubyからrexml
はbundled gemになる為。
Remove an empty line from generated migration
activerecord/lib/rails/generators/active_record/migration/templates/migration.rb.tt
の修正です。
カラムを削除するmigrationファイルをgeneratorで生成した際に、remove_column
メソッドの前に不要な空行が含まれていたのを削除しています。
Fix typo and make indent/examples consistent on docs for where.missing
activerecord/lib/active_record/relation/query_methods.rb
のdocの修正です。
missing
メソッドのdocのタイポの修正、フォーマットの修正等を行っています。
Fix my own typo now, ops! [ci skip]
activerecord/lib/active_record/relation/query_methods.rb
のdocの修正です。
先のdoc修正で違うタイポが含まれてしまったのを修正しています。
rails commit log流し読み(2020/01/13)
2020/01/13 はコミットはありませんでした。