File: autoload-thin-gem.patch

package info (click to toggle)
redmine 6.0.6%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,100 kB
  • sloc: ruby: 116,319; javascript: 12,885; sh: 460; perl: 303; python: 166; makefile: 30
file content (21 lines) | stat: -rw-r--r-- 544 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Load thin gem if installed
 If redmine is run via thin, the thin gem has to be loaded via Gemfile.
Author: Jakob Haufe <sur5r@debian.org>
        Soren Stoutner <soren@debian.org>
Bug-Debian: https://bugs.debian.org/1031685
Forwarded: not-needed
Last-Update: 2025-03-26

--- a/Gemfile
+++ b/Gemfile
@@ -130,3 +130,10 @@ end
 Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
   eval_gemfile file
 end
+
+# Load thin gem if available
+begin
+  require 'thin'
+  gem 'thin'
+rescue LoadError
+end