[DRE-commits] [SCM] ruby-pdf-reader.git branch, master, updated. upstream/0.10.0-15-g3168024

Cédric Boutillier cedric.boutillier at gmail.com
Wed Sep 7 08:55:52 UTC 2011


The following commit has been merged in the master branch:
commit 6cb66aaa6ad04b024b1186693082d84f7dda211e
Author: Cédric Boutillier <cedric.boutillier at gmail.com>
Date:   Tue Sep 6 23:11:07 2011 +0200

    disable rubygems and $LOAD_PATH override in bin/* utilities

diff --git a/debian/patches/0001-bin_rubygems_load_path.patch b/debian/patches/0001-bin_rubygems_load_path.patch
new file mode 100644
index 0000000..8e58376
--- /dev/null
+++ b/debian/patches/0001-bin_rubygems_load_path.patch
@@ -0,0 +1,48 @@
+Description: Deactivate rubygems and $LOAD_PATH override in bin/
+Author: Cédric Boutillier <cedric.boutillier at gmail.com>
+Last-Update: 2011-09-06
+--- a/bin/pdf_list_callbacks
++++ b/bin/pdf_list_callbacks
+@@ -1,9 +1,5 @@
+ #!/usr/bin/env ruby
+ 
+-require 'rubygems'
+-
+-$LOAD_PATH.unshift(File.dirname(__FILE__) + "/../lib")
+-
+ require 'pdf/reader'
+ 
+ receiver = PDF::Reader::PrintReceiver.new
+--- a/bin/pdf_object
++++ b/bin/pdf_object
+@@ -1,9 +1,5 @@
+ #!/usr/bin/env ruby
+ 
+-require 'rubygems'
+-
+-$LOAD_PATH.unshift(File.dirname(__FILE__) + "/../lib")
+-
+ USAGE = "USAGE: " + File.basename(__FILE__) + " <file> <object id> [generation]"
+ 
+ require 'pdf/reader'
+--- a/bin/pdf_text
++++ b/bin/pdf_text
+@@ -1,8 +1,5 @@
+ #!/usr/bin/env ruby
+ 
+-require 'rubygems'
+-$LOAD_PATH.unshift(File.dirname(__FILE__) + "/../lib")
+-
+ require 'pdf/reader'
+ 
+ class PageTextReceiver
+--- a/bin/pdf2txt
++++ b/bin/pdf2txt
+@@ -23,7 +23,6 @@
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ #
+ ################################################################################
+-$LOAD_PATH.unshift(File.dirname(__FILE__) + "/../lib")
+ 
+ require 'pdf/reader'
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..49dc9f1
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-bin_rubygems_load_path.patch

-- 
ruby-pdf-reader.git



More information about the Pkg-ruby-extras-commits mailing list