Add enough primitives to support comment preservation
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
まず、Psych の既存のパーサープリミティブと libyaml 統合を確認し、次に、説明されているコメント保持アプローチを ruamel.yaml と比較してください。この issue は探索的なものであり、ファイル、テスト、具体的な受け入れ基準を指定していません。実装を開始する前に、設計を決定し、完了基準を定義する必要があります。
索引モデルが issue の本文から書いたものです。
説明
Preserving comments in YAML files is a general problem many automation tools have.
The general problem is that you have some YAML file say:
# the answer
- universe: 41
When you decide to programmatically change the file to correct the answer by loading and saving YAML you end up stripping comments
- universe: 42
There are 2 current families of solutions in the wild. The first is regex hacking. The second is leaning on https://pypi.org/project/ruamel.yaml/.
Was wondering if having enough internal primitives in psych to implement this is a good idea? Should comment preservation be built into Psych (optionally) or is this the role of some other gem that consumes it?
- 主要言語
- Ruby
- スター
- 596
- フォーク
- 228
- 平均マージ
- 24分
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ruby/psych のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信
-
Sexagesimal scalars are mis-scanned対応中かも @ihamzatarar が 13 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Documentation
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Psych.dump raises Encoding::CompatibilityError for UTF-16/UTF-32 strings対応中かも @Halvanhelv が 83 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
Psych::Emitter#start_document: tag-directive handles and prefixes are aliased as raw `char *`, and the Strings die inside the loop対応中かも @ninjapanzer が 14 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
🐛 bug 👩💻 équipe CE
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
betagouv/conseillers-entreprises#4835 ·
メンテナーはふだん 1 日以内に返信
-
Action: a `test` glob with a gem older than 1.9.0 fails with `no such file` and no version hintオープンbacklog enhancement github_actions priority: low risk: low
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
davidteren/mutineer#646 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
metanorma/isodoc#965 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信