Skip to content

Commit

Permalink
Merge pull request #49 from DannyBen/housekeeping
Browse files Browse the repository at this point in the history
Test against Ruby 3.3 and replace byebug with debug
  • Loading branch information
DannyBen authored Jan 27, 2024
2 parents 1f2df9d + 2e455bc commit 4215d99
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install OS dependencies
run: sudo apt-get -y install libyaml-dev
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'https://rubygems.org'

gem 'byebug'
gem 'debug'
gem 'rentacop'
gem 'rspec'
gem 'rspec_approvals'
Expand Down
2 changes: 1 addition & 1 deletion Runfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "byebug"
require 'debug'
require 'kojo'
require 'kojo/version'

Expand Down
2 changes: 1 addition & 1 deletion lib/kojo.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'requires'
require 'byebug' if ENV['BYEBUG']
require 'debug' if ENV['DEBUGGER']

require 'yaml'
require 'json'
Expand Down
4 changes: 2 additions & 2 deletions lib/kojo/form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ def prompt
@prompt ||= TTY::Prompt.new
end

def method_missing(method_name, *args, **kargs, &block)
def method_missing(method_name, ...)
if respond_to? method_name
prompt.send method_name, *args, **kargs, &block
prompt.send(method_name, ...)
else
super
end
Expand Down

0 comments on commit 4215d99

Please sign in to comment.