From e749d2d74d8ddbbabc4065e6504ebfa669e8efb8 Mon Sep 17 00:00:00 2001 From: Danny Ben Shitrit Date: Sun, 28 Jan 2024 14:34:33 +0000 Subject: [PATCH] test with ruby 3.3 --- .github/workflows/test.yml | 4 ++-- Gemfile | 2 +- Runfile | 2 +- lib/victor/cli.rb | 5 ----- lib/victor/cli/commands/render.rb | 2 +- 5 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4287e3f..975d30b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,11 +10,11 @@ jobs: runs-on: ubuntu-latest strategy: - matrix: { ruby: ['3.0', '3.1', '3.2', head] } + matrix: { ruby: ['3.0', '3.1', '3.2', '3.3'] } steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install OS dependencies run: sudo apt-get -y install libyaml-dev diff --git a/Gemfile b/Gemfile index 3dbb03f..d75a99f 100644 --- a/Gemfile +++ b/Gemfile @@ -2,7 +2,7 @@ source 'https://rubygems.org' git_source(:github) { |repo_name| "https://github.com/#{repo_name}" } -gem 'byebug' +gem 'debug' gem 'lp' gem 'rspec' gem 'rspec_approvals' diff --git a/Runfile b/Runfile index 714cd20..25ce1aa 100644 --- a/Runfile +++ b/Runfile @@ -1,4 +1,4 @@ -require "byebug" +require "debug" title "Victor Developer Toolbelt" import_gem 'runfile-tasks/gem' diff --git a/lib/victor/cli.rb b/lib/victor/cli.rb index 762ce0f..6ed2a3a 100644 --- a/lib/victor/cli.rb +++ b/lib/victor/cli.rb @@ -5,8 +5,3 @@ require_relative 'cli/css_data' require_relative 'cli/command_line' require_relative 'cli/svg_node' - -if ENV['BYEBUG'] - require 'byebug' - require 'lp' -end diff --git a/lib/victor/cli/commands/render.rb b/lib/victor/cli/commands/render.rb index 537a270..f4e1fe0 100644 --- a/lib/victor/cli/commands/render.rb +++ b/lib/victor/cli/commands/render.rb @@ -51,7 +51,7 @@ def generate def watch say "Watching #{ruby_file} for changes" file_watcher.watch do |changes| - changes.each do |_path, event| + changes.each_value do |event| yield unless event == :deleted end end