css_inline 0.10.2 → 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/ext/css_inline/Cargo.toml +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44cb7c00c0a02e3b6fb2de5787376440b144b20618ccbbde8136606506d10b09
|
4
|
+
data.tar.gz: 6f4cdb59e42507811a38670f1661dadaab4d37e03b60b48f39291650cd2c5609
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08e7af75ada555dab4482070f8171ad105d3934cc6d9848c4bc0cc888d87d56126c6aae05683a9d45ab6bfb4bebf6f86997ac1cc43aca9852e33cf445ae9be17'
|
7
|
+
data.tar.gz: 3f2e6440b98a07729c7bed47dc231235958075297b8e73f1c4a2b8077d24bce379c1862ccf146e516a598a4fe80f909e528baf480953dfc41d581fe943b4012b
|
data/README.md
CHANGED
@@ -132,15 +132,15 @@ inliner.inline("...")
|
|
132
132
|
## Performance
|
133
133
|
|
134
134
|
Leveraging efficient tools from Mozilla's Servo project, this library delivers superior performance.
|
135
|
-
It consistently outperforms `premailer`, offering speed increases often exceeding **
|
135
|
+
It consistently outperforms `premailer`, offering speed increases often exceeding **40 times**.
|
136
136
|
|
137
137
|
The table below provides a detailed comparison between `css_inline` and `premailer` when inlining CSS into an HTML document (like in the Usage section above):
|
138
138
|
|
139
|
-
| | `css_inline 0.10.
|
139
|
+
| | `css_inline 0.10.3` | `premailer 1.21.0 with Nokogiri 1.15.2` | Difference |
|
140
140
|
|-------------------|---------------------|------------------------------------------------|------------|
|
141
|
-
| Basic usage | 9.
|
142
|
-
| Realistic email 1 |
|
143
|
-
| Realistic email 2 |
|
141
|
+
| Basic usage | 9.16 µs | 406.53 µs | **44.32x** |
|
142
|
+
| Realistic email 1 | 190.90 µs | 10.10 ms | **52.72x** |
|
143
|
+
| Realistic email 2 | 135.86 µs | Error: Cannot parse 0 calc((100% - 500px) / 2) | - |
|
144
144
|
|
145
145
|
Please refer to the `test/bench.rb` file to review the benchmark code.
|
146
146
|
The results displayed above were measured using stable `rustc 1.70` on Ruby `3.2.2`.
|
data/ext/css_inline/Cargo.toml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: css_inline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Dygalo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
version: 3.3.26
|
125
125
|
requirements:
|
126
126
|
- Rust >= 1.61.0
|
127
|
-
rubygems_version: 3.4.
|
127
|
+
rubygems_version: 3.4.15
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: High-performance library for inlining CSS into HTML 'style' attributes
|