Package: ruby-prawn / 1.0.0~rc1+dfsg1-3

Metadata

Package Version Patches format
ruby-prawn 1.0.0~rc1+dfsg1-3 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0100_remove_bundler_rubygems_stuff.patch | (download)

spec/spec_helper.rb | 8 4 + 4 - 0 !
1 file changed, 4 insertions(+), 4 deletions(-)

 remove rubygems and bundler stuff from specs
0102_simply_require_ttfunk.patch | (download)

lib/prawn/core.rb | 14 1 + 13 - 0 !
1 file changed, 1 insertion(+), 13 deletions(-)

 replace complicated statements by a simple require 'ttfunk'
 ttfunk is available as a Debian package. We do not need $LOAD_PATH
 manipulations and rescues to load this library.
0105_remove_rubygems_loadpath_stuff_manual.patch | (download)

manual/example_helper.rb | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 remove load_path manipulation from manual sources
0200_replace_BASEDIR_data_by_DATADIR.patch | (download)

lib/prawn/core.rb | 6 5 + 1 - 0 !
lib/prawn/core/text.rb | 4 2 + 2 - 0 !
lib/prawn/document.rb | 2 1 + 1 - 0 !
lib/prawn/encoding.rb | 2 1 + 1 - 0 !
lib/prawn/font/afm.rb | 2 1 + 1 - 0 !
lib/prawn/images.rb | 4 2 + 2 - 0 !
spec/cell_spec.rb | 4 2 + 2 - 0 !
spec/document_spec.rb | 4 2 + 2 - 0 !
spec/font_spec.rb | 20 10 + 10 - 0 !
spec/formatted_text_box_spec.rb | 10 5 + 5 - 0 !
spec/images_spec.rb | 10 5 + 5 - 0 !
spec/jpg_spec.rb | 2 1 + 1 - 0 !
spec/line_wrap_spec.rb | 12 6 + 6 - 0 !
spec/object_store_spec.rb | 18 9 + 9 - 0 !
spec/png_spec.rb | 34 17 + 17 - 0 !
spec/template_spec.rb | 32 16 + 16 - 0 !
spec/text_at_spec.rb | 6 3 + 3 - 0 !
spec/text_box_spec.rb | 6 3 + 3 - 0 !
spec/text_spacing_spec.rb | 2 1 + 1 - 0 !
spec/text_spec.rb | 10 5 + 5 - 0 !
20 files changed, 97 insertions(+), 93 deletions(-)

 define prawn::datadir as the name of the directory containing data
 Upstream hardcoded the relative path with respect to prawn/core.rb of the
 directory containing data.
 A new constant, Prawn::DATADIR is introduced to permit using another
 directory, and change its name just once.
 The code (mainly comments and specs) is patched to make use of this new
 constant instead of the hardcoded path
0205_replace_BASEDIR_data_by_DATADIR_manual.patch | (download)

manual/document_and_page_options/background.rb | 2 1 + 1 - 0 !
manual/example_helper.rb | 4 2 + 2 - 0 !
manual/images/absolute_position.rb | 2 1 + 1 - 0 !
manual/images/fit.rb | 2 1 + 1 - 0 !
manual/images/horizontal.rb | 4 2 + 2 - 0 !
manual/images/plain_image.rb | 2 1 + 1 - 0 !
manual/images/scale.rb | 6 3 + 3 - 0 !
manual/images/vertical.rb | 4 2 + 2 - 0 !
manual/images/width_and_height.rb | 6 3 + 3 - 0 !
manual/manual/cover.rb | 2 1 + 1 - 0 !
manual/table/image_cells.rb | 2 1 + 1 - 0 !
manual/templates/full_template.rb | 2 1 + 1 - 0 !
manual/templates/page_template.rb | 2 1 + 1 - 0 !
manual/text/fallback_fonts.rb | 4 2 + 2 - 0 !
manual/text/line_wrapping.rb | 2 1 + 1 - 0 !
manual/text/registering_families.rb | 4 2 + 2 - 0 !
manual/text/right_to_left_text.rb | 2 1 + 1 - 0 !
manual/text/single_usage.rb | 4 2 + 2 - 0 !
manual/text/utf8.rb | 2 1 + 1 - 0 !
19 files changed, 29 insertions(+), 29 deletions(-)

 define prawn::datadir as the name of the directory containing data (manual)
 Upstream hardcoded the relative path with respect to prawn/core.rb of the
 directory containing data.
 A new constant, Prawn::DATADIR is introduced to permit using another
 directory, and change its name just once.
 The code producing the manual is patched to make use of this new
 constant instead of the hardcoded path
