Sha256: 31093e6cd4516c2e3915d776f5875fd7bbddbd66826e5017b5385c06d1e7e08e

Contents?: true

Size: 575 Bytes

Versions: 7269

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,269 entries across 7,157 versions & 101 rubygems

Version Path
cybrid_api_organization_ruby-0.123.125 vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/trace_output.rb
cybrid_api_id_ruby-0.123.125 vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/trace_output.rb
cybrid_api_bank_ruby-0.123.124 vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/trace_output.rb
cybrid_api_organization_ruby-0.123.124 vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/trace_output.rb
cybrid_api_id_ruby-0.123.124 vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/trace_output.rb
cybrid_api_bank_ruby-0.123.123 vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/trace_output.rb
cybrid_api_id_ruby-0.123.123 vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/trace_output.rb
cybrid_api_organization_ruby-0.123.123 vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/trace_output.rb
cybrid_api_bank_ruby-0.123.122 vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/trace_output.rb
cybrid_api_organization_ruby-0.123.122 vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/trace_output.rb
cybrid_api_id_ruby-0.123.122 vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/trace_output.rb
cybrid_api_bank_ruby-0.123.121 vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/trace_output.rb
cybrid_api_id_ruby-0.123.121 vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/trace_output.rb
cybrid_api_organization_ruby-0.123.121 vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/trace_output.rb
cybrid_api_bank_ruby-0.123.120 vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/trace_output.rb
cybrid_api_organization_ruby-0.123.120 vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/trace_output.rb
cybrid_api_id_ruby-0.123.120 vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/trace_output.rb
avalara_sdk-24.12.0 vendor/bundle/ruby/2.7.0/gems/rake-13.0.6/lib/rake/trace_output.rb
cybrid_api_bank_ruby-0.123.119 vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/trace_output.rb
cybrid_api_organization_ruby-0.123.119 vendor/bundle/ruby/3.3.0/gems/rake-13.0.6/lib/rake/trace_output.rb