Skip to content

Commit fe53f44

Browse files
committed
chore(ruby): Fix Ruby builds
Signed-off-by: Dmitry Dygalo <[email protected]>
1 parent f23ee25 commit fe53f44

File tree

4 files changed

+43
-33
lines changed

4 files changed

+43
-33
lines changed

bindings/ruby/Cargo.lock

Lines changed: 17 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/ruby/ext/css_inline/Cargo.lock

Lines changed: 17 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindings/ruby/ext/css_inline/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "css-inline-ruby"
2+
name = "css-inline"
33
version = "0.16.0"
44
authors = ["Dmitry Dygalo <[email protected]>"]
55
edition = "2021"
@@ -20,7 +20,6 @@ magnus = "0.7"
2020
rayon = "1"
2121

2222
[dependencies.css-inline]
23-
path = "../../../../css-inline"
24-
version = "*"
23+
version = "0.17"
2524
default-features = false
2625
features = ["http", "file", "stylesheet-cache"]

bindings/ruby/lib/css_inline.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# frozen_string_literal: true
2+
3+
begin
4+
require "css_inline/#{RUBY_VERSION.to_f}/css_inline"
5+
rescue LoadError
6+
require "css_inline/css_inline"
7+
end

0 commit comments

Comments
 (0)