File: 1001-avoid-rubygems.patch

package info (click to toggle)
ruby-sass 3.5.6-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,668 kB
  • sloc: ruby: 32,237; sh: 22; makefile: 15
file content (24 lines) | stat: -rw-r--r-- 749 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Avoid rubygems
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2014-08-21
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/lib/sass/exec/sass_scss.rb
+++ b/lib/sass/exec/sass_scss.rb
@@ -237,13 +237,9 @@
       begin
         require 'compass'
       rescue LoadError
-        require 'rubygems'
-        begin
-          require 'compass'
-        rescue LoadError
-          puts "ERROR: Cannot load compass."
-          exit 1
-        end
+        puts "Unable to load Compass. Please install it e.g.  with the following command:"
+        puts "  aptitude install ruby-compass"
+        exit 1
       end
       Compass.add_project_configuration
       Compass.configuration.project_path ||= Dir.pwd