mothership 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -72,7 +72,7 @@ module Mothership::Pretty
72
72
  return str unless color
73
73
 
74
74
  code = "\e[#{bright ? 9 : 3}#{COLOR_CODES[color]}m"
75
- "#{code}#{str.gsub("\e[0m", "\e[0m#{code}")}\e[0m"
75
+ "#{code}#{str.to_s.gsub("\e[0m", "\e[0m#{code}")}\e[0m"
76
76
  end
77
77
 
78
78
  # bold text
@@ -80,6 +80,6 @@ module Mothership::Pretty
80
80
  return str unless color?
81
81
 
82
82
  code = "\e[1m"
83
- "#{code}#{str.gsub("\e[0m", "\e[0m#{code}")}\e[0m"
83
+ "#{code}#{str.to_s.gsub("\e[0m", "\e[0m#{code}")}\e[0m"
84
84
  end
85
85
  end
@@ -1,3 +1,3 @@
1
1
  class Mothership
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mothership
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 10
10
- version: 0.0.10
9
+ - 11
10
+ version: 0.0.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Suraci