uri 0.11.2 → 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: 2dc19854507809e0f4bf6ae1fa81981c1efe1cd1a136569794d1998a9361ae1e
4
- data.tar.gz: 8d95b35877d847fa1f997760b7df2059cf0dfa6644c8a617e4a5abbab029d767
3
+ metadata.gz: c29481905b99ec405086769e5fce6c32539064d0a2917b23d4dddd8419e4db0d
4
+ data.tar.gz: 5bbfeac4e030df131451c4847132e360d48f76f9d1e4344f8eba92dd6a07d8d7
5
5
  SHA512:
6
- metadata.gz: 7ea5bcaba6c135ec0b9c3f6441e5274087c9a8ad399297219e57b6ba03e4c944e113266e6a28964162de21367fa3881b9be7d9aa8ebf37536f5a8474b82a7c19
7
- data.tar.gz: 6996e26464dc1e408b82a926db2925d39633cb77d287944c09ed972fbf5eb87f513358439a8293874cfaf384621a4465d6c0fd2539b577c6faed305715453355
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/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
 
data/lib/uri/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module URI
2
2
  # :stopdoc:
3
- VERSION_CODE = '001102'.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.2
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-06-29 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.3.26
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