Skip to content

Commit

Permalink
Version bump, add funding
Browse files Browse the repository at this point in the history
  • Loading branch information
ttscoff committed Apr 16, 2023
1 parent 662fd1f commit 3eb5a91
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: [ttscoff]
custom: ['https://brettterpstra.com/support/', 'https://brettterpstra.com/donate/']
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
doing (2.1.80)
doing (2.1.81)
chronic (~> 0.10, >= 0.10.2)
deep_merge (~> 1.2, >= 1.2.1)
gli (~> 2.20, >= 2.20.1)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ _If you're one of the rare people like me who find this useful, feel free to

<!--README-->

The current version of `doing` is <!--VER-->2.1.79<!--END VER-->.
The current version of `doing` is <!--VER-->2.1.80<!--END VER-->.

Find all of the documentation in the [doing wiki][wiki].

Expand Down
10 changes: 3 additions & 7 deletions lib/doing/colors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -296,19 +296,15 @@ def rgb(hex)
"\e[#{is_bg ? '48' : '38'};2;#{t.join(';')}m"
end

# Regular expression that is used to scan for ANSI-sequences while
# uncoloring strings.
COLORED_REGEXP = /\e\[(?:(?:[349]|10)[0-7]|[0-9])?m/.freeze

# Returns an uncolored version of the string, that is all
# ANSI-sequences are stripped from the string.
def uncolor(string = nil) # :yields:
if block_given?
yield.to_str.gsub(COLORED_REGEXP, '')
yield.to_str.gsub(ESCAPE_REGEX, '')
elsif string.respond_to?(:to_str)
string.to_str.gsub(COLORED_REGEXP, '')
string.to_str.gsub(ESCAPE_REGEX, '')
elsif respond_to?(:to_str)
to_str.gsub(COLORED_REGEXP, '')
to_str.gsub(ESCAPE_REGEX, '')
else
''
end
Expand Down
2 changes: 1 addition & 1 deletion lib/doing/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Doing
VERSION = '2.1.80'
VERSION = '2.1.81'
end

0 comments on commit 3eb5a91

Please sign in to comment.