uri 0.11.1 → 0.11.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: 5fe8d84a8348e4d70cf8d58a9d6f2c3da4cf20a7fb737c1dc1588a26e98e1030
4
- data.tar.gz: 1f2df4c78d837587d459f740ab7258c82091e0970edf07c1de60a8f55a825642
3
+ metadata.gz: c29481905b99ec405086769e5fce6c32539064d0a2917b23d4dddd8419e4db0d
4
+ data.tar.gz: 5bbfeac4e030df131451c4847132e360d48f76f9d1e4344f8eba92dd6a07d8d7
5
5
  SHA512:
6
- metadata.gz: c0843ebd756a4669d5360b13da1ecac944b35764618c2b4b6a3dd33b66bbee29a7402e29297d99c572e9cdfb680f0033b7ea0ed07d24e57716b60f8dd7a33380
7
- data.tar.gz: fe0f03a07cfc6266a9414d89ff16bbe286055f00f00ade774088af52ce02248c773a93add1574f8d635f334a74ef7f68c8b8f9e89bd1def6954bfe725595e6ee
6
+ metadata.gz: da33d741be44959eeb82c761c53a6d4a9483554d08be0ef0939ee146d991aa1117d0d89d3c917ee1ed2b44d39c03cc465de71cb556d24861ffb907053b013034
7
+ data.tar.gz: 347fc502d30a10cb3f24dc06945780c625dde86737c48e904cff913726385c5a54e5ae0ba8e8036e3c3f1457f8003eea8b7fffe44dd6f3f4481d0ed563fd3289
@@ -7,16 +7,20 @@ jobs:
7
7
  name: build (${{ matrix.ruby }} / ${{ matrix.os }})
8
8
  strategy:
9
9
  matrix:
10
- ruby: [ '3.0', 2.7, 2.6, 2.5, 2.4, head ]
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
- - uses: actions/checkout@v2
19
+ - uses: actions/checkout@v3
15
20
  - name: Set up Ruby
16
21
  uses: ruby/setup-ruby@v1
17
22
  with:
18
23
  ruby-version: ${{ matrix.ruby }}
19
- - name: Install dependencies
20
- run: bundle install
24
+ - run: bundle install --jobs 4 --retry 3
21
25
  - name: Run test
22
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/generic.rb CHANGED
@@ -1123,17 +1123,16 @@ module URI
1123
1123
  base.fragment=(nil)
1124
1124
 
1125
1125
  # RFC2396, Section 5.2, 4)
1126
- if !authority
1127
- base.set_path(merge_path(base.path, rel.path)) if base.path && rel.path
1128
- else
1129
- # RFC2396, Section 5.2, 4)
1130
- base.set_path(rel.path) if rel.path
1126
+ if authority
1127
+ base.set_userinfo(rel.userinfo)
1128
+ base.set_host(rel.host)
1129
+ base.set_port(rel.port || base.default_port)
1130
+ base.set_path(rel.path)
1131
+ elsif base.path && rel.path
1132
+ base.set_path(merge_path(base.path, rel.path))
1131
1133
  end
1132
1134
 
1133
1135
  # RFC2396, Section 5.2, 7)
1134
- base.set_userinfo(rel.userinfo) if rel.userinfo
1135
- base.set_host(rel.host) if rel.host
1136
- base.set_port(rel.port) if rel.port
1137
1136
  base.query = rel.query if rel.query
1138
1137
  base.fragment=(rel.fragment) if rel.fragment
1139
1138
 
@@ -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])
@@ -101,7 +101,7 @@ module URI
101
101
  QUERY: /\A(?:%\h\h|[!$&-.0-;=@-Z_a-z~\/?])*\z/,
102
102
  FRAGMENT: /\A(?:%\h\h|[!$&-.0-;=@-Z_a-z~\/?])*\z/,
103
103
  OPAQUE: /\A(?:[^\/].*)?\z/,
104
- PORT: /\A[\x09\x0a\x0c\x0d ]*\d*[\x09\x0a\x0c\x0d ]*\z/,
104
+ PORT: /\A[\x09\x0a\x0c\x0d ]*+\d*[\x09\x0a\x0c\x0d ]*\z/,
105
105
  }
106
106
  end
107
107
 
data/lib/uri/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module URI
2
2
  # :stopdoc:
3
- VERSION_CODE = '001101'.freeze
3
+ VERSION_CODE = '001103'.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,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uri
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akira Yamada
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-28 00:00:00.000000000 Z
11
+ date: 2025-02-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: URI is a module providing classes to handle Uniform Resource Identifiers
14
14
  email:
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  - !ruby/object:Gem::Version
64
64
  version: '0'
65
65
  requirements: []
66
- rubygems_version: 3.5.0.dev
66
+ rubygems_version: 3.4.19
67
67
  signing_key:
68
68
  specification_version: 4
69
69
  summary: URI is a module providing classes to handle Uniform Resource Identifiers