mothership 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mothership/pretty.rb +9 -3
- data/lib/mothership/version.rb +1 -1
- metadata +4 -4
data/lib/mothership/pretty.rb
CHANGED
@@ -33,9 +33,7 @@ module Mothership::Pretty
|
|
33
33
|
:number => :green,
|
34
34
|
:prompt => :blue,
|
35
35
|
:yes => :green,
|
36
|
-
:no => :red
|
37
|
-
:dim => :black,
|
38
|
-
:default => :black
|
36
|
+
:no => :red
|
39
37
|
}
|
40
38
|
|
41
39
|
private
|
@@ -82,4 +80,12 @@ module Mothership::Pretty
|
|
82
80
|
code = "\e[1m"
|
83
81
|
"#{code}#{str.to_s.gsub("\e[0m", "\e[0m#{code}")}\e[0m"
|
84
82
|
end
|
83
|
+
|
84
|
+
# dim text
|
85
|
+
def d(str)
|
86
|
+
return str unless color?
|
87
|
+
|
88
|
+
code = "\e[2m"
|
89
|
+
"#{code}#{str.to_s.gsub("\e[0m", "\e[0m#{code}")}\e[0m"
|
90
|
+
end
|
85
91
|
end
|
data/lib/mothership/version.rb
CHANGED
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:
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 12
|
10
|
+
version: 0.0.12
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alex Suraci
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-07-
|
18
|
+
date: 2012-07-26 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rake
|