2016-10-19 20:33:21 +03:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"repoPath": "test/corpus/repos/ruby",
|
|
|
|
"repoUrl": "https://github.com/diff-fixtures/ruby.git",
|
|
|
|
"language": "ruby",
|
|
|
|
"syntaxes": [
|
|
|
|
{
|
|
|
|
"syntax": "assignment",
|
|
|
|
"repoFilePath": "assignment.rb",
|
|
|
|
"insert": "x = 0",
|
|
|
|
"replacement": "x = 1",
|
|
|
|
"testCaseFilePath": "test/corpus/diff-summaries/ruby/assignment.json"
|
2016-10-20 20:07:15 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"syntax": "comment",
|
|
|
|
"repoFilePath": "comment.rb",
|
|
|
|
"insert": "# This is a comment",
|
|
|
|
"replacement": "=begin\nThis is a multiline\ncomment\n=end",
|
|
|
|
"testCaseFilePath": "test/corpus/diff-summaries/ruby/comment.json"
|
2016-10-21 22:58:50 +03:00
|
|
|
},
|
2016-10-21 23:55:00 +03:00
|
|
|
{
|
|
|
|
"syntax": "number",
|
|
|
|
"repoFilePath": "number.rb",
|
|
|
|
"insert": "1234\n1_234\n0d1_234\n0xa_bcd_ef0_123_456_789\n0o1234567\n0b1_0\n1.234_5e678_90\n",
|
|
|
|
"replacement": "1235\n1_235\n0d1_235\n0xa_bcd_ef0_123_456_788\n0o1234576\n0b1_1\n1.234_5e678_91\n",
|
|
|
|
"testCaseFilePath": "test/corpus/diff-summaries/ruby/number.json"
|
|
|
|
},
|
2016-10-21 22:58:50 +03:00
|
|
|
{
|
|
|
|
"syntax": "symbol",
|
|
|
|
"repoFilePath": "symbol.rb",
|
|
|
|
"insert": ":foo\n:'foo'\n:\"foo\"",
|
|
|
|
"replacement": ":bar\n:'bar'\n:\"bar\"",
|
|
|
|
"testCaseFilePath": "test/corpus/diff-summaries/ruby/symbol.json"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"syntax": "string",
|
|
|
|
"repoFilePath": "string.rb",
|
|
|
|
"insert": "''\n'foo with \"bar\"'",
|
|
|
|
"replacement": "\"\"\n\"bar with 'foo'\"",
|
|
|
|
"testCaseFilePath": "test/corpus/diff-summaries/ruby/string.json"
|
|
|
|
},
|
|
|
|
{
|
2016-10-21 23:55:00 +03:00
|
|
|
"syntax": "interpolation",
|
|
|
|
"repoFilePath": "symbol.rb",
|
|
|
|
"insert": ":\"foo #{bar}\"\n\"foo #{bar}\"",
|
|
|
|
"replacement": ":\"bar #{foo}\"\n\"bar #{foo}\"",
|
|
|
|
"testCaseFilePath": "test/corpus/diff-summaries/ruby/interpolation.json"
|
2016-10-19 20:33:21 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|