#25 new
Sam

Measurement Extensions not being required?

Reported by Sam | October 22nd, 2009 @ 12:55 AM

This Ticket was posted without first using my head, and can be removed/resolved. Refer to the comment.

Maybe I'm missing something obvious here, and sorry if that's the case, but I've been having trouble getting the measurement extensions to work. I see that the 'Numeric' class is opened up and given the new unit methods (mm, cm, dm, etc...), but I kept getting no method errors when trying to use them, until I took a look at core.rb in prawn-core, and realized that measurements.rb is included, but measurement_extensions.rb is not. I noticed that in fact measurement_extensions.rb require's prawn/measurements. Changing the require on line 86 of core.rb from 'require "prawn/measurements"' to 'require "prawn/measurement_extensions"' seems to have resolved the issue for me. This is all with prawn-core-0.5.1

Comments and changes to this ticket

  • Sam

    Sam October 22nd, 2009 @ 01:12 AM

    Ohhhh, bogus. I just noticed in the README that the measurement extensions example explicitly require's prawn/measurement_extensions. Embarrassing. Sorry bout that....

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Pages