css_inline 0.11.0 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -6
- data/ext/css_inline/Cargo.toml +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f9b907d42508df0923a6f252c9d2635362de2be451be05d9bfb81af8e547081
|
4
|
+
data.tar.gz: 29f8cc574b53f78a7c3a2a16866c254061de184c4a64fc43f308e4a548d367cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dec785c79759c959411617a1dd8bb040e25de8d66e0c72f9f18d95923cd4217750bbb47751e0a6a9da17d6e4645964552375e32dd36153b523858fe376a7b2ef
|
7
|
+
data.tar.gz: a6ec06cc6e9e6116e5a65bda549ef9d0ca5d00fc6115278c3d1ce45a1e2e91ae0b1442d77ec3d439404fb438e4bb25f80bb6fe7015b45322267521a982d75bcb
|
data/README.md
CHANGED
@@ -137,15 +137,15 @@ It consistently outperforms `premailer`, offering speed increases often exceedin
|
|
137
137
|
|
138
138
|
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):
|
139
139
|
|
140
|
-
| | Size | `css_inline 0.
|
140
|
+
| | Size | `css_inline 0.11.2` | `premailer 1.21.0 with Nokogiri 1.15.2` | Difference |
|
141
141
|
|-------------------|---------|---------------------|------------------------------------------------|------------|
|
142
|
-
| Basic usage | 230 B | 8.
|
143
|
-
| Realistic email 1 | 8.58 KB |
|
144
|
-
| Realistic email 2 | 4.3 KB |
|
145
|
-
| GitHub Page | 1.81 MB |
|
142
|
+
| Basic usage | 230 B | 8.27 µs | 433.55 µs | **52.35x** |
|
143
|
+
| Realistic email 1 | 8.58 KB | 159.20 µs | 9.88 ms | **62.10x** |
|
144
|
+
| Realistic email 2 | 4.3 KB | 103.41 µs | Error: Cannot parse 0 calc((100% - 500px) / 2) | - |
|
145
|
+
| GitHub Page | 1.81 MB | 301.66 ms | 3.08 s | **10.24x** |
|
146
146
|
|
147
147
|
Please refer to the `test/bench.rb` file to review the benchmark code.
|
148
|
-
The results displayed above were measured using stable `rustc 1.
|
148
|
+
The results displayed above were measured using stable `rustc 1.74.1` on Ruby `3.2.2`.
|
149
149
|
|
150
150
|
## Ruby support
|
151
151
|
|
data/ext/css_inline/Cargo.toml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
[package]
|
2
2
|
name = "css-inline-ruby"
|
3
|
-
version = "0.11.
|
3
|
+
version = "0.11.2"
|
4
4
|
authors = ["Dmitry Dygalo <dmitry@dygalo.dev>"]
|
5
5
|
edition = "2021"
|
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.65"
|
13
13
|
|
14
14
|
[lib]
|
15
15
|
name = "css_inline"
|
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.11.
|
4
|
+
version: 0.11.2
|
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-09
|
11
|
+
date: 2023-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|
@@ -123,8 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 3.3.26
|
125
125
|
requirements:
|
126
|
-
- Rust >= 1.
|
127
|
-
rubygems_version: 3.4.
|
126
|
+
- Rust >= 1.65
|
127
|
+
rubygems_version: 3.4.22
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: High-performance library for inlining CSS into HTML 'style' attributes
|