Skip to content
Permalink
Browse files

[rubygems/rubygems] Lazy require stringio

  • Loading branch information...
bronzdoc authored and hsbt committed May 29, 2019
1 parent 7990d8d commit 6c5170634af21ff90c2d80604ae5c2808a597a9e
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/rubygems/mock_gem_ui.rb
  2. +1 −1 lib/rubygems/specification.rb
@@ -1,5 +1,4 @@
# frozen_string_literal: true
require 'stringio'
require 'rubygems/user_interaction'

##
@@ -46,6 +45,7 @@ def noecho
end

def initialize(input = "")
require 'stringio'
ins = StringIO.new input
outs = StringIO.new
errs = StringIO.new
@@ -14,7 +14,6 @@
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 @@ def to_yaml(opts = {}) # :nodoc:
builder << self
ast = builder.tree

require 'stringio'
io = StringIO.new
io.set_encoding Encoding::UTF_8

0 comments on commit 6c51706

Please sign in to comment.
You can’t perform that action at this time.