Prevent snakeYAML add backslash when dump multiple line string
まだ誰も着手していません。
評価
調査の方向性
まず、MRI Ruby と JRuby で提供された YAML のロードとダンプの例を再現し、その後、出力された複数行文字列と empty_key の出力を比較します。関連する出力の差異が一貫して解消され、同じ例で両方のランタイムにおける結果を検証できれば、作業は完了です。
索引モデルが issue の本文から書いたものです。
説明
Given the following input
key:
"/Psych is a YAML parser and emitter. Psych leverages libyaml
for its YAML parsing and emitting capabilities. In addition to wrapping
libyaml, Psych also knows how to serialize and de-serialize most Ruby
objects to and from the YAML format./"
empty_key:
Then load and dump it:
Within MRI ruby, the output is:
---
key: "/Psych is a YAML parser and emitter. Psych leverages libyaml for its YAML parsing
and emitting capabilities. In addition to wrapping libyaml, Psych also knows how
to serialize and de-serialize most Ruby objects to and from the YAML format./"
empty_key: #An empty space was added here.
But in jruby, the result is a little different:
---
key: "/Psych is a YAML parser and emitter. Psych leverages libyaml for its YAML parsing\
\ and emitting capabilities. In addition to wrapping libyaml, Psych also knows how\
\ to serialize and de-serialize most Ruby objects to and from the YAML format./"
empty_key:
There are two differences:
- Jruby added backslashes for new line
- MRI ruby added a space after empty_key:
- 主要言語
- Ruby
- スター
- 597
- フォーク
- 223
- 平均マージ
- 14分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ruby/psych のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
Documentation
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
-
Psych.dump raises Encoding::CompatibilityError for UTF-16/UTF-32 strings対応中かも @Halvanhelv が 33 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 8 日以内に返信
-
bug: "Conversation information" accordion renders blank with 0px height when conversation has no attributes対応中かも @gihovani が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 2 日以内に返信
-
`hanami generate repository` would be a nice alias for `hanami generate repo`対応中かも @sandbergja が今日担当しました。 オープンbug help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
hanami/hanami-cli#455 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
asciidoctor/asciidoctor#4882 · コメント 4 件 ·