Project

General

Profile

Actions

Feature #36594

closed

Relax rouge version dependency in Gemfile

Feature #36594: Relax rouge version dependency in Gemfile

Added by Holger Just almost 5 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Text formatting
Target version:
Resolution:
Fixed

Description

The rouge gem claims to follow Semantic Versioning 2.0.0. As such, most releases of the gem in the past bumped the minor version.

I think it is not necessary to bump every minor release in our Gemfile, thereby forcing users on older Redmine releases to stay on an older rouge version unnecessarily.

As such, I think we should relax the rouge dependency to something like

gem "rouge", "~> 3.28" 

As with this change, people might have different languages available (as different rouge versions support different languages). Accordingly, I propose we also dynamically generate the list of highlighted languages (currently in public/help/code_highlighting_languages.html) with a controller action.


Related issues 3 (0 open — 3 closed)

Related to Redmine - Feature #33859: Add a list of supported languages by the code highlighter to the helpClosedGo MAEDAActions
Related to Redmine - Patch #36325: Update Rouge to 3.28ClosedGo MAEDAActions
Related to Redmine - Feature #40681: Dynamic generation of supported code highlighting languages in help sectionClosedGo MAEDAActions

Updated by Holger Just almost 5 years ago Actions #1

  • Category set to Text formatting

Updated by Holger Just almost 5 years ago Actions #2

  • Related to Feature #33859: Add a list of supported languages by the code highlighter to the help added

Updated by Holger Just almost 5 years ago Actions #3

Updated by Go MAEDA over 2 years ago Actions #4

  • Related to Feature #40681: Dynamic generation of supported code highlighting languages in help section added

Updated by Go MAEDA over 2 years ago Actions #5

  • Target version set to 6.0.0

Holger Just wrote:

As with this change, people might have different languages available (as different rouge versions support different languages). Accordingly, I propose we also dynamically generate the list of highlighted languages (currently in public/help/code_highlighting_languages.html) with a controller action.

Dynamic generation of the list was implemented in #40681.

Setting the target version to 6.0.0.

Index: Gemfile
===================================================================
--- Gemfile    (revision 22840)
+++ Gemfile    (working copy)
@@ -3,7 +3,7 @@
 ruby '>= 3.0.0', '< 3.4.0'

 gem 'rails', '7.1.2'
-gem 'rouge', '~> 4.2.0'
+gem 'rouge', '~> 4.2'
 gem 'mini_mime', '~> 1.1.0'
 gem "actionpack-xml_parser" 
 gem 'roadie-rails', '~> 3.2.0'

Updated by Holger Just over 2 years ago Actions #6

Awesome, thank you very much!

Updated by Go MAEDA over 2 years ago Actions #7

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the change in r22841.

Actions

Also available in: PDF Atom