uri 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b3741ee016cae6202bc6cc37831fd66551c7345f042db84e16e0c42a23e73fc4
4
- data.tar.gz: ca5a5df406aaf613ed27613b56fbc3446596d80aa9541d2299d4ba2a17bf9cf1
3
+ metadata.gz: cd3d7dc37d0488ad25f3cc84a6c8d75baeafe620393c5853db53658aedd6c848
4
+ data.tar.gz: 55418aa52949ba4a07d06a7160c6c238020bf1b94afe5c64ea594485c6b98dee
5
5
  SHA512:
6
- metadata.gz: 9aa8a131d013045b632d03515ef521609c01c5e0d5a8ce1db18ba48e880a762aeda7ab1d346737681b66ac6a01144ddea78df8c8fbf2b2355cd2d536652bb6bc
7
- data.tar.gz: bc2f58749df20109f28a758c0938db97f3e190a449082697681493b432a71781fd241bd535c918cb38d067fb3946ac1bd77e21872072858540073b87bdf03966
6
+ metadata.gz: c1ad53e9f8bfac0f38450e735bd72bfb2ad0fe1a5617d2f4e68a4e6721863cc3fe7965ca8e88b24e928f6f71ed79933ae650b7e3cfa14a12afae0e27e498799a
7
+ data.tar.gz: cc76741218cd86803df72dea8f535c537896d3388bcacb9ec29f0a83adf7035a75ee9c501e509ffb53d85903690b38b206e93c11ee2eb94c03aa68811af5d843
data/lib/uri/common.rb CHANGED
@@ -46,9 +46,15 @@ module URI
46
46
  self.parser = RFC3986_PARSER
47
47
 
48
48
  def self.const_missing(const)
49
- if value = RFC2396_PARSER.regexp[const]
49
+ if const == :REGEXP
50
+ warn "URI::REGEXP is obsolete. Use URI::RFC2396_REGEXP explicitly.", uplevel: 1 if $VERBOSE
51
+ URI::RFC2396_REGEXP
52
+ elsif value = RFC2396_PARSER.regexp[const]
50
53
  warn "URI::#{const} is obsolete. Use RFC2396_PARSER.regexp[#{const.inspect}] explicitly.", uplevel: 1 if $VERBOSE
51
54
  value
55
+ elsif value = RFC2396_Parser.const_get(const)
56
+ warn "URI::#{const} is obsolete. Use RFC2396_Parser::#{const} explicitly.", uplevel: 1 if $VERBOSE
57
+ value
52
58
  else
53
59
  super
54
60
  end
data/lib/uri/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module URI
2
2
  # :stopdoc:
3
- VERSION_CODE = '010000'.freeze
3
+ VERSION_CODE = '010001'.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: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akira Yamada
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-07 00:00:00.000000000 Z
11
+ date: 2024-11-08 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: