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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2bee3426a27caa1fd94d837cc8f9178d78167bffd47cd4f9fbe967683a737be
4
- data.tar.gz: eafaddb32401278885056597da4dab0403a5cc902e3acbf5e0bf279c4083fb30
3
+ metadata.gz: 44cb7c00c0a02e3b6fb2de5787376440b144b20618ccbbde8136606506d10b09
4
+ data.tar.gz: 6f4cdb59e42507811a38670f1661dadaab4d37e03b60b48f39291650cd2c5609
5
5
  SHA512:
6
- metadata.gz: fcf9fde86b859f76c7b2259a5ceb3c1f49cb5dd3a66efa5b25f2582da9c40330535d78495d8eecbb331defaf68d48bf99fde24854d11eec2e8e1862be5aa63ba
7
- data.tar.gz: 5b31912053524cfff826837921316ebcac19ce8ed85b49886260d506fcd4619f25dde8a8e40eb98aa6e06fe37a9f462f14da12de2022cb6342f41c0ec3a64ec8
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 **30 times**.
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.0` | `premailer 1.21.0 with Nokogiri 1.15.2` | Difference |
139
+ | | `css_inline 0.10.3` | `premailer 1.21.0 with Nokogiri 1.15.2` | Difference |
140
140
  |-------------------|---------------------|------------------------------------------------|------------|
141
- | Basic usage | 9.77 µs | 414.42 µs | **42.42x** |
142
- | Realistic email 1 | 249.62 µs | 10.75 ms | **42.97x** |
143
- | Realistic email 2 | 162.33 µs | Error: Cannot parse 0 calc((100% - 500px) / 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`.
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "css-inline-ruby"
3
- version = "0.10.2"
3
+ version = "0.10.3"
4
4
  authors = ["Dmitry Dygalo <dadygalo@gmail.com>"]
5
5
  edition = "2021"
6
6
  readme = "README.rdoc"
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.2
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-06-25 00:00:00.000000000 Z
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.14
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