Skip to content

Commit 93c3594

Browse files
committed
Remove deprecated URI.parser
1 parent 8231314 commit 93c3594

File tree

6 files changed

+12
-30
lines changed

6 files changed

+12
-30
lines changed

actionpack/lib/action_dispatch/middleware/static.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# frozen_string_literal: true
22

33
require "rack/utils"
4-
require "active_support/core_ext/uri"
54

65
module ActionDispatch
76
# This middleware serves static files from disk, if available.

activesupport/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
* Remove deprecated `URI.parser`.
2+
3+
*Rafael Mendonça França*
4+
15
* Remove deprecated `config.active_support.use_sha1_digests`.
26

37
*Rafael Mendonça França*
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22

33
Dir.glob(File.expand_path("core_ext/*.rb", __dir__)).sort.each do |path|
4+
next if path.end_with?("core_ext/uri.rb")
45
require path
56
end
Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
# frozen_string_literal: true
22

3-
require "uri"
4-
5-
module URI
6-
class << self
7-
def parser
8-
ActiveSupport::Deprecation.warn(<<-MSG.squish)
9-
URI.parser is deprecated and will be removed in Rails 7.0.
10-
Use `URI::DEFAULT_PARSER` instead.
11-
MSG
12-
URI::DEFAULT_PARSER
13-
end
14-
end
15-
end
3+
ActiveSupport::Deprecation.warn(<<-MSG.squish)
4+
`active_support/core_ext/uri` is deprecated and will be removed in Rails 7.1.
5+
MSG

activesupport/test/core_ext/uri_ext_test.rb

Lines changed: 0 additions & 14 deletions
This file was deleted.

guides/source/7_0_release_notes.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,12 @@ Please refer to the [Changelog][active-support] for detailed changes.
229229

230230
### Removals
231231

232-
### Deprecations
233-
234232
* Remove deprecated `config.active_support.use_sha1_digests`.
235233

234+
* Remove deprecated `URI.parser`.
235+
236+
### Deprecations
237+
236238
### Notable changes
237239

238240
Active Job

0 commit comments

Comments
 (0)