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

Cédric Boutillier cedric.boutillier at gmail.com
Wed Sep 7 09:28:54 UTC 2011


The following commit has been merged in the master branch:
commit 64a1a49a9addcb82c973905b4da717454ef142af
Author: Cédric Boutillier <cedric.boutillier at gmail.com>
Date:   Wed Sep 7 11:26:11 2011 +0200

    suggest packages and modify examples/rspec.rb to make it work

diff --git a/debian/control b/debian/control
index 3fdd2d1..16d4861 100644
--- a/debian/control
+++ b/debian/control
@@ -14,7 +14,8 @@ XS-Ruby-Versions: all
 Package: ruby-pdf-reader
 Architecture: all
 XB-Ruby-Versions: ${ruby:Versions}
-Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-ascii85 (>= 1.0.1)
+Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-ascii85 (>= 1.0.0)
+Suggests: ruby-rspec, libpdf-writer-ruby
 Description: Ruby library for accessing the content of PDF files
  The PDF::Reader library implements a PDF parser conforming as much as possible
  to the PDF specification from Adobe. It provides programmatic access to the
diff --git a/debian/patches/0005_fix_rspec_example.patch b/debian/patches/0005_fix_rspec_example.patch
new file mode 100644
index 0000000..c438976
--- /dev/null
+++ b/debian/patches/0005_fix_rspec_example.patch
@@ -0,0 +1,28 @@
+Description: make example/rspec.rb work
+ This example was written for an old version of rspec
+ This is already fixed in upstream repository for later versions
+Author: Cédric Boutillier <cedric.boutillier at gmail.com>
+Last-Update: 2011-09-07
+
+--- a/examples/rspec.rb
++++ b/examples/rspec.rb
+@@ -5,7 +5,7 @@
+ 
+ require 'pdf/reader'
+ require 'pdf/writer'
+-require 'spec'
++require 'rspec'
+ 
+ class PageTextReceiver
+   attr_accessor :content
+@@ -34,8 +34,8 @@
+   end
+ end
+ 
+-context "My generated PDF" do
+-  specify "should have the correct text on 2 pages" do
++describe "My generated PDF" do
++  it "should have the correct text on 2 pages" do
+ 
+     # generate our PDF
+     pdf = PDF::Writer.new
diff --git a/debian/patches/series b/debian/patches/series
index 107dba2..7bcf1a0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 0002-examples_rubygems.patch
 0003-examples_fix_shebang.patch
 0004-spec_fix_requires.patch
+0005_fix_rspec_example.patch

-- 
ruby-pdf-reader.git



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