prawn-icon 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c9cf8d2f79db2e2732626f6b46ebb9f0a019243b29e68379ccc95e63a604dbd
4
- data.tar.gz: a3f67c49dd586f4c45ec9ebcf846514d38f08b6aadd031ca60028fa464a09633
3
+ metadata.gz: 9e7ca84b49c7dec787359183a4463564c18a8c19d3f63102b993158cb6255c3c
4
+ data.tar.gz: a8c108c9a784f9a4099c3a45c4c28da31f52c18c750ea345202f7d45f3b77edc
5
5
  SHA512:
6
- metadata.gz: 1bf95fa8ae5852d32880167fa6d0fcbc24498b43d0a3db8b5ea4eba6358f403fa4c08ceb68e9a7581a9e637e73a9b6d8774446f09d72c517f4f1098a5cd56230
7
- data.tar.gz: ce1dce62f8eabb83c543a8f596848d0417cc2520f706bc6cb2e420850410f7889020d2ed33e231f82181988ae9532ec3d9c9ffa1f2fb12018479e6f94b3ffeb4
6
+ metadata.gz: 6c942f64df65a7323b09878afb2edf3c2f1e925a6bafa2ba64b9b90389ecd87421c777f583d71fe561691d5085a452f594c2f2c5fa816fe700ffe161ca5e0ef9
7
+ data.tar.gz: a1280d20c8962daaf8d8a110d784b2ae2cc1bb8c763e1aaae76593b274c9af0084debb3967740bf4a309ef7634f2d1d1a4d8421ab125c371e412b340d48feee1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ # 3.1.0 - September 1, 2022
2
+
3
+ * Update our CI matrix to include recent versions of Prawn and Ruby! Thanks @petergoldstein! (#55)
4
+ * Resolve a few code smells that were flagged by Rubocop.
5
+ * [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).
6
+ * Memoize calls to `Prawn::Icon::FontData#path` to improve performance.
7
+
8
+ #### Material Design Icons
9
+
10
+ All Material Design Icons use the font prefix of `mdi`. That means that you're able to reference an icon as follows:
11
+
12
+ ```ruby
13
+ require 'prawn/icon'
14
+
15
+ Prawn::Document.generate('icons.pdf') do |pdf|
16
+ pdf.icon 'mdi-beer', size: 60
17
+ end
18
+ ```
19
+
1
20
  # 3.0.0 - November 10, 2020
2
21
 
3
22
  * **breaking change** - Fix incorrect layout and line-wrapping logic for inline-formatted icons. Please see [Inline Format Changes](#inline-format-changes) for more details.
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  gemspec
data/README.md CHANGED
@@ -9,6 +9,7 @@ Prawn::Icon provides a simple mechanism for rendering icons and icon fonts from
9
9
  The following icon fonts ship with Prawn::Icon:
10
10
 
11
11
  * FontAwesome (http://fontawesome.io/icons/)
12
+ * Material Design Icons (https://materialdesignicons.com/)
12
13
  * Foundation Icons (http://zurb.com/playground/foundation-icon-fonts-3)
13
14
  * PaymentFont (https://paymentfont.com)
14
15
 
@@ -87,6 +88,7 @@ Currently supported prefixes include:
87
88
  * `fab` - [FontAwesome Brands](https://fontawesome.com/icons?d=gallery&s=brands&m=free) (eg. `fab-amazon`).
88
89
  * `far` - [FontAwesome Regular](https://fontawesome.com/icons?d=gallery&s=regular&m=free) (eg. `far-address-book`).
89
90
  * `fas` - [FontAwesome Solid](https://fontawesome.com/icons?d=gallery&s=solid&m=free) (eg. `fas-location-arrow`).
91
+ * `mdi` - [Material Design Icons](https://materialdesignicons.com/) (eg. `mdi-beer`),
90
92
  * `fi` - [Foundation Icons](https://zurb.com/playground/foundation-icon-fonts-3) (eg. `fi-compass`).
91
93
  * `pf` - [PaymentFont](https://paymentfont.com/#icons) (eg. `pf-cash`).
92
94
 
@@ -0,0 +1,20 @@
1
+ Pictogrammers Free License
2
+ --------------------------
3
+
4
+ This icon collection is released as free, open source, and GPL friendly by
5
+ the [Pictogrammers](http://pictogrammers.com/) icon group. You may use it
6
+ for commercial projects, open source projects, or anything really.
7
+
8
+ # Icons: Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0)
9
+ Some of the icons are redistributed under the Apache 2.0 license. All other
10
+ icons are either redistributed under their respective licenses or are
11
+ distributed under the Apache 2.0 license.
12
+
13
+ # Fonts: Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0)
14
+ All web and desktop fonts are distributed under the Apache 2.0 license. Web
15
+ and desktop fonts contain some icons that are redistributed under the Apache
16
+ 2.0 license. All other icons are either redistributed under their respective
17
+ licenses or are distributed under the Apache 2.0 license.
18
+
19
+ # Code: MIT (https://opensource.org/licenses/MIT)
20
+ The MIT license applies to all non-font and non-icon files.