From dd55d8f7e71620c1c8e85f765ac124d71acaed20 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 16 Jun 2019 10:46:27 +0000 Subject: Update Rouge to 3.4.1 (#31556). Patch by Marius BALTEANU and Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@18258 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- Gemfile | 2 +- test/helpers/application_helper_test.rb | 2 +- test/unit/lib/redmine/syntax_highlighting/rouge_test.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 8bfa48b2d..8b3c43cfb 100644 --- a/Gemfile +++ b/Gemfile @@ -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" diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index e5feebdd9..f46720120 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -1165,7 +1165,7 @@ document.write("Hello World!"); RAW expected = <<-EXPECTED -
/* Hello */document.write(\"Hello World!\");
+
/* Hello */document.write("Hello World!");
EXPECTED assert_equal expected.gsub(%r{[\r\n\t]}, ''), textilizable(raw).gsub(%r{[\r\n\t]}, '') diff --git a/test/unit/lib/redmine/syntax_highlighting/rouge_test.rb b/test/unit/lib/redmine/syntax_highlighting/rouge_test.rb index 5318cb85b..16387966c 100644 --- a/test/unit/lib/redmine/syntax_highlighting/rouge_test.rb +++ b/test/unit/lib/redmine/syntax_highlighting/rouge_test.rb @@ -39,7 +39,7 @@ print "Hello, world!\n"; RAW_PERL expected_perl = <<'EXPECTED_PERL' #!/usr/bin/perl -print "Hello, world!\n"; +print "Hello, world!\n"; EXPECTED_PERL raw_prolog = <<'RAW_PROLOG' #!/usr/bin/swipl -- cgit v1.2.3