css_inline 0.22.1 → 0.23.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 +4 -4
- data/README.md +2 -1
- data/ext/css_inline/Cargo.lock +229 -293
- data/ext/css_inline/Cargo.toml +6 -2
- data/{ext/css_inline/src → src}/lib.rs +6 -0
- metadata +5 -7
- data/Cargo.lock +0 -1946
- data/Cargo.toml +0 -3
data/ext/css_inline/Cargo.toml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "css-inline-ruby"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.23.0"
|
|
4
4
|
authors = ["Dmitry Dygalo <dmitry@dygalo.dev>"]
|
|
5
5
|
edition = "2024"
|
|
6
6
|
readme = "README.rdoc"
|
|
@@ -14,12 +14,16 @@ rust-version = "1.85"
|
|
|
14
14
|
[lib]
|
|
15
15
|
name = "css_inline"
|
|
16
16
|
crate-type = ["cdylib"]
|
|
17
|
+
path = "../../src/lib.rs"
|
|
17
18
|
|
|
18
19
|
[dependencies]
|
|
19
20
|
magnus = "0.9"
|
|
20
21
|
rayon = "1"
|
|
21
22
|
|
|
22
23
|
[dependencies.css-inline]
|
|
23
|
-
version = "0.
|
|
24
|
+
version = "0.23.0"
|
|
24
25
|
default-features = false
|
|
25
26
|
features = ["http", "file", "stylesheet-cache"]
|
|
27
|
+
|
|
28
|
+
# Standalone build for `gem install`: the gem ships only this crate, not the repository workspace
|
|
29
|
+
[workspace]
|
|
@@ -73,6 +73,9 @@ struct Options {
|
|
|
73
73
|
apply_width_attributes: Option<bool>,
|
|
74
74
|
/// Apply `height` HTML attributes from CSS `height` properties on supported elements.
|
|
75
75
|
apply_height_attributes: Option<bool>,
|
|
76
|
+
/// Substitute `var()` references with the values of the custom properties they refer to
|
|
77
|
+
/// and drop the `--*` declarations from the inlined styles.
|
|
78
|
+
resolve_css_variables: Option<bool>,
|
|
76
79
|
}
|
|
77
80
|
|
|
78
81
|
impl TryConvert for Options {
|
|
@@ -98,6 +101,8 @@ impl TryConvert for Options {
|
|
|
98
101
|
.aref::<_, Option<bool>>(ruby.to_symbol("apply_width_attributes"))?,
|
|
99
102
|
apply_height_attributes: h
|
|
100
103
|
.aref::<_, Option<bool>>(ruby.to_symbol("apply_height_attributes"))?,
|
|
104
|
+
resolve_css_variables: h
|
|
105
|
+
.aref::<_, Option<bool>>(ruby.to_symbol("resolve_css_variables"))?,
|
|
101
106
|
})
|
|
102
107
|
}
|
|
103
108
|
}
|
|
@@ -123,6 +128,7 @@ fn parse_options<Req>(
|
|
|
123
128
|
remove_inlined_selectors: kwargs.remove_inlined_selectors.unwrap_or(false),
|
|
124
129
|
apply_width_attributes: kwargs.apply_width_attributes.unwrap_or(false),
|
|
125
130
|
apply_height_attributes: kwargs.apply_height_attributes.unwrap_or(false),
|
|
131
|
+
resolve_css_variables: kwargs.resolve_css_variables.unwrap_or(false),
|
|
126
132
|
})
|
|
127
133
|
}
|
|
128
134
|
|
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.
|
|
4
|
+
version: 0.23.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-
|
|
11
|
+
date: 2026-10-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rb_sys
|
|
@@ -48,21 +48,19 @@ extensions:
|
|
|
48
48
|
- ext/css_inline/extconf.rb
|
|
49
49
|
extra_rdoc_files: []
|
|
50
50
|
files:
|
|
51
|
-
- Cargo.lock
|
|
52
|
-
- Cargo.toml
|
|
53
51
|
- README.md
|
|
54
52
|
- ext/css_inline/Cargo.lock
|
|
55
53
|
- ext/css_inline/Cargo.toml
|
|
56
54
|
- ext/css_inline/extconf.rb
|
|
57
|
-
- ext/css_inline/src/lib.rs
|
|
58
55
|
- lib/css_inline.rb
|
|
56
|
+
- src/lib.rs
|
|
59
57
|
homepage: https://github.com/Stranger6667/css-inline
|
|
60
58
|
licenses:
|
|
61
59
|
- MIT
|
|
62
60
|
metadata:
|
|
63
61
|
bug_tracker_uri: https://github.com/Stranger6667/css-inline/issues
|
|
64
|
-
changelog_uri: https://github.com/Stranger6667/css-inline/tree/master/
|
|
65
|
-
source_code_uri: https://github.com/Stranger6667/css-inline/tree/master/
|
|
62
|
+
changelog_uri: https://github.com/Stranger6667/css-inline/tree/master/crates/css-inline-ruby/CHANGELOG.md
|
|
63
|
+
source_code_uri: https://github.com/Stranger6667/css-inline/tree/master/crates/css-inline-ruby
|
|
66
64
|
funding_uri: https://github.com/sponsors/Stranger6667/
|
|
67
65
|
post_install_message:
|
|
68
66
|
rdoc_options:
|