Sha256: 380802cc2660b54cc6a14d0f527f643e31e63785ef5075d17b41ed02f549fd64
Contents?: true
Size: 660 Bytes
Versions: 2
Compression:
Stored size: 660 Bytes
Contents
# frozen_string_literal: true class Thor # Fix for https://github.com/erikhuda/thor/issues/398 # Copied from https://github.com/rails/thor/issues/398#issuecomment-622988390 module Shell class Basic def print_wrapped(message, options = {}) indent = (options[:indent] || 0).to_i if indent.zero? stdout.puts(message) else message.each_line do |message_line| stdout.print(" " * indent) stdout.puts(message_line.chomp) end end end end end # Fix for https://github.com/rails/thor/issues/742 def self.basename @package_name || super end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cpflow-4.0.1 | lib/patches/thor.rb |
cpflow-4.0.0 | lib/patches/thor.rb |