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: 5d4899f684cf0f8abb56aa022c5becbf72ff17dcb93c6120ae30825739ac515b
4
- data.tar.gz: 077a8cf27d8fdf860fe5e6f5ce43b06bf5ba5e87616f9912c823d72a169ade0d
3
+ metadata.gz: fd9237f5e86d63481cb5cb18ab422008f36f5ae4f32f2116f24d1549e964b2a3
4
+ data.tar.gz: b55ca058bde22b4b7a454ae0fcb211dc2c6df33aa87d10de381ea09495c3608f
5
5
  SHA512:
6
- metadata.gz: ca16888526892dcf518fc911d40a8a380f3085d391ae773b88ba8854ab390533a77a5225852a392de132d24805772c41f0490456962f2472a1cb854ef714ba34
7
- data.tar.gz: 817c69ec6b911debdd143c902294e18aeb019eb539aa8164de6beae19ff16eaa6419381d0d15d8f9907e064e8db9a9f6929f65f08769cd5c753e750c7eebde1d
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 :fontawesome
68
+ plugin :fontawesome_subsetter
71
69
  end
72
70
  ```
73
71
 
@@ -1,5 +1,5 @@
1
1
  module FontawesomeSubsetter
2
2
 
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
 
5
5
  end
@@ -1,6 +1,6 @@
1
1
  require "puma/plugin"
2
2
 
3
- class Fontawesome
3
+ class FontawesomeSubsetter
4
4
  end
5
5
 
6
6
  Puma::Plugin.create do
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
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/fontawesome.rb
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: