debian/0000755000000000000000000000000012162401546007167 5ustar debian/rules0000755000000000000000000000070112162401546010245 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 # # Uncomment to ignore all test failures (but the tests will run anyway) #export DH_RUBY_IGNORE_TESTS=all # # Uncomment to ignore some test failures (but the tests will run anyway). # Valid values: #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec %: dh $@ --buildsystem=ruby --with ruby debian/watch0000644000000000000000000000013312146154344010220 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/afm .*/afm-(.*).tar.gz debian/source/0000755000000000000000000000000012146154344010472 5ustar debian/source/format0000644000000000000000000000001412146154344011700 0ustar 3.0 (quilt) debian/ruby-test-files.yaml0000644000000000000000000000005012146154344013107 0ustar --- - test/helper.rb - test/test_afm.rb debian/copyright0000644000000000000000000000747612162062711011135 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: afm Source: https://github.com/halfbyte/afm Files: * Copyright: 2009 Jan Krutisch License: Expat Files: test/fixtures/Vera.afm Copyright: 2003 Bitstream, Inc License: Bitstream-Vera Comment: derived work from Bitstream Vera TTF font obtained by running /usr/bin/ttf2afm (from ttf2ufm package) on /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf (from ttf-bitstream-vera) Files: debian/* Copyright: 2013 Cédric Boutillier License: Expat License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. License: Bitstream-Vera Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: . The above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces. . The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words "Bitstream" or the word "Vera". . This License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "Bitstream Vera" names. . The Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. . THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. . Except as contained in this notice, the names of Gnome, the Gnome Foundation, and Bitstream Inc., shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from the Gnome Foundation or Bitstream Inc., respectively. For further information, contact: . debian/control0000644000000000000000000000155212162327360010576 0ustar Source: ruby-afm Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Cédric Boutillier Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.1~), ruby-shoulda Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-afm.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-afm.git;a=summary Homepage: https://github.com/halfbyte/afm XS-Ruby-Versions: all Package: ruby-afm Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Description: Ruby library to read Adobe Font Metrics files This simple library can read Adobe Font Metrics (afm) files and use the data conveniently. Currently, it can parse the afm file and save it in a few attributes. debian/patches/0000755000000000000000000000000012162326100010606 5ustar debian/patches/series0000644000000000000000000000003112146162314012024 0ustar ruby_compatibility.patch debian/patches/ruby_compatibility.patch0000644000000000000000000000161012162326100015537 0ustar Description: fix #metrics_for to work across ruby 1.8, 1.9 and 2.0 * on 1.8 String#[] returns the character code at that position as an int * on 1.9+ String#[] returns a single character string Author: James Healy Origin: https://github.com/halfbyte/afm/commit/0718e0f1d0e46f5b6c0325dfd6f5f3abf7533110 Reviewed-by: Cédric Boutillier Last-Update: 2013-04-01 --- lib/afm.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/afm.rb b/lib/afm.rb index 62af0b3..dfbe415 100644 --- a/lib/afm.rb +++ b/lib/afm.rb @@ -95,9 +95,9 @@ def metrics_for(char) glyph = if (char.kind_of?(Integer)) ISO_LATIN1_ENCODING[char] else - ISO_LATIN1_ENCODING[char[0]] + ISO_LATIN1_ENCODING[char.unpack("C*").first] end @char_metrics[glyph] end end -end \ No newline at end of file +end -- 1.8.1.6 debian/compat0000644000000000000000000000000212146154344010370 0ustar 7 debian/changelog0000644000000000000000000000023512162401535011037 0ustar ruby-afm (0.2.0-1) unstable; urgency=low * Initial release (Closes: #712962) -- Cédric Boutillier Tue, 25 Jun 2013 22:53:46 +0200