Skip to content

Commit e8fd09e

Browse files
committed
- Drop support for Ruby 3.1
1 parent aa0f67e commit e8fd09e

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
strategy:
13-
matrix: { ruby: ['3.1', '3.2', '3.3', '3.4'] }
13+
matrix: { ruby: ['3.2', '3.3', '3.4'] }
1414

1515
steps:
1616
- name: Check out code

.rubocop.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require:
1+
plugins:
22
- rubocop-rspec
33
- rubocop-performance
44

@@ -9,10 +9,11 @@ inherit_gem:
99

1010
AllCops:
1111
SuggestExtensions: false
12-
TargetRubyVersion: 3.1
12+
TargetRubyVersion: 3.2
1313
Exclude:
1414
- debug.rb
1515
- 'dev/**/*'
16+
- 'tmp/**/*'
1617
- 'spec/approvals/**/*'
1718
- 'spec/tmp/**/*'
1819
# This file contains errors on purpose

bin/victor

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ require 'victor/cli'
33
require 'pretty_trace/enable-trim'
44

55
include Colsole
6+
67
PrettyTrace.filter [/gem/, /lib/, %r{bin/victor}, %r{bin/bundle}]
78
PrettyTrace.debug_tip
89

lib/victor/cli/ruby_source.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module Victor
22
module CLI
33
class RubySource
44
include Victor::DSL
5+
56
attr_reader :code, :filename, :global_params, :params
67

78
def initialize(code, filename: nil, params: nil)

spec/victor-cli/refinements/pair_split_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
describe PairSplit do
22
using described_class
33

4-
subject { ["color=blue", "text=Hello World"] }
4+
subject { ['color=blue', 'text=Hello World'] }
55

66
describe Array do
77
describe '#pair_split' do

victor-cli.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
1313
s.executables = ['victor']
1414
s.homepage = 'https://github.com/dannyben/victor-cli'
1515
s.license = 'MIT'
16-
s.required_ruby_version = '>= 3.1'
16+
s.required_ruby_version = '>= 3.2'
1717

1818
s.add_dependency 'colsole', '~> 1.0'
1919
s.add_dependency 'css_parser', '~> 1.7'
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
2424
s.add_dependency 'requires', '~> 1.0'
2525
s.add_dependency 'rufo', '~> 0.12'
2626
s.add_dependency 'victor', '~> 0.4'
27-
27+
2828
# FIXME: Remove when resolved.
2929
# This is a sub-dependency of filewatcher which does not bundle logger.
3030
# ref: https://github.com/filewatcher/filewatcher/pull/272

0 commit comments

Comments
 (0)