Skip to content

Commit cd8cedf

Browse files
authored
Merge pull request #120 from ruby/define-rfc2396-parser-0-12
Define RFC2396_PARSER for Ruby 3.2 and 3.1
2 parents 988ab01 + 1fa7269 commit cd8cedf

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ jobs:
99
matrix:
1010
ruby: [ 3.1, '3.0', 2.7, 2.6, 2.5, 2.4, head, truffleruby ]
1111
os: [ ubuntu-latest, macos-latest ]
12+
exclude:
13+
- ruby: 2.4
14+
os: macos-latest
15+
- ruby: 2.5
16+
os: macos-latest
1217
runs-on: ${{ matrix.os }}
1318
steps:
1419
- uses: actions/checkout@v3

lib/uri/common.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ module URI
1919
Parser = RFC2396_Parser
2020
RFC3986_PARSER = RFC3986_Parser.new
2121
Ractor.make_shareable(RFC3986_PARSER) if defined?(Ractor)
22+
RFC2396_PARSER = RFC2396_Parser.new
23+
Ractor.make_shareable(RFC2396_PARSER) if defined?(Ractor)
2224

2325
# URI::Parser.new
2426
DEFAULT_PARSER = Parser.new

0 commit comments

Comments
 (0)