[DRE-commits] [ruby-ttfunk] 03/05: Refresh 0010-fix_example_metrics.patch

Cédric Boutillier boutil at moszumanska.debian.org
Wed Sep 24 14:58:42 UTC 2014


This is an automated email from the git hooks/post-receive script.

boutil pushed a commit to branch master
in repository ruby-ttfunk.

commit 73b3fa2f13267b7fb9e0003364f3776369160c1a
Author: Cédric Boutillier <boutil at debian.org>
Date:   Wed Sep 24 11:02:11 2014 +0200

    Refresh 0010-fix_example_metrics.patch
---
 debian/patches/0010-fix_example_metrics.patch | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/debian/patches/0010-fix_example_metrics.patch b/debian/patches/0010-fix_example_metrics.patch
index c363322..112cff6 100644
--- a/debian/patches/0010-fix_example_metrics.patch
+++ b/debian/patches/0010-fix_example_metrics.patch
@@ -1,20 +1,21 @@
 Description: fix metrics.rb shipped as an example
  * add a shebang
- * remove $LOAD_PATH manipulation
+ * use the system library by loading it with require instead of require_relative
  * use system copy of dejavu font
-Author: Cédric Boutillier <cedric.boutillier at gmail.com>
-Last-Update: 2011-09-07
+Author: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2014-09-24
 
 --- a/examples/metrics.rb
 +++ b/examples/metrics.rb
-@@ -1,5 +1,5 @@
+@@ -1,5 +1,6 @@
 +#!/usr/bin/ruby
  # encoding: utf-8
--$LOAD_PATH << "#{File.dirname(__FILE__)}/../lib"
- require "ttfunk"
+-require_relative "../lib/ttfunk"
++require "ttfunk"
  
  def character_lookup(file, character)
-@@ -21,7 +21,7 @@
+   puts "character     : #{character}"
+@@ -20,7 +21,7 @@
    end
  end
  

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-ttfunk.git



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