Skip to content

Commit f36b030

Browse files
author
Morgan Jézéquel
committed
chore: update support for ruby versions
Remove support for ruby 2.7, add support for ruby 3.3.
1 parent 9e3728d commit f36b030

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
os: [ubuntu-latest, macos-latest]
24-
ruby: ['2.7', '3.0', '3.1', '3.2']
24+
ruby: ['3.0', '3.1', '3.2', '3.3']
2525
include:
2626
- os: ubuntu-latest
27-
ruby: '3.2'
27+
ruby: '3.3'
2828
coverage: true
2929
runs-on: ${{ matrix.os }}
3030
steps:

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require:
66
- rubocop-rspec
77

88
AllCops:
9-
TargetRubyVersion: 2.7
9+
TargetRubyVersion: 3.0
1010
NewCops: enable
1111
Exclude:
1212
- bin/rspec

lib/sheetah/utils/cell_string_cleaner.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ module Sheetah
44
module Utils
55
class CellStringCleaner
66
garbage = "(?:[^[:print:]]|[[:space:]])+"
7-
GARBAGE_PREFIX = /\A#{garbage}/.freeze
8-
GARBAGE_SUFFIX = /#{garbage}\Z/.freeze
7+
GARBAGE_PREFIX = /\A#{garbage}/
8+
GARBAGE_SUFFIX = /#{garbage}\Z/
99
private_constant :GARBAGE_PREFIX, :GARBAGE_SUFFIX
1010

1111
def self.call(...)

sheetah.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
99
spec.homepage = "https://steeple.com"
1010
spec.summary = "Process tabular data from different sources with a rich, unified API"
1111

12-
spec.required_ruby_version = ">= 2.7.0"
12+
spec.required_ruby_version = ">= 3.0"
1313

1414
spec.metadata["homepage_uri"] = "https://github.com/steeple-org/sheetah"
1515
spec.metadata["source_code_uri"] = "https://github.com/steeple-org/sheetah"

spec/sheetah/messaging/messenger_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ def allow_method_call_checking_block(receiver, method_name, *args, **opts, &bloc
144144
result
145145
end
146146

147-
def stub_scoping!(receiver, *args, &block)
148-
allow_method_call_checking_block(receiver, :scoping!, *args, &block)
147+
def stub_scoping!(receiver, ...)
148+
allow_method_call_checking_block(receiver, :scoping!, ...)
149149
end
150150

151151
describe "#scoping" do
@@ -236,8 +236,8 @@ def stub_scoping!(receiver, *args, &block)
236236
end
237237

238238
describe "#scope_row" do
239-
def stub_scope_row!(receiver, *args, &block)
240-
allow_method_call_checking_block(receiver, :scope_row!, *args, &block)
239+
def stub_scope_row!(receiver, ...)
240+
allow_method_call_checking_block(receiver, :scope_row!, ...)
241241
end
242242

243243
let(:messenger) { described_class.new }
@@ -324,8 +324,8 @@ def stub_scope_row!(receiver, *args, &block)
324324
end
325325

326326
describe "#scope_col" do
327-
def stub_scope_col!(receiver, *args, &block)
328-
allow_method_call_checking_block(receiver, :scope_col!, *args, &block)
327+
def stub_scope_col!(receiver, ...)
328+
allow_method_call_checking_block(receiver, :scope_col!, ...)
329329
end
330330

331331
let(:messenger) { described_class.new }

spec/sheetah/specification_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969

7070
describe "#get" do
7171
let(:regexp_pattern) do
72-
/foo\d{3}bar/i.freeze
72+
/foo\d{3}bar/i
7373
end
7474

7575
let(:string_pattern) do

0 commit comments

Comments
 (0)