From 75ae70c27cbcb3a33758872c9aad315cebd415fa Mon Sep 17 00:00:00 2001 From: Osama Sayegh Date: Thu, 16 Feb 2023 18:15:56 +0300 Subject: [PATCH] DEV: rtlcss_wrapper renamed to rtlcss (#20331) The `rtlcss_wrapper` gem has been renamed to `rtlcss` per https://github.com/discourse/rtlcss/commit/bd89847a39ef61f823afe3fe4dd05403b63bbcf8. --- Gemfile | 2 +- Gemfile.lock | 4 ++-- lib/stylesheet/compiler.rb | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Gemfile b/Gemfile index cbb730e2620..96506d54b53 100644 --- a/Gemfile +++ b/Gemfile @@ -105,7 +105,7 @@ gem "pg" gem "mini_sql" gem "pry-rails", require: false gem "pry-byebug", require: false -gem "rtlcss_wrapper", require: false +gem "rtlcss", require: false gem "rake" gem "thor", require: false diff --git a/Gemfile.lock b/Gemfile.lock index 64d256d821b..c9c0ba4eff8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -408,7 +408,7 @@ GEM json-schema (>= 2.2, < 4.0) railties (>= 3.1, < 7.1) rspec-core (>= 2.14) - rtlcss_wrapper (0.1.0) + rtlcss (0.2.0) mini_racer (~> 0.6.3) rubocop (1.44.1) json (~> 2.3) @@ -638,7 +638,7 @@ DEPENDENCIES rspec-rails rss rswag-specs - rtlcss_wrapper + rtlcss rubocop-discourse ruby-prof ruby-readability diff --git a/lib/stylesheet/compiler.rb b/lib/stylesheet/compiler.rb index 536249ae6d6..43018e2705f 100644 --- a/lib/stylesheet/compiler.rb +++ b/lib/stylesheet/compiler.rb @@ -66,8 +66,8 @@ module Stylesheet result = engine.render if options[:rtl] - require "rtlcss_wrapper" - [RtlcssWrapper.flip_css(result), nil] + require "rtlcss" + [Rtlcss.flip_css(result), nil] else source_map = engine.source_map source_map.force_encoding("UTF-8")