Commit 8432e5cf authored by maeda's avatar maeda

Update Rouge to 3.4.1 (#31556).

Patch by Marius BALTEANU and Go MAEDA.


git-svn-id: https://svn.redmine.org/redmine/trunk@18258 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 48fb5b8f
......@@ -3,7 +3,7 @@ source 'https://rubygems.org'
gem "bundler", ">= 1.5.0"
gem "rails", "5.2.3"
gem "rouge", "~> 3.3.0"
gem "rouge", "~> 3.4.1"
gem "request_store", "1.0.5"
gem "mini_mime", "~> 1.0.1"
gem "actionpack-xml_parser"
......
......@@ -1165,7 +1165,7 @@ document.write("Hello World!");
RAW
expected = <<-EXPECTED
<pre><code class=\"ECMA_script syntaxhl\"><span class=\"cm\">/* Hello */</span><span class=\"nb\">document</span><span class=\"p\">.</span><span class=\"nx\">write</span><span class=\"p\">(</span><span class=\"s2\">\"Hello World!\"</span><span class=\"p\">);</span></code></pre>
<pre><code class="ECMA_script syntaxhl"><span class="cm">/* Hello */</span><span class="nb">document</span><span class="p">.</span><span class="nx">write</span><span class="p">(</span><span class="dl">"</span><span class="s2">Hello World!</span><span class="dl">"</span><span class="p">);</span></code></pre>
EXPECTED
assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '')
......
......@@ -39,7 +39,7 @@ print "Hello, world!\n";
RAW_PERL
expected_perl = <<'EXPECTED_PERL'
<span class="c1">#!/usr/bin/perl</span>
<span class="k">print</span> <span class="s">"Hello, world!\n"</span><span class="p">;</span>
<span class="k">print</span> <span class="p">"</span><span class="s2">Hello, world!</span><span class="se">\n</span><span class="p">";</span>
EXPECTED_PERL
raw_prolog = <<'RAW_PROLOG'
#!/usr/bin/swipl
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment