CHANGELOG.md in prawn-icon-3.0.0 vs CHANGELOG.md in prawn-icon-3.1.0

- old
+ new

@@ -1,4 +1,23 @@ +# 3.1.0 - September 1, 2022 + +* Update our CI matrix to include recent versions of Prawn and Ruby! Thanks @petergoldstein! (#55) +* Resolve a few code smells that were flagged by Rubocop. +* [Material Design Icons](https://materialdesignicons.com) are now supported! Currently version `7.0.96` is included. Thanks @maneex! [https://github.com/jessedoyle/prawn-icon/pull/59](Pull Request). +* Memoize calls to `Prawn::Icon::FontData#path` to improve performance. + +#### Material Design Icons + +All Material Design Icons use the font prefix of `mdi`. That means that you're able to reference an icon as follows: + +```ruby +require 'prawn/icon' + +Prawn::Document.generate('icons.pdf') do |pdf| + pdf.icon 'mdi-beer', size: 60 +end +``` + # 3.0.0 - November 10, 2020 * **breaking change** - Fix incorrect layout and line-wrapping logic for inline-formatted icons. Please see [Inline Format Changes](#inline-format-changes) for more details. * Add a `#formatted_icon_box` method to retain the previous inline icon behaviour. * Allow `#formatted_icon_box` to accept absolute positioning parameters (`x`, `y`, and `at`). Thanks @navinspm!