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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7bbfcc37f960f334a6da5f9c07c57079d77fbe3430e6b4aa2a59ae960e20a12
4
- data.tar.gz: e3c6be1eaef22e80dbd1569f0b4a9b5a3e6d0b7da0126a6bedf081905fff68ce
3
+ metadata.gz: cc4f344b4151ed8cbd7ec8447e9055a23295d1316ae370c510a737332889a23c
4
+ data.tar.gz: 15e72afb36a6dd6274868f614bff7b1decc89ff804733d2c92db729562bd347a
5
5
  SHA512:
6
- metadata.gz: 8be920520eb7e923dc3cc02382b2a555685ec3ff501370fa99dfc3690c0d25322d347097907035f1693d191fb80a83e9d68fe3aa274a3d2ddd734df916ffd3e5
7
- data.tar.gz: bf0ed1ba45e5ced9c0c138113ee3c4dcacd46c1df85ab0bfc4db4ac7e13229fdf94f998e541101884148e5df5722f37104c2a858ba96124632368d60347086ff
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 8.1x to 354x faster than `roadie` and 57x to 123x faster than `premailer` on these documents:
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.22.0` | `roadie 5.2.1` | `premailer 1.27.0` |
275
+ | | Size | `css_inline 0.23.1` | `roadie 5.2.1` | `premailer 1.27.0` |
277
276
  |-------------------|---------|---------------------|-------------------------|-------------------------|
278
- | Basic usage | 230 B | 5.84 µs | 168.88 µs (**28.92x**) | 331.07 µs (**56.69x**) |
279
- | Realistic email 1 | 8.58 KB | 87.66 µs | 713.78 µs (**8.14x**) | 6.95 ms (**79.28x**) |
280
- | Realistic email 2 | 4.30 KB | 50.45 µs | 1.98 ms (**39.25x**) | ERROR |
281
- | GitHub Page | 1.81 MB | 19.01 ms | 6.73 s (**354.02x**) | 2.34 s (**123.09x**) |
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
 
@@ -160,9 +160,9 @@ checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
160
160
 
161
161
  [[package]]
162
162
  name = "css-inline"
163
- version = "0.23.0"
163
+ version = "0.24.0"
164
164
  source = "registry+https://github.com/rust-lang/crates.io-index"
165
- checksum = "27f0d92b3bffbf72b6b83f3e352ab37ddd046a81a675d3bc240792e0539c0cb2"
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.23.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.2"
269
+ version = "1.0.3"
270
270
  source = "registry+https://github.com/rust-lang/crates.io-index"
271
- checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
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.18.0"
725
+ version = "0.19.0"
726
726
  source = "registry+https://github.com/rust-lang/crates.io-index"
727
- checksum = "8a860605968fce16869fd239cf4237a82f3ac470723415db603b0e8b6c8d4fb9"
727
+ checksum = "4a9f71e3591c7ec44d3e563e87bf14ddc2bada8519dca046e5b0e560cd004e2d"
728
728
  dependencies = [
729
729
  "hashbrown",
730
730
  ]
731
731
 
732
732
  [[package]]
733
733
  name = "magnus"
734
- version = "0.9.2"
734
+ version = "0.9.3"
735
735
  source = "registry+https://github.com/rust-lang/crates.io-index"
736
- checksum = "b9068710e00d21be762edca59b9c4c8946dbdb29820d4f76ad559afea07982c9"
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.45"
1093
+ version = "0.23.46"
1094
1094
  source = "registry+https://github.com/rust-lang/crates.io-index"
1095
- checksum = "0d41d731c7d2f962d1ccc364cec258de3c0e93b38c2fb3ba97ac74513048d634"
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.41.0"
1219
+ version = "0.42.0"
1220
1220
  source = "registry+https://github.com/rust-lang/crates.io-index"
1221
- checksum = "8322aebea94a6cc288ff884e8a49bdbceef60206c400c6c46d22e62fc4fd91a6"
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.5.0"
1279
+ version = "0.6.0"
1279
1280
  source = "registry+https://github.com/rust-lang/crates.io-index"
1280
- checksum = "b4eceb519ec34d8290aaf6e46f435102f2bfa63f22b05a144fb16ab266d3b198"
1281
+ checksum = "9f121f129345b5201873a0e253f630413d750b9d799613e2873fb768e592c2a7"
1281
1282
  dependencies = [
1282
1283
  "stable_deref_trait",
1283
1284
  ]
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "css-inline-ruby"
3
- version = "0.23.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.85"
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.23.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.23.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-10-16 00:00:00.000000000 Z
11
+ date: 2026-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rb_sys