1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Lazy require stringio

https://github.com/rubygems/rubygems/commit/82f0d4ca69
This commit is contained in:
bronzdoc 2019-05-29 17:34:47 -06:00 committed by Hiroshi SHIBATA
parent 7990d8dc50
commit 6c5170634a
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,4 @@
# frozen_string_literal: true
require 'stringio'
require 'rubygems/user_interaction'
##
@ -46,6 +45,7 @@ class Gem::MockGemUi < Gem::StreamUI
end
def initialize(input = "")
require 'stringio'
ins = StringIO.new input
outs = StringIO.new
errs = StringIO.new

View file

@ -14,7 +14,6 @@ require 'rubygems/basic_specification'
require 'rubygems/stub_specification'
require 'rubygems/specification_policy'
require 'rubygems/util/list'
require 'stringio'
##
# The Specification class contains the information for a gem. Typically
@ -2535,6 +2534,7 @@ class Gem::Specification < Gem::BasicSpecification
builder << self
ast = builder.tree
require 'stringio'
io = StringIO.new
io.set_encoding Encoding::UTF_8