css_inline 0.10.2 → 0.10.4

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: 74d59e5067f2add7bdfaba4cfa4996d23228930b37f9291765b1f67bd76bacc2
4
+ data.tar.gz: 3dc31eb7364324ecc3de397dc8a2dd7fedb406a64c1160b5766b42fc4a824a1c
5
5
  SHA512:
6
- metadata.gz: fcf9fde86b859f76c7b2259a5ceb3c1f49cb5dd3a66efa5b25f2582da9c40330535d78495d8eecbb331defaf68d48bf99fde24854d11eec2e8e1862be5aa63ba
7
- data.tar.gz: 5b31912053524cfff826837921316ebcac19ce8ed85b49886260d506fcd4619f25dde8a8e40eb98aa6e06fe37a9f462f14da12de2022cb6342f41c0ec3a64ec8
6
+ metadata.gz: e283837727353d4ce91e2d60d42cdaf7000103ea8cbc6ea83330e217a60d2572953eb6501c84376d0430be199d2dfba84213d44decb89621f6ab63189925f69d
7
+ data.tar.gz: 509885e47fb391530e675ff8c1e026348558ead1dcaab1361f52f039fe2d1d67f808d652b770213d12649cc88ba8f3db3f5a93b5e4a8653cd83817a7af1bee35
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # css_inline
2
2
 
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)
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
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)
@@ -81,7 +81,7 @@ This results in faster execution times compared to employing parallel processing
81
81
 
82
82
  For customization options use the `CSSInliner` class:
83
83
 
84
- ```python
84
+ ```ruby
85
85
  require 'css_inline'
86
86
 
87
87
  inliner = CSSInline::CSSInliner.new(keep_style_tags: true)
@@ -132,18 +132,18 @@ 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.4` | `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 | 8.73 µs | 421.40 µs | **48.24x** |
142
+ | Realistic email 1 | 172.71 µs | 9.77 ms | **56.62x** |
143
+ | Realistic email 2 | 128.53 µ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
- The results displayed above were measured using stable `rustc 1.70` on Ruby `3.2.2`.
146
+ The results displayed above were measured using stable `rustc 1.71.1` on Ruby `3.2.2`.
147
147
 
148
148
  ## Ruby support
149
149
 
@@ -1,7 +1,7 @@
1
1
  [package]
2
2
  name = "css-inline-ruby"
3
- version = "0.10.2"
4
- authors = ["Dmitry Dygalo <dadygalo@gmail.com>"]
3
+ version = "0.10.4"
4
+ authors = ["Dmitry Dygalo <dmitry@dygalo.dev>"]
5
5
  edition = "2021"
6
6
  readme = "README.rdoc"
7
7
  description = "High-performance library for inlining CSS into HTML 'style' attributes"
@@ -16,7 +16,7 @@ name = "css_inline"
16
16
  crate-type = ["cdylib"]
17
17
 
18
18
  [dependencies]
19
- magnus = "0.5"
19
+ magnus = "0.6"
20
20
  rayon = "1"
21
21
 
22
22
  [dependencies.css-inline]
@@ -7,7 +7,7 @@
7
7
  clippy::match_same_arms,
8
8
  clippy::needless_borrow,
9
9
  clippy::print_stdout,
10
- clippy::integer_arithmetic,
10
+ clippy::arithmetic_side_effects,
11
11
  clippy::cast_possible_truncation,
12
12
  clippy::unwrap_used,
13
13
  clippy::map_unwrap_or,
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.4
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-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler
@@ -84,7 +84,7 @@ description: |2
84
84
  `css_inline` inlines CSS into HTML documents, using components from Mozilla's Servo project.
85
85
  This process is essential for sending HTML emails as you need to use "style" attributes instead of "style" tags.
86
86
  email:
87
- - dadygalo@gmail.com
87
+ - dmitry@dygalo.dev
88
88
  executables: []
89
89
  extensions:
90
90
  - ext/css_inline/extconf.rb
@@ -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.18
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: High-performance library for inlining CSS into HTML 'style' attributes