File: fix-ruby2gv.patch

package info (click to toggle)
ruby-graphviz 1.0.8-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,124 kB
  • ctags: 695
  • sloc: ruby: 7,656; xml: 26; makefile: 17
file content (20 lines) | stat: -rw-r--r-- 596 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Cédric Boutillier https://github.com/boutil
Subject: Fix for ruby2gv failure

line 119 of bin/ruby2gv, replace each by each_line.

Origin: upstream, https://github.com/glejeune/Ruby-Graphviz/issues/56#issuecomment-9819218
Bug: https://github.com/glejeune/Ruby-Graphviz/issues/56
Bug-Debian: http://bugs.debian.org/676393

--- a/bin/ruby2gv
+++ b/bin/ruby2gv
@@ -116,7 +116,7 @@
     xData = fp.read()
     fp.close
 
-    xData.each do |xLine|
+    xData.each_line do |xLine|
       if lxLineMatch = REQUIRE.match( xLine )
         xRequiredLib = lxLineMatch[2].gsub( /\.(rb|so)$/, "" )