From 69ed64949b0c02d4b195809fa104ff23dd100093 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 4 Jan 2021 10:11:34 +0900 Subject: Track Bundler master(2.3.0.dev) branch at 55634a8af18a52df86c4275d70fa1179118bcc20 --- spec/bundler/support/streams.rb | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 spec/bundler/support/streams.rb (limited to 'spec/bundler/support/streams.rb') diff --git a/spec/bundler/support/streams.rb b/spec/bundler/support/streams.rb deleted file mode 100644 index a947eebf6f..0000000000 --- a/spec/bundler/support/streams.rb +++ /dev/null @@ -1,19 +0,0 @@ -# frozen_string_literal: true - -require "stringio" - -def capture(*args) - opts = args.pop if args.last.is_a?(Hash) - opts ||= {} - - args.map!(&:to_s) - begin - result = StringIO.new - result.close if opts[:closed] - args.each {|stream| eval "$#{stream} = result" } - yield - ensure - args.each {|stream| eval("$#{stream} = #{stream.upcase}") } - end - result.string -end -- cgit v1.2.3