uri 0.10.0.1 → 0.10.0.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: e3b158c683f8484c1e59b7722dd04903bbf64c913b7da063d97319474a030624
4
- data.tar.gz: 4793805246221242e7e24a7caec63dd9b811e2a79b0f2de939a6cdb25d96aa95
3
+ metadata.gz: dbcec490edc445c378cd355670cdc57f7d34f7d236f4e2768df451452a70a901
4
+ data.tar.gz: 0e3f61f9890d47a524ac433f487ece52c858be9ffab0847bcd1e68329ca2b21b
5
5
  SHA512:
6
- metadata.gz: e41c7c38b072acef51bd232756f7f36f6f13f095f55c047e1281a743c22e5cd8240458bfd2f6be6dab797e0d523c17b2e03ee80727fb5e684f4bd7cf7af5193a
7
- data.tar.gz: 1b12fff421369db83d99ca0be483cf796f6e41879fc49e59d62b51ad98cf65b80e37c9fcf999c6279030f8a0253582c720ee1331de745b7c622c924ec6a9dd46
6
+ metadata.gz: eaba0d2693a6bdca4ed91124ee6d2a0f8c19e20f5574f348ea850736b5ddc3ccf19baae0f132b8c07f935daf84d2b4c74aa766721b0a9bf2e47719e46b6d8fbe
7
+ data.tar.gz: 1f7507faa53170df7dedcd0a7d8545ec31d8ae56357b74342e430bc3670ac18b7381539f799388c7fa810591705ffbeebaa7af0c00012850cb6a5ce5e92806fe
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/ldap.rb CHANGED
@@ -119,6 +119,7 @@ module URI
119
119
 
120
120
  # Private method to cleanup +dn+ from using the +path+ component attribute.
121
121
  def parse_dn
122
+ raise InvalidURIError, 'bad LDAP URL' unless @path
122
123
  @dn = @path[1..-1]
123
124
  end
124
125
  private :parse_dn
@@ -504,8 +504,8 @@ module URI
504
504
  ret = {}
505
505
 
506
506
  # for URI::split
507
- ret[:ABS_URI] = Regexp.new('\A\s*' + pattern[:X_ABS_URI] + '\s*\z', Regexp::EXTENDED)
508
- ret[:REL_URI] = Regexp.new('\A\s*' + pattern[:X_REL_URI] + '\s*\z', Regexp::EXTENDED)
507
+ ret[:ABS_URI] = Regexp.new('\A\s*+' + pattern[:X_ABS_URI] + '\s*\z', Regexp::EXTENDED)
508
+ ret[:REL_URI] = Regexp.new('\A\s*+' + pattern[:X_REL_URI] + '\s*\z', Regexp::EXTENDED)
509
509
 
510
510
  # for URI::extract
511
511
  ret[:URI_REF] = Regexp.new(pattern[:URI_REF])
@@ -106,7 +106,7 @@ module URI
106
106
  QUERY: /\A(?:%\h\h|[!$&-.0-;=@-Z_a-z~\/?])*\z/,
107
107
  FRAGMENT: /\A(?:%\h\h|[!$&-.0-;=@-Z_a-z~\/?])*\z/,
108
108
  OPAQUE: /\A(?:[^\/].*)?\z/,
109
- PORT: /\A[\x09\x0a\x0c\x0d ]*\d*[\x09\x0a\x0c\x0d ]*\z/,
109
+ PORT: /\A[\x09\x0a\x0c\x0d ]*+\d*[\x09\x0a\x0c\x0d ]*\z/,
110
110
  }
111
111
  end
112
112
 
data/lib/uri/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module URI
2
2
  # :stopdoc:
3
- VERSION_CODE = '00100001'.freeze
3
+ VERSION_CODE = '00100003'.freeze
4
4
  VERSION = VERSION_CODE.scan(/../).collect{|n| n.to_i}.join('.').freeze
5
5
  # :startdoc:
6
6
  end
data/uri.gemspec CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  # Specify which files should be added to the gem when it is released.
22
22
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
23
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
24
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
24
+ `git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
25
  end
26
26
  spec.bindir = "exe"
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
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.10.0.1
4
+ version: 0.10.0.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: 2023-06-29 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:
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  requirements: []
63
- rubygems_version: 3.5.0.dev
63
+ rubygems_version: 3.3.26
64
64
  signing_key:
65
65
  specification_version: 4
66
66
  summary: URI is a module providing classes to handle Uniform Resource Identifiers