From 2354e8374c48bf9ed37dec8d7daf649d989c91fe Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Mon, 21 Apr 2025 13:13:39 -0400 Subject: [PATCH 1/2] dep: update Gemfile.lock for net-protocol --- Gemfile.lock | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index e3205188..eae16b37 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -87,7 +87,8 @@ GEM net-protocol net-protocol (0.2.2) timeout - net-smtp (0.5.0) + net-smtp (0.5.1) + net-protocol nokogiri (1.18.1) mini_portile2 (~> 2.8.2) racc (~> 1.4) From 06f5d456d0f336a5d1ada95b56665cdc23b85d08 Mon Sep 17 00:00:00 2001 From: wlipa Date: Sat, 12 Apr 2025 15:29:42 -0700 Subject: [PATCH 2/2] suppress caniuse-lite is outdated warning Co-authored-by: Mike Dalessio --- lib/puma/plugin/tailwindcss.rb | 2 +- lib/tailwindcss/commands.rb | 2 ++ lib/tasks/build.rake | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/puma/plugin/tailwindcss.rb b/lib/puma/plugin/tailwindcss.rb index 4624d7e8..f5f914b9 100644 --- a/lib/puma/plugin/tailwindcss.rb +++ b/lib/puma/plugin/tailwindcss.rb @@ -13,7 +13,7 @@ def start(launcher) # If we use system(*command) instead, IRB and Debug can't read from $stdin # correctly bacause some keystrokes will be taken by watch_command. begin - IO.popen(Tailwindcss::Commands.watch_command, 'r+') do |io| + IO.popen(Tailwindcss::Commands::ENV, Tailwindcss::Commands.watch_command, 'r+') do |io| IO.copy_stream(io, $stdout) end rescue Interrupt diff --git a/lib/tailwindcss/commands.rb b/lib/tailwindcss/commands.rb index 40d983a6..27764107 100644 --- a/lib/tailwindcss/commands.rb +++ b/lib/tailwindcss/commands.rb @@ -2,6 +2,8 @@ module Tailwindcss module Commands + ENV = {'BROWSERSLIST_IGNORE_OLD_DATA' => '1'} + class << self def compile_command(debug: false, **kwargs) rails_root = defined?(Rails) ? Rails.root : Pathname.new(Dir.pwd) diff --git a/lib/tasks/build.rake b/lib/tasks/build.rake index 3044ff05..d4e845e3 100644 --- a/lib/tasks/build.rake +++ b/lib/tasks/build.rake @@ -4,7 +4,7 @@ namespace :tailwindcss do debug = args.extras.include?("debug") command = Tailwindcss::Commands.compile_command(debug: debug) puts command.inspect if args.extras.include?("verbose") - system(*command, exception: true) + system(Tailwindcss::Commands::ENV, *command, exception: true) end desc "Watch and build your Tailwind CSS on file changes" @@ -14,7 +14,7 @@ namespace :tailwindcss do always = args.extras.include?("always") command = Tailwindcss::Commands.watch_command(always: always, debug: debug, poll: poll) puts command.inspect if args.extras.include?("verbose") - system(*command) + system(Tailwindcss::Commands::ENV, *command) rescue Interrupt puts "Received interrupt, exiting tailwindcss:watch" if args.extras.include?("verbose") end