[DRE-commits] [ruby-prawn] 05/09: refresh 0200_replace_BASEDIR_data_by_DATADIR.patch and 0400_use_system_fonts.patch

Cédric Boutillier boutil at moszumanska.debian.org
Sun Sep 28 22:04:18 UTC 2014


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

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

commit ed660552ed1b69d169df6e9f604812cc772abd3d
Author: Cédric Boutillier <boutil at debian.org>
Date:   Sun Sep 28 23:02:52 2014 +0200

    refresh 0200_replace_BASEDIR_data_by_DATADIR.patch and 0400_use_system_fonts.patch
---
 debian/patches/0200_replace_BASEDIR_data_by_DATADIR.patch |  4 ++--
 debian/patches/0400_use_system_fonts.patch                | 14 +++++++-------
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/debian/patches/0200_replace_BASEDIR_data_by_DATADIR.patch b/debian/patches/0200_replace_BASEDIR_data_by_DATADIR.patch
index bea50e5..7d6d267 100644
--- a/debian/patches/0200_replace_BASEDIR_data_by_DATADIR.patch
+++ b/debian/patches/0200_replace_BASEDIR_data_by_DATADIR.patch
@@ -1,6 +1,6 @@
 Description: redefine BASEDIR and DATADIR
 Author: Cédric Boutillier <boutil at debian.org>
-Last-Update: 2014-04-14
+Last-Update: 2014-09-28
 
 --- a/lib/prawn.rb
 +++ b/lib/prawn.rb
@@ -13,7 +13,7 @@ Last-Update: 2014-04-14
 +  # /usr/lib/ruby/vendor_ruby/prawn -> /usr/share/ruby-prawn/
 +  DATADIR = File.expand_path(File.join(dir, '..', '..', '..', 'share', 'ruby-prawn'))
  
-   VERSION = File.read("#{BASEDIR}/VERSION").strip
+   FLOAT_PRECISION = 1.0e-9
  
 --- a/spec/acceptance/png.rb
 +++ b/spec/acceptance/png.rb
diff --git a/debian/patches/0400_use_system_fonts.patch b/debian/patches/0400_use_system_fonts.patch
index 1465f99..6735117 100644
--- a/debian/patches/0400_use_system_fonts.patch
+++ b/debian/patches/0400_use_system_fonts.patch
@@ -3,7 +3,7 @@ Description: use system fonts when possible
  available in Debian. These copies have been removed from the Debian source
  package, and system fonts are used instead. 
 Author: Cédric Boutillier <boutil at debian.org>
-Last-Update: 2014-04-14
+Last-Update: 2014-09-29
 
 --- a/spec/line_wrap_spec.rb
 +++ b/spec/line_wrap_spec.rb
@@ -34,16 +34,16 @@ Last-Update: 2014-04-14
      @line_wrap = Prawn::Text::Formatted::LineWrap.new
  
      string = "hello#{Prawn::Text::SHY}world"
-@@ -137,7 +137,7 @@
+@@ -139,7 +139,7 @@
                                    :document => @pdf)
-     string.should == "helloworld"
+     string.should == "helloworld hiearth"
  
 -    @pdf.font("#{Prawn::DATADIR}/fonts/DejaVuSans.ttf")
 +    @pdf.font("/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf")
      @line_wrap = Prawn::Text::Formatted::LineWrap.new
  
-     string = "hello#{Prawn::Text::SHY}world"
-@@ -166,7 +166,7 @@
+     string1 = "hello#{Prawn::Text::SHY}world "
+@@ -169,7 +169,7 @@
                                    :document => @pdf)
      string.should == "hello"
  
@@ -52,7 +52,7 @@ Last-Update: 2014-04-14
      @line_wrap = Prawn::Text::Formatted::LineWrap.new
      enough_width_for_hello_world = 68
  
-@@ -205,7 +205,7 @@
+@@ -208,7 +208,7 @@
      expected.force_encoding(Encoding::UTF_8)
      string.should == expected
  
@@ -254,7 +254,7 @@ Last-Update: 2014-04-14
      text_box.render
 --- a/spec/document_spec.rb
 +++ b/spec/document_spec.rb
-@@ -261,7 +261,7 @@
+@@ -256,7 +256,7 @@
      doc_uncompressed = Prawn::Document.new
      doc_compressed   = Prawn::Document.new(:compress => true)
      [doc_compressed, doc_uncompressed].each do |pdf|

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



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