css_inline 0.10.1 → 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: 34222fdeb2fa9df7a85ceff2a636e270547dc019f802acf44463e5664bb262f9
4
- data.tar.gz: 691c0db63a192755607370a42bc0a852816c6c9bc376932abc4a2a6c0ff18864
3
+ metadata.gz: 44cb7c00c0a02e3b6fb2de5787376440b144b20618ccbbde8136606506d10b09
4
+ data.tar.gz: 6f4cdb59e42507811a38670f1661dadaab4d37e03b60b48f39291650cd2c5609
5
5
  SHA512:
6
- metadata.gz: 5674f13869ba479c6332af0f1e6e346bc17571f69cb51a8181bcfdb1c77e246c1e76029f818b14f3b0c686633ad9a752d30a0bef129b835c2715ba0647e77d98
7
- data.tar.gz: 34715818a75ffc5f1862faf6138981e997c499d0073604af74f073314938f1cd081dbc4c3efe14c19fbc0781a4550db016dbbe4d259cdaff58ccfd91d73995e8
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 | 11 µs | 448 µs | **40.6x** |
142
- | Realistic email 1 | 290 µs | 9.72 ms | **33.5x** |
143
- | Realistic email 2 | 167.50 µ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.0"
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.1
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-18 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