Sha256: 31093e6cd4516c2e3915d776f5875fd7bbddbd66826e5017b5385c06d1e7e08e

Contents?: true

Size: 575 Bytes

Versions: 7316

Compression:

Stored size: 575 Bytes

Contents

# frozen_string_literal: true
module Rake
  module TraceOutput # :nodoc: all

    # Write trace output to output stream +out+.
    #
    # The write is done as a single IO call (to print) to lessen the
    # chance that the trace output is interrupted by other tasks also
    # producing output.
    def trace_on(out, *strings)
      sep = $\ || "\n"
      if strings.empty?
        output = sep
      else
        output = strings.map { |s|
          next if s.nil?
          s.end_with?(sep) ? s : s + sep
        }.join
      end
      out.print(output)
    end
  end
end

Version data entries

7,316 entries across 7,203 versions & 103 rubygems

Version Path
paynow_sdk-0.1.4 vendor/cache/ruby/2.7.0/gems/paynow_sdk-0.1.0/vendor/cache/ruby/2.7.0/gems/rake-12.3.3/lib/rake/trace_output.rb
paynow_sdk-0.1.4 vendor/cache/ruby/2.7.0/gems/paynow_sdk-0.1.2/vendor/cache/ruby/2.7.0/gems/rake-12.3.3/lib/rake/trace_output.rb
paynow_sdk-0.1.4 vendor/cache/ruby/2.7.0/gems/paynow_sdk-0.1.2/vendor/cache/ruby/2.7.0/gems/paynow_sdk-0.1.0/vendor/cache/ruby/2.7.0/gems/rake-12.3.3/lib/rake/trace_output.rb
logstash-output-scalyr-0.1.5 vendor/bundle/jruby/2.5.0/gems/rake-12.3.2/lib/rake/trace_output.rb
logstash-output-scalyr-0.1.5 vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/trace_output.rb
paynow_sdk-0.1.2 vendor/cache/ruby/2.7.0/gems/paynow_sdk-0.1.0/vendor/cache/ruby/2.7.0/gems/rake-12.3.3/lib/rake/trace_output.rb
paynow_sdk-0.1.2 vendor/cache/ruby/2.7.0/gems/rake-12.3.3/lib/rake/trace_output.rb
paynow_sdk-0.1.1 vendor/cache/ruby/2.7.0/gems/paynow_sdk-0.1.0/vendor/cache/ruby/2.7.0/gems/rake-12.3.3/lib/rake/trace_output.rb
paynow_sdk-0.1.1 vendor/cache/ruby/2.7.0/gems/rake-12.3.3/lib/rake/trace_output.rb
paynow_sdk-0.1.0 vendor/cache/ruby/2.7.0/gems/rake-12.3.3/lib/rake/trace_output.rb
logstash-output-scalyr-0.1.4 vendor/bundle/jruby/2.5.0/gems/rake-12.3.2/lib/rake/trace_output.rb
logstash-output-scalyr-0.1.4 vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/trace_output.rb
logstash-output-scalyr-0.1.3 vendor/bundle/jruby/2.5.0/gems/rake-12.3.2/lib/rake/trace_output.rb
logstash-output-scalyr-0.1.3 vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/trace_output.rb
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/rake-13.0.0/lib/rake/trace_output.rb
tdiary-5.1.2 vendor/bundle/ruby/2.7.0/gems/rake-13.0.1/lib/rake/trace_output.rb
chikari_palindrome-0.1.0 vendor/cache/ruby/2.7.0/gems/rake-12.3.3/lib/rake/trace_output.rb
chikari_palindrome-0.1.0 vendor/cache/ruby/2.7.0/gems/chikari_palindrome-0.1.0/vendor/cache/ruby/2.7.0/gems/rake-12.3.3/lib/rake/trace_output.rb
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/lib/rake/trace_output.rb
logstash-output-scalyr-0.1.2 vendor/bundle/jruby/2.5.0/gems/rake-13.0.1/lib/rake/trace_output.rb