File: web-path-change.patch

package info (click to toggle)
ruby-sidekiq 4.2.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,064 kB
  • ctags: 754
  • sloc: ruby: 7,384; makefile: 26; sh: 4
file content (19 lines) | stat: -rw-r--r-- 775 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: use web directory from /usr/share
 web templates are installed in /usr/share/ruby-sidekiq
 this patch will pick up the templates from correct path
Author: Pirate Praveen <praveen@debian.org>
Last-Updated: 2014-08-27

Index: ruby-sidekiq/lib/sidekiq/web.rb
===================================================================
--- ruby-sidekiq.orig/lib/sidekiq/web.rb
+++ ruby-sidekiq/lib/sidekiq/web.rb
@@ -18,7 +18,7 @@ require 'rack/session/cookie'
 
 module Sidekiq
   class Web
-    ROOT = File.expand_path("#{File.dirname(__FILE__)}/../../web")
+    ROOT = File.expand_path("#{File.dirname(__FILE__)}/../../../../share/ruby-sidekiq/web")
     VIEWS = "#{ROOT}/views".freeze
     LOCALES = ["#{ROOT}/locales".freeze]
     LAYOUT = "#{VIEWS}/layout.erb".freeze