Git Product home page Git Product logo

Comments (6)

practicingruby avatar practicingruby commented on July 22, 2024

Remove Prawn::Document#text_options feature, as it has made me a very sad panda many times. (closed by 9ce5b87)

from prawn.

rnhurt avatar rnhurt commented on July 22, 2024

OK, I didn't see this coming. Is there a replacement for this functionality? Also the documentation at http://prawn.majesticseacreature.com/docs/prawn-core/classes/Prawn/Document/Text.html still lists this as a valid public method.

Later...
Richard

from prawn.

practicingruby avatar practicingruby commented on July 22, 2024

As the giant warning message upon installing Prawn 0.5.0.1 states, it's a pre-release. Therefore the documentation is still based on the official stable release of Prawn (0.4)

There will be no general replacement, though I will add API calls for most of what people will need:

Things like: Document#wrap_mode= and Document#spacing=

But those will only spring into existence when I properly code up Prawn's low level functions to account for them. Right now they don't, and that's why text_options is dangerous.

from prawn.

practicingruby avatar practicingruby commented on July 22, 2024

Incase you don't use the gems:

" Welcome to Prawn, the best pure-Ruby PDF solution ever!
This is version 0.5 RC1

Please note that you have downloaded a pre-release candidate gem,
which has some bugs, ugly spots, other bad things in it. This gem is also
not fully backwards compatible, and may break existing code.

If you wish to revert until a stable release is ready, uninstall prawn 0.5.0,
prawn-core 0.5.0, prawn-layout 0.2.0 and prawn-format 0.2.0

For details on what has changed, see:
http://prawn.majesticseacreature.com/notes/0.5

If you have questions, contact us at:
http://groups.google.com/group/prawn-ruby

To submit a patch or report a bug:
http://github.com/sandal/prawn

Prawn is meant for experienced Ruby hackers, so if you are new to Ruby, you
might want to wait until you've had some practice with the language before
expecting Prawn to work for you. Things may change after 1.0, but for now
if you're not ready to read source code and patch bugs or missing features
yourself (with our help), Prawn might not be the right fit.

But if you know what you're getting yourself into, enjoy!
"

from prawn.

rnhurt avatar rnhurt commented on July 22, 2024

Yup, I don't use the Gems so I completely missed this message. Thanks for bringing me up to speed. :)

from prawn.

practicingruby avatar practicingruby commented on July 22, 2024

Yeah, sorry... I had merged in to stable branch early because I anticipated 0.5.1 to come much earlier. Generally, if you track stable moving forward you won't be burned by pre-releases.

For now, lock to a 0.4 tag until you hear about an official 0.5.1 release if the turbulence is causing problems.

FWIW, with regards to text_options() you should have a suitable replacement for all the functionality it offers by Prawn 0.6, no guarantees about 0.5 though.

from prawn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.