0210_change_spec_data_to_datadir_pdfs.patch | (download)

spec/object_store_spec.rb | 6 3 + 3 - 0 !
spec/template_spec.rb | 10 5 + 5 - 0 !
2 files changed, 8 insertions(+), 8 deletions(-)

 reflect the fact that spec/data moved to data/spec
 The specs use some (one) pdf files stored in spec/data. In order to test the
 library installed in debian/ruby-prawn/, these files are moved to data/spec, so
 that they can be installed too (see debian/ruby-prawn.install).
 The code of the specs has to be modified to find correctly the files which moved away.
0300_fix_paths.patch | (download)

lib/prawn/font/afm.rb | 4 1 + 3 - 0 !
1 file changed, 1 insertion(+), 3 deletions(-)

 fix fonts path to use only prawn's fonts directory
0400_use_system_fonts.patch | (download)

spec/document_spec.rb | 2 1 + 1 - 0 !
spec/font_spec.rb | 22 14 + 8 - 0 !
spec/formatted_text_box_spec.rb | 10 5 + 5 - 0 !
spec/line_wrap_spec.rb | 12 6 + 6 - 0 !
spec/template_spec.rb | 8 6 + 2 - 0 !
spec/text_at_spec.rb | 2 1 + 1 - 0 !
spec/text_box_spec.rb | 4 2 + 2 - 0 !
spec/text_spacing_spec.rb | 2 1 + 1 - 0 !
spec/text_spec.rb | 8 5 + 3 - 0 !
9 files changed, 41 insertions(+), 29 deletions(-)

 use system fonts when possible
 Upstream ships embedded copies of several truetype fonts. Some of them are
 available in Debian. These copies have been removed from the Debian source
 package, and system fonts are used instead. 
0405_use_system_fonts_manual.patch | (download)

manual/example_helper.rb | 4 2 + 2 - 0 !
manual/text/fallback_fonts.rb | 49 26 + 23 - 0 !
manual/text/line_wrapping.rb | 2 1 + 1 - 0 !
manual/text/registering_families.rb | 71 37 + 34 - 0 !
manual/text/right_to_left_text.rb | 2 1 + 1 - 0 !
manual/text/single_usage.rb | 16 9 + 7 - 0 !
manual/text/utf8.rb | 2 1 + 1 - 0 !
7 files changed, 77 insertions(+), 69 deletions(-)

 use system fonts when possible
 Upstream ships embedded copies of several truetype fonts. Some are available in Debian.
 These copies have been removed from the Debian source package, and system
 fonts are used instead.
0500_disable_tests_using_removed_files.patch | (download)

spec/font_spec.rb | 30 20 + 10 - 0 !
spec/images_spec.rb | 12 8 + 4 - 0 !
spec/jpg_spec.rb | 2 1 + 1 - 0 !
spec/object_store_spec.rb | 3 2 + 1 - 0 !
spec/text_box_spec.rb | 4 2 + 2 - 0 !
5 files changed, 33 insertions(+), 18 deletions(-)

 disable some specs after removal of some files from the source package
 Some specs are using for the moment images with unclear license and/or
 non-free fonts. These are disabled because they cannot be run since these
 files have been removed from the Debian source package.
0600_add_require_date_table_cell.rb | (download)

lib/prawn/table/cell.rb | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

 add missing require 'date' statement
 The file lib/prawn/table/cell.rb uses the test .kind_of?(Date) but the class
 Date is not defined.
Bug: https://github.com/sandal/prawn/issues/298
1001_fix_encoding_in_font_spec.patch | (download)

spec/font_spec.rb | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 fix encoding of the result of a test of font_spec.rb
 encode_text method returns in that case a 8 bit ASCII string, not 7 bit.
1002_define_external_encoding_for_manual.patch | (download)

manual/manual/manual.rb | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

 set default external encoding with ruby 1.9 for the manual
 This is needed to successfully build the manual on systems with non unicode
 locale