fontawesome_subsetter 0.1.4 → 0.1.5
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fd9237f5e86d63481cb5cb18ab422008f36f5ae4f32f2116f24d1549e964b2a3
|
|
4
|
+
data.tar.gz: b55ca058bde22b4b7a454ae0fcb211dc2c6df33aa87d10de381ea09495c3608f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 54c84abeeceb8dfdc1337358d4ff3c03022a578760e04dbea6746c5ac239bc92ac3fbd62b5a8074803c345e526caef01985a8d354cc721600605a1d8bd6a5f1c
|
|
7
|
+
data.tar.gz: 64b61927a5dae3874a74a9cdb2dfe6918e925d605c55612ec6577a950e757989010f792d2055821ed974ec00b8ee61c606c9b4587a433e39d3656adced3f8a88
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# FontAwesome Subsetter
|
|
2
2
|
|
|
3
|
-
A Rails gem that tree-shakes FontAwesome — scans your views and helpers for `icon()` calls, subsets WOFF2 font files to include only used glyphs, and generates minimal CSS.
|
|
3
|
+
A Rails gem that tree-shakes FontAwesome 7 — scans your views and helpers for `icon()` calls, subsets WOFF2 font files to include only used glyphs, and generates minimal CSS.
|
|
4
4
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
|
@@ -47,8 +47,6 @@ vendor/
|
|
|
47
47
|
fa-thin-100.woff2
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
The gem's custom Sass importer automatically handles FontAwesome's `variables.scss` in memory — it strips the large populated `$icons` and `$brand-icons` maps and replaces them with empty `!default` maps at compile time. **No manual edits to your vendor FontAwesome files are needed.**
|
|
51
|
-
|
|
52
50
|
## Features
|
|
53
51
|
|
|
54
52
|
### 1. Icon Helper
|
|
@@ -67,7 +65,7 @@ Add to your `config/puma.rb`:
|
|
|
67
65
|
|
|
68
66
|
```ruby
|
|
69
67
|
if ENV.fetch("RAILS_ENV", "development") == "development"
|
|
70
|
-
plugin :
|
|
68
|
+
plugin :fontawesome_subsetter
|
|
71
69
|
end
|
|
72
70
|
```
|
|
73
71
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fontawesome_subsetter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- 16554289+optimuspwnius@users.noreply.github.com
|
|
@@ -95,7 +95,7 @@ files:
|
|
|
95
95
|
- lib/fontawesome_subsetter/icon_helper.rb
|
|
96
96
|
- lib/fontawesome_subsetter/subsetter.rb
|
|
97
97
|
- lib/fontawesome_subsetter/version.rb
|
|
98
|
-
- lib/puma/plugin/
|
|
98
|
+
- lib/puma/plugin/fontawesome_subsetter.rb
|
|
99
99
|
- lib/tasks/fontawesome_subsetter.rake
|
|
100
100
|
homepage: https://github.com/optimuspwnius/fontawesome-subsetter
|
|
101
101
|
licenses:
|