css_inline 0.23.0 → 0.24.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 +4 -4
- data/README.md +6 -7
- data/ext/css_inline/Cargo.lock +16 -15
- data/ext/css_inline/Cargo.toml +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cc4f344b4151ed8cbd7ec8447e9055a23295d1316ae370c510a737332889a23c
|
|
4
|
+
data.tar.gz: 15e72afb36a6dd6274868f614bff7b1decc89ff804733d2c92db729562bd347a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c668ccf3613a20299fc6d3a024d733f3ece952a1e683e16bf84914ae52fb1e4abb45d16c155d014e5d0376f862a1bcb647284460ff3fc75aca22f9f75789c18d
|
|
7
|
+
data.tar.gz: 95d7ddb5e058a0fc4032fd6cdefbd254ac9f9c20d393a36859661e88cf1b1bb2ecf41b119b86fbec7cf53ff40593564869b2db56fff04f65ffe788274a2e12ca
|
data/README.md
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
[<img alt="build status" src="https://img.shields.io/github/actions/workflow/status/Stranger6667/css-inline/build.yml?style=flat-square&labelColor=555555&logo=github" height="20">](https://github.com/Stranger6667/css-inline/actions/workflows/build.yml)
|
|
4
4
|
[<img alt="ruby gems" src="https://img.shields.io/gem/v/css_inline?logo=ruby&style=flat-square" height="20">](https://rubygems.org/gems/css_inline)
|
|
5
5
|
[<img alt="codecov.io" src="https://img.shields.io/codecov/c/gh/Stranger6667/css-inline?logo=codecov&style=flat-square&token=tOzvV4kDY0" height="20">](https://app.codecov.io/github/Stranger6667/css-inline)
|
|
6
|
-
[<img alt="gitter" src="https://img.shields.io/gitter/room/Stranger6667/css-inline?style=flat-square" height="20">](https://gitter.im/Stranger6667/css-inline)
|
|
7
6
|
|
|
8
7
|
`css_inline` moves CSS from `<style>` and `<link>` tags into HTML `style` attributes.
|
|
9
8
|
Use it to prepare HTML emails or to embed HTML into third-party web pages.
|
|
@@ -271,14 +270,14 @@ end
|
|
|
271
270
|
|
|
272
271
|
## Performance
|
|
273
272
|
|
|
274
|
-
`css_inline` runs
|
|
273
|
+
`css_inline` runs 9.6x to 583x faster than `roadie` and 64x to 191x faster than `premailer` on these documents:
|
|
275
274
|
|
|
276
|
-
| | Size | `css_inline 0.
|
|
275
|
+
| | Size | `css_inline 0.23.1` | `roadie 5.2.1` | `premailer 1.27.0` |
|
|
277
276
|
|-------------------|---------|---------------------|-------------------------|-------------------------|
|
|
278
|
-
| Basic usage | 230 B | 5.
|
|
279
|
-
| Realistic email 1 | 8.58 KB |
|
|
280
|
-
| Realistic email 2 | 4.30 KB |
|
|
281
|
-
| GitHub Page | 1.81 MB |
|
|
277
|
+
| Basic usage | 230 B | 5.21 µs | 169.05 µs (**32.44x**) | 333.58 µs (**64.01x**) |
|
|
278
|
+
| Realistic email 1 | 8.58 KB | 74.13 µs | 711.24 µs (**9.59x**) | 7.00 ms (**94.44x**) |
|
|
279
|
+
| Realistic email 2 | 4.30 KB | 42.57 µs | 1.90 ms (**44.70x**) | ERROR |
|
|
280
|
+
| GitHub Page | 1.81 MB | 12.01 ms | 7.00 s (**582.78x**) | 2.30 s (**191.36x**) |
|
|
282
281
|
|
|
283
282
|
`premailer` fails on "Realistic email 2" with `ArgumentError: Cannot parse 0 calc((100% - 500px) / 2)`.
|
|
284
283
|
|
data/ext/css_inline/Cargo.lock
CHANGED
|
@@ -160,9 +160,9 @@ checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
|
|
|
160
160
|
|
|
161
161
|
[[package]]
|
|
162
162
|
name = "css-inline"
|
|
163
|
-
version = "0.
|
|
163
|
+
version = "0.24.0"
|
|
164
164
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
165
|
-
checksum = "
|
|
165
|
+
checksum = "03ae4075c30a3fe73063e2d3130b4d491b9d467d0afc031d40a1374fa4e3b39f"
|
|
166
166
|
dependencies = [
|
|
167
167
|
"cssparser",
|
|
168
168
|
"hashbrown",
|
|
@@ -181,7 +181,7 @@ dependencies = [
|
|
|
181
181
|
|
|
182
182
|
[[package]]
|
|
183
183
|
name = "css-inline-ruby"
|
|
184
|
-
version = "0.
|
|
184
|
+
version = "0.24.0"
|
|
185
185
|
dependencies = [
|
|
186
186
|
"css-inline",
|
|
187
187
|
"magnus",
|
|
@@ -266,9 +266,9 @@ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
|
|
|
266
266
|
|
|
267
267
|
[[package]]
|
|
268
268
|
name = "equivalent"
|
|
269
|
-
version = "1.0.
|
|
269
|
+
version = "1.0.3"
|
|
270
270
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
271
|
-
checksum = "
|
|
271
|
+
checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826"
|
|
272
272
|
|
|
273
273
|
[[package]]
|
|
274
274
|
name = "fastrand"
|
|
@@ -722,18 +722,18 @@ checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
|
|
|
722
722
|
|
|
723
723
|
[[package]]
|
|
724
724
|
name = "lru"
|
|
725
|
-
version = "0.
|
|
725
|
+
version = "0.19.0"
|
|
726
726
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
727
|
-
checksum = "
|
|
727
|
+
checksum = "4a9f71e3591c7ec44d3e563e87bf14ddc2bada8519dca046e5b0e560cd004e2d"
|
|
728
728
|
dependencies = [
|
|
729
729
|
"hashbrown",
|
|
730
730
|
]
|
|
731
731
|
|
|
732
732
|
[[package]]
|
|
733
733
|
name = "magnus"
|
|
734
|
-
version = "0.9.
|
|
734
|
+
version = "0.9.3"
|
|
735
735
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
736
|
-
checksum = "
|
|
736
|
+
checksum = "40ef424404d166cbb71c8b8d19c9c589c748c4547c1afa1928c5504299f6c713"
|
|
737
737
|
dependencies = [
|
|
738
738
|
"magnus-macros",
|
|
739
739
|
"rb-sys",
|
|
@@ -1090,9 +1090,9 @@ dependencies = [
|
|
|
1090
1090
|
|
|
1091
1091
|
[[package]]
|
|
1092
1092
|
name = "rustls"
|
|
1093
|
-
version = "0.23.
|
|
1093
|
+
version = "0.23.46"
|
|
1094
1094
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1095
|
-
checksum = "
|
|
1095
|
+
checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf"
|
|
1096
1096
|
dependencies = [
|
|
1097
1097
|
"once_cell",
|
|
1098
1098
|
"ring",
|
|
@@ -1216,13 +1216,14 @@ dependencies = [
|
|
|
1216
1216
|
|
|
1217
1217
|
[[package]]
|
|
1218
1218
|
name = "selectors"
|
|
1219
|
-
version = "0.
|
|
1219
|
+
version = "0.42.0"
|
|
1220
1220
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1221
|
-
checksum = "
|
|
1221
|
+
checksum = "284ac2879477575f13b22201f7e98aa33aacc765b790536808cf580fd79339f1"
|
|
1222
1222
|
dependencies = [
|
|
1223
1223
|
"bitflags",
|
|
1224
1224
|
"cssparser",
|
|
1225
1225
|
"derive_more",
|
|
1226
|
+
"hashbrown",
|
|
1226
1227
|
"log",
|
|
1227
1228
|
"new_debug_unreachable",
|
|
1228
1229
|
"precomputed-hash",
|
|
@@ -1275,9 +1276,9 @@ dependencies = [
|
|
|
1275
1276
|
|
|
1276
1277
|
[[package]]
|
|
1277
1278
|
name = "servo_arc"
|
|
1278
|
-
version = "0.
|
|
1279
|
+
version = "0.6.0"
|
|
1279
1280
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1280
|
-
checksum = "
|
|
1281
|
+
checksum = "9f121f129345b5201873a0e253f630413d750b9d799613e2873fb768e592c2a7"
|
|
1281
1282
|
dependencies = [
|
|
1282
1283
|
"stable_deref_trait",
|
|
1283
1284
|
]
|
data/ext/css_inline/Cargo.toml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "css-inline-ruby"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.24.0"
|
|
4
4
|
authors = ["Dmitry Dygalo <dmitry@dygalo.dev>"]
|
|
5
5
|
edition = "2024"
|
|
6
6
|
readme = "README.rdoc"
|
|
@@ -9,7 +9,7 @@ repository = "https://github.com/Stranger6667/css-inline"
|
|
|
9
9
|
keywords = ["css", "html", "email", "stylesheet", "inlining"]
|
|
10
10
|
categories = ["web-programming"]
|
|
11
11
|
license = "MIT"
|
|
12
|
-
rust-version = "1.
|
|
12
|
+
rust-version = "1.88"
|
|
13
13
|
|
|
14
14
|
[lib]
|
|
15
15
|
name = "css_inline"
|
|
@@ -21,7 +21,7 @@ magnus = "0.9"
|
|
|
21
21
|
rayon = "1"
|
|
22
22
|
|
|
23
23
|
[dependencies.css-inline]
|
|
24
|
-
version = "0.
|
|
24
|
+
version = "0.24.0"
|
|
25
25
|
default-features = false
|
|
26
26
|
features = ["http", "file", "stylesheet-cache"]
|
|
27
27
|
|
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.
|
|
4
|
+
version: 0.24.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitry Dygalo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-11-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rb_sys
|