css_inline 0.15.1 → 0.15.2

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.
@@ -1,6 +1,6 @@
1
1
  [package]
2
- name = "css-inline-ruby"
3
- version = "0.15.1"
2
+ name = "css-inline"
3
+ version = "0.15.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.71.1"
12
+ rust-version = "1.82"
13
13
 
14
14
  [lib]
15
15
  name = "css_inline"
@@ -0,0 +1,20 @@
1
+ require "mkmf"
2
+ require "rb_sys/mkmf"
3
+
4
+ create_rust_makefile("css_inline/css_inline") do |r|
5
+ def musl_target?
6
+ return true if ENV['CARGO_BUILD_TARGET']&.include?('musl')
7
+
8
+ if File.exist?('/etc/alpine-release') ||
9
+ (`ldd --version 2>&1` =~ /musl/ rescue false)
10
+ return true
11
+ end
12
+
13
+ host_target = `rustc -vV 2>/dev/null`.match(/host: (.+)/)[1] rescue nil
14
+ return host_target&.include?('musl') || false
15
+ end
16
+
17
+ if musl_target?
18
+ r.extra_rustflags = ['-C', 'target-feature=-crt-static']
19
+ end
20
+ end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: css_inline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.1
4
+ version: 0.15.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: 2025-06-21 00:00:00.000000000 Z
11
+ date: 2025-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rake-compiler
14
+ name: rb_sys
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.3.0
20
- type: :development
19
+ version: 0.9.116
20
+ type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.3.0
26
+ version: 0.9.116
27
27
  - !ruby/object:Gem::Dependency
28
- name: rb_sys
28
+ name: rake-compiler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.9.116
33
+ version: 1.3.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.9.116
40
+ version: 1.3.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: benchmark-ips
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -87,12 +87,15 @@ email:
87
87
  - dmitry@dygalo.dev
88
88
  executables: []
89
89
  extensions:
90
- - ext/css_inline/Cargo.toml
90
+ - ext/css_inline/extconf.rb
91
91
  extra_rdoc_files: []
92
92
  files:
93
93
  - Cargo.lock
94
+ - Cargo.toml
94
95
  - README.md
96
+ - ext/css_inline/Cargo.lock
95
97
  - ext/css_inline/Cargo.toml
98
+ - ext/css_inline/extconf.rb
96
99
  - ext/css_inline/src/lib.rs
97
100
  - lib/css_inline.rb
98
101
  homepage: https://github.com/Stranger6667/css-inline
@@ -124,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
127
  - !ruby/object:Gem::Version
125
128
  version: 3.3.26
126
129
  requirements:
127
- - Rust >= 1.71.1
130
+ - Rust >= 1.82
128
131
  rubygems_version: 3.4.19
129
132
  signing_key:
130
133
  specification_version: 4