Skip to content

Commit ea8b346

Browse files
committed
Suppress warning from net/http.rb in ruby 3.1
When `-F` option is given to strip comments in bundled_gems file, `$;` is set to the regexp. On the other hand, old net/http.rb contained old CVS keyword expansion that is `split` with the default separator, and non-nil `$;` causes a warning. ```ruby Revision = %q$Revision$.split[1] ```
1 parent d2cea4b commit ea8b346

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tool/downloader.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
require 'fileutils'
77
require 'open-uri'
88
require 'pathname'
9+
verbose, $VERBOSE = $VERBOSE, nil
910
require 'net/https'
11+
$VERBOSE = verbose
1012

1113
class Downloader
1214
def self.find(dlname)

0 commit comments

Comments
 (0)