Skip to content

Commit e20f5fc

Browse files
authored
Merge pull request #162 from dentarg/ci/ruby-3.2
Add Ruby 3.2 to CI matrix
2 parents 0276b52 + 7cac8d4 commit e20f5fc

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- { ruby: '2.7' }
1717
- { ruby: '3.0' }
1818
- { ruby: '3.1' }
19+
- { ruby: '3.2' }
1920
- { ruby: head, allow-failure: true }
2021
- { ruby: jruby-9.3 }
2122
- { ruby: jruby-head, allow-failure: true }

.ruby-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

spec/lib/twingly/public_suffix_list_spec.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,18 @@
2222

2323
context "when the list data is read as US-ASCII" do
2424
let(:encoding) { Encoding::US_ASCII }
25+
# https://github.com/ruby/ruby/commit/571d21fd4a2e877f49b4ff918832bda9a5e8f91c
26+
let(:expected_error) do
27+
if RUBY_VERSION >= "3.2.0"
28+
Encoding::CompatibilityError
29+
else
30+
ArgumentError
31+
end
32+
end
2533

2634
it "parsing the data will fail" do
2735
expect { subject }.
28-
to raise_error(ArgumentError, "invalid byte sequence in US-ASCII")
36+
to raise_error(expected_error, "invalid byte sequence in US-ASCII")
2937
end
3038
end
3139
end

0 commit comments

Comments
 (0)