なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2019/10/28)

2019/10/28分のコミットです。

CHANGELOGへの追加はありませんでした。


Edit AS core extension docs [ci skip]

rails guideのActive Support Core Extensionsの修正です。

String#truncate_bytesHash#deep_transform_values/!メソッドについての説明を追加、及び、Enumerable#index_withメソッドのexampleコードに不足していた変数の指定処理を追加しています。


Merge pull request #37562 from BakiVernes/vp/number_helper_docs

activesupport/lib/active_support/number_helper/number_to_human_converter.rbactivesupport/lib/active_support/number_helper/number_to_human_size_converter.rbのdocの修正です。

docの最初の単語を大文字に修正、及び、文の末尾にドットを追加しています。

rails commit log流し読み(2019/10/27)

2019/10/27分のコミットです。

CHANGELOGへの追加はありませんでした。


Clarify that CORS configuration isn't needed for the Disk service [ci skip]

rails guideのActive Storage Overviewの修正です。

Cross-Origin Resource Sharing (CORS) configurationの項に、Disk serviceではCORSの設定は不要である旨説明を追加しています。


Merge pull request #37558 from brookjordan/patch-1

railties/lib/rails/generators/rails/app/templates/bin/yarn.ttの修正です。

bin/yarn stubでyarnpkgコマンドを使用していたのをyarnを使用するよう修正しています。

yarnpkgパッケージはdeprecateになっている、かつ、元々yarn executableがインストールされてなかった環境でも現在はインストールされているようになっているので。


Merge pull request #37561 from SinanMujan/fix_docs_actionview

Action Viewのdocの修正です。

docについて、不要なスペースの削除、グラマーの修正、及び、文の先頭を大文字に修正、を行っています。

rails commit log流し読み(2019/10/26)

2019/10/26分のコミットです。

CHANGELOGへの追加はありませんでした。


Merge pull request #37445 from jhawthorn/optimize_content_tag

actionview/lib/action_view/helpers/tag_helper.rbの修正です。

content_tagについて、二つあったSetを1つにマージ、及び、不要な場合はStringのオブジェクトの生成を行わないよう改善を行っています。


Add changelog for IN empty array

activerecord/CHANGELOG.mdの修正です。

where(attr: [])を実行した場合にSQLを実行せずに空の配列を返すよう修正した、Avoid making query when using where(attr: [])の対応についてCHANGELOGにエントリーを追加しています。

rails commit log流し読み(2019/10/25)

2019/10/25分のコミットです。

CHANGELOGへの追加はありませんでした。


Correct "Unknown action" screenshot in Getting Started guide

guides/assets/images/getting_started/unknown_action_create_for_articles.pngの修正です。

The first formの項、controllerのactionの定義が無い場合に表示されるエラー画面の画像が、実際に表示される内容と異なっていたのを修正しています。

rails commit log流し読み(2019/10/24)

2019/10/24分のコミットです。

CHANGELOGへの追加はありませんでした。


[ci skip] Small fix to ActiveSupport docs

activesupport/lib/active_support/rails.rbのdocの修正です。

docのグラマーの修正を行っています。


fix some grammar errors on guide doc.

rails guideの修正です。

各guideのグラマーの修正を行っています。


[ci skip] Fix lower case comments without punctuation

activesupport/lib/active_support/core_ext/hash/deep_transform_values.rbactivesupport/lib/active_support/core_ext/hash/keys.rbのdocの修正です。

各メソッドのdocの行の先頭を大文字に変更しています。

rails commit log流し読み(2019/10/23)

2019/10/23分のコミットです。

CHANGELOGへの追加はありませんでした。


Allow CTEs in read-only queries.

Active Recordの修正です。

Common Table Expressionsをread-only queryとみなすよう修正しています。


Tidy up the build output for Active Job adapters

activejob/Rakefileactivejob/test/support/integration/helper.rbの修正です。

Active Jobのテスト実行時のログをtask実行時に出力、及び、エラー発生時のログもそれとわかるよう修正しています。


Add supports_common_table_expressions? for CTE testing

Active Recordの修正です。

Common Table Expressionsをサポートしているかどうかをチェックする為のsupports_common_table_expressions?メソッドを各adapterに追加、及び、Common Table Expressionsを使用するテストを定義する前に先メソッドでチェックするよう修正しています。

rails commit log流し読み(2019/10/22)

2019/10/22分のコミットです。

CHANGELOGへの追加はありませんでした。


Refactor association.scoping not to rely on klass.all

activerecord/lib/active_record/association_relation.rbactiverecord/lib/active_record/associations/association.rbの修正です。

association.scopingklass.allを使わないようリファクタリングしています。

scopingでklass.allを使用すると、deprecate warning(Deprecate using class level querying methods if the receiver scope regarded as leakedで対応されたdeprcate)が出てしまう可能性がある為。


Merge pull request #37510 from mikong/fix-terminal-output-guides

rails guideのThe Rails Command LineDebugging Rails Applicationsの修正です。

rails server実行時に出力される内容のexampleを最新の内容に更新しています。


Merge pull request #37509 from mikong/update-welcome-aboard-guides

rails guideのGetting Started with Railsの修正です。

welcomeページに表示される内容についての説明を最新の内容に更新しています。