Sha256: 4f7e2a3b023032ee7abea5556304ce5269559bb41c70810586d9d522813ac7b3
Contents?: true
Size: 752 Bytes
Versions: 2
Compression:
Stored size: 752 Bytes
Contents
module PivotalTrackerCli class StringUtilities def self.embiggen_string(string) return string if ENV['DISABLE_MARKDOWN'] == 'true' string .gsub(/(\*\*)(.*?)(\*\*)/, "\033[1m" + '\2' "\033[0m") .gsub(/(_)(.*?)(_)/, "\033[4m" + '\2' "\033[0m") end def self.colorize_status(story_state) case story_state when 'rejected' return story_state.red when 'accepted' return story_state.green when 'delivered' return story_state.cyan when 'finished' return story_state.yellow when 'started' return story_state.magenta when 'unstarted' return story_state end story_state end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pivotal_tracker_cli-5.0.1 | lib/string_utilities.rb |
pivotal_tracker_cli-5.0.0 | lib/string_utilities.rb |