♻️ Refactor: YAMLファイルの拡張子を .yaml から .yml に統一 #1745
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
概要
Rails の標準的な命名規則(
config/secrets.yml
など)に従い、すべてのYAMLファイルの拡張子を.yaml
から.yml
に統一しました。背景
Rails では
config/secrets.yml
、config/database.yml
など、.yml
拡張子が標準的に使用されています。しかし、本プロジェクトではdb/dojos.yaml
など一部のYAMLファイルで.yaml
拡張子が使用されていました。この不統一を解消し、Rails の慣例に従うことで、コードベースの一貫性を向上させます。変更内容
📁 ファイル名の変更(6ファイル)
db/dojos.yaml
→db/dojos.yml
db/dojo_event_services.yaml
→db/dojo_event_services.yml
db/facebook_event_histories.yaml
→db/facebook_event_histories.yml
db/static_event_histories.yaml
→db/static_event_histories.yml
spec/data/invalid_format_of.yaml
→spec/data/invalid_format_of.yml
📝 コード内の参照箇所を修正
app/models/dojo.rb
: YAML_PATH定数の更新lib/tasks/dojo_event_services.rake
: ファイルパスの更新lib/tasks/dojos_inactivated_at.rake
: 3箇所のファイルパスを更新lib/event_service/providers/facebook.rb
: YAML_FILE定数の更新lib/event_service/providers/static_yaml.rb
: YAML_FILE定数の更新spec/models/dojo_spec.rb
: テスト用YAMLファイルパスの更新📚 ドキュメントの更新
README.md
: 4箇所の参照を更新doc/how_to_add_dojo.md
: 6箇所の参照を更新doc/plan_inactivated_at_column.md
: 8箇所の参照を更新doc/how_to_aggregate_stats_and_events.md
: 1箇所の参照を更新テスト結果
影響範囲
.yml
拡張子で統一されます確認事項
git mv
を使用してファイル履歴を保持レビューポイント