uri 0.12.1 → 0.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d86620a487d2769ad2d77ec2d040b38ce8d97c49c7e58228083cd41cae23e94
4
- data.tar.gz: 5bc762b3a032fedea0ecd0640fd3d580296171ce12231e6cd6c766ff51622675
3
+ metadata.gz: 8e5eb539bccaa2d0f90ead026894ac1120ef94cffc908cc98450e4fe3e261119
4
+ data.tar.gz: f5708e8f3e332c3e05cd39b1147ba732645986599e59952b2ede2d9e2051d3a0
5
5
  SHA512:
6
- metadata.gz: 026e3ef8b7e0cb8b5d243169a8eab6b8be7ca820328456b737fc21862ec8e09f1390e9010891607ed6a4689a8bc075384d51ae6c79aaaf872b5f1f5f50473f42
7
- data.tar.gz: c7817221a6ee496344c4d62e91da663ff2eaf4f7d93a05818460225ce75c069b414eb24248bff1d0979cc57f9c559381053768845ffcfdad7997a9e968aa7d8e
6
+ metadata.gz: 2f3d2a24d61837a54530718294785ab82a12c28681de29fc5afe8cd0aa70e9ed046c8d023bfec55e0a484ef20aa74601479003d9781ed4ac9f78fb9338ecd937
7
+ data.tar.gz: 765df4b7b63d7b102cf22e0ca54a8eef49b3ab3f4bbb5655f4beb003608a2caa3110f4d71f5b5b502b6a17203260dda72c0a16d6bf23a79001de010a3ee7504a
@@ -9,6 +9,11 @@ jobs:
9
9
  matrix:
10
10
  ruby: [ 3.1, '3.0', 2.7, 2.6, 2.5, 2.4, head, truffleruby ]
11
11
  os: [ ubuntu-latest, macos-latest ]
12
+ exclude:
13
+ - ruby: 2.4
14
+ os: macos-latest
15
+ - ruby: 2.5
16
+ os: macos-latest
12
17
  runs-on: ${{ matrix.os }}
13
18
  steps:
14
19
  - uses: actions/checkout@v3
@@ -16,6 +21,6 @@ jobs:
16
21
  uses: ruby/setup-ruby@v1
17
22
  with:
18
23
  ruby-version: ${{ matrix.ruby }}
19
- bundler-cache: true
24
+ - run: bundle install --jobs 4 --retry 3
20
25
  - name: Run test
21
26
  run: rake test
data/Gemfile CHANGED
@@ -6,4 +6,5 @@ group :development do
6
6
  gem "bundler"
7
7
  gem "rake"
8
8
  gem "test-unit"
9
+ gem "test-unit-ruby-core"
9
10
  end
data/lib/uri/common.rb CHANGED
@@ -19,6 +19,8 @@ module URI
19
19
  Parser = RFC2396_Parser
20
20
  RFC3986_PARSER = RFC3986_Parser.new
21
21
  Ractor.make_shareable(RFC3986_PARSER) if defined?(Ractor)
22
+ RFC2396_PARSER = RFC2396_Parser.new
23
+ Ractor.make_shareable(RFC2396_PARSER) if defined?(Ractor)
22
24
 
23
25
  # URI::Parser.new
24
26
  DEFAULT_PARSER = Parser.new
@@ -497,8 +497,8 @@ module URI
497
497
  ret = {}
498
498
 
499
499
  # for URI::split
500
- ret[:ABS_URI] = Regexp.new('\A\s*' + pattern[:X_ABS_URI] + '\s*\z', Regexp::EXTENDED)
501
- ret[:REL_URI] = Regexp.new('\A\s*' + pattern[:X_REL_URI] + '\s*\z', Regexp::EXTENDED)
500
+ ret[:ABS_URI] = Regexp.new('\A\s*+' + pattern[:X_ABS_URI] + '\s*\z', Regexp::EXTENDED)
501
+ ret[:REL_URI] = Regexp.new('\A\s*+' + pattern[:X_REL_URI] + '\s*\z', Regexp::EXTENDED)
502
502
 
503
503
  # for URI::extract
504
504
  ret[:URI_REF] = Regexp.new(pattern[:URI_REF])
@@ -100,7 +100,7 @@ module URI
100
100
  QUERY: /\A(?:%\h\h|[!$&-.0-;=@-Z_a-z~\/?])*\z/,
101
101
  FRAGMENT: /\A(?:%\h\h|[!$&-.0-;=@-Z_a-z~\/?])*\z/,
102
102
  OPAQUE: /\A(?:[^\/].*)?\z/,
103
- PORT: /\A[\x09\x0a\x0c\x0d ]*\d*[\x09\x0a\x0c\x0d ]*\z/,
103
+ PORT: /\A[\x09\x0a\x0c\x0d ]*+\d*[\x09\x0a\x0c\x0d ]*\z/,
104
104
  }
105
105
  end
106
106
 
data/lib/uri/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module URI
2
2
  # :stopdoc:
3
- VERSION_CODE = '001201'.freeze
3
+ VERSION_CODE = '001203'.freeze
4
4
  VERSION = VERSION_CODE.scan(/../).collect{|n| n.to_i}.join('.').freeze
5
5
  # :startdoc:
6
6
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uri
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akira Yamada
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2023-03-28 00:00:00.000000000 Z
10
+ date: 2024-08-27 00:00:00.000000000 Z
12
11
  dependencies: []
13
12
  description: URI is a module providing classes to handle Uniform Resource Identifiers
14
13
  email:
@@ -49,7 +48,6 @@ licenses:
49
48
  metadata:
50
49
  homepage_uri: https://github.com/ruby/uri
51
50
  source_code_uri: https://github.com/ruby/uri
52
- post_install_message:
53
51
  rdoc_options: []
54
52
  require_paths:
55
53
  - lib
@@ -64,8 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
62
  - !ruby/object:Gem::Version
65
63
  version: '0'
66
64
  requirements: []
67
- rubygems_version: 3.5.0.dev
68
- signing_key:
65
+ rubygems_version: 3.6.0.dev
69
66
  specification_version: 4
70
67
  summary: URI is a module providing classes to handle Uniform Resource Identifiers
71
68
  test_files: []