Skip to content

Commit

Permalink
Merge pull request #120 from ruby/define-rfc2396-parser-0-12
Browse files Browse the repository at this point in the history
Define RFC2396_PARSER  for Ruby 3.2 and 3.1
  • Loading branch information
hsbt authored Aug 27, 2024
2 parents 988ab01 + 1fa7269 commit cd8cedf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ jobs:
matrix:
ruby: [ 3.1, '3.0', 2.7, 2.6, 2.5, 2.4, head, truffleruby ]
os: [ ubuntu-latest, macos-latest ]
exclude:
- ruby: 2.4
os: macos-latest
- ruby: 2.5
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 2 additions & 0 deletions lib/uri/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ module URI
Parser = RFC2396_Parser
RFC3986_PARSER = RFC3986_Parser.new
Ractor.make_shareable(RFC3986_PARSER) if defined?(Ractor)
RFC2396_PARSER = RFC2396_Parser.new
Ractor.make_shareable(RFC2396_PARSER) if defined?(Ractor)

# URI::Parser.new
DEFAULT_PARSER = Parser.new
Expand Down

0 comments on commit cd8cedf

Please sign in to comment.