Prawn::DisableWordBreak

Gem Version Test

Prawn::DisableWordBreak is an extension that disables word-breaking by character such as space and hyphen to Prawn.

See feature test for details.

Installation

Add this line to your application's Gemfile:

gem 'prawn-disable_word_break'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install prawn-disable_word_break

Usage

require 'prawn/disable_word_break'

Supported Versions

Ruby

3.0, 3.1, 3.2

Prawn

2.3, 2.4

Development

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Testing

$ bundle exec rake test

To run the test, you need diff-pdf. You can run by installing it or using a Docker container for testing.

$ docker pull ghcr.io/hidakatsuya/ruby-with-diff-pdf:latest
$ docker run -v $PWD:/src:cached -it ghcr.io/hidakatsuya/ruby-with-diff-pdf bash

> src# bundle install
> src# bundle exec rake test

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/hidakatsuya/prawn-disable_word_break. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

(c) 2020 Katsuya HIDAKA. The gem is available as open source under the terms of the MIT License. See LICENSE.txt for further details.

Code of Conduct

Everyone interacting in the Prawn::DisableWordBreak project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.