Package: ruby-prawn / 2.1.0+dfsg-1

Metadata

Package Version Patches format
ruby-prawn 2.1.0+dfsg-1 3.0 (quilt)

Patch series

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

spec/spec_helper.rb | 12 1 + 11 - 0 !
1 file changed, 1 insertion(+), 11 deletions(-)

 remove rubygems and bundler stuff from specs
0200_replace_BASEDIR_data_by_DATADIR.patch | (download)

lib/prawn.rb | 4 3 + 1 - 0 !
spec/acceptance/png_spec.rb | 2 1 + 1 - 0 !
2 files changed, 4 insertions(+), 2 deletions(-)

 redefine basedir and datadir
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 11 + 11 - 0 !
spec/formatted_text_box_spec.rb | 12 6 + 6 - 0 !
spec/line_wrap_spec.rb | 12 6 + 6 - 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 | 10 5 + 5 - 0 !
8 files changed, 33 insertions(+), 33 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.
 Skip a test expecting to not find € in gkai00mp.ttf
0405_use_system_fonts_manual.patch | (download)

manual/text/fallback_fonts.rb | 2 1 + 1 - 0 !
manual/text/line_wrapping.rb | 2 1 + 1 - 0 !
manual/text/registering_families.rb | 2 1 + 1 - 0 !
manual/text/right_to_left_text.rb | 2 1 + 1 - 0 !
manual/text/single_usage.rb | 2 1 + 1 - 0 !
manual/text/utf8.rb | 2 1 + 1 - 0 !
6 files changed, 6 insertions(+), 6 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/images_spec.rb | 6 4 + 2 - 0 !
spec/png_spec.rb | 34 17 + 17 - 0 !
2 files changed, 21 insertions(+), 19 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_replace_require_relative_manual.patch | (download)

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

 replace require_relative with a require statement with an absolute path
 The installed library is not located the same way as in the source package,
 relatively to the manual files.
0700_use_deterministic_keys_for_gradients.patch | (download)

lib/prawn/graphics/patterns.rb | 13 11 + 2 - 0 !
1 file changed, 11 insertions(+), 2 deletions(-)

 use deterministic values for gradients
 Previously, Prawn used #hash for gradients. Unfortunately, this uses
 #object_id internally and prevent Prawn to create PDF using gradients
 in a reproducible manner.
 .
 We now instead use an internal Hash with an incremental index starting
 at 1.
0800_enable_manual_to_be_built_reproducibly.patch | (download)

manual/cover.rb | 5 4 + 1 - 0 !
manual/document_and_page_options/metadata.rb | 3 2 + 1 - 0 !
2 files changed, 6 insertions(+), 2 deletions(-)

 enable manual to be built reproducibly
 In order to make the manual build reproducibly, we need a way to stop
 writing the current build time in it.
 .
 The following patch will allow this in two ways: if BUILD_DATE is set
 in the environment, the date will be taken from there; otherwise, if
 the Git index is available, the date of the last commit will be used.