cowtech-lib 1.9.3.2 → 1.9.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/cowtech-lib.gemspec +2 -2
- data/lib/cowtech-lib/console.rb +8 -4
- data/lib/cowtech-lib/version.rb +2 -2
- metadata +4 -4
data/cowtech-lib.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{cowtech-lib}
|
8
|
-
s.version = "1.9.
|
8
|
+
s.version = "1.9.4.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Shogun"]
|
12
|
-
s.date = %q{2011-03-
|
12
|
+
s.date = %q{2011-03-18}
|
13
13
|
s.description = %q{A general purpose utility library.}
|
14
14
|
s.email = %q{shogun_panda@me.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/cowtech-lib/console.rb
CHANGED
@@ -165,11 +165,15 @@ module Cowtech
|
|
165
165
|
if [:begin, :warn, :error, :debug, :info].include?(args[:type]) then
|
166
166
|
mc = {:begin => "bold green", :warn => "bold yellow", :error => "bold red", :debug => "magenta", :info => "bold cyan"}
|
167
167
|
color = args[:color] || mc[args[:type]]
|
168
|
-
|
168
|
+
|
169
|
+
if args[:full_color] then
|
170
|
+
msg = self.indent("<text style=\"#{color}\">#{msg}</text>")
|
171
|
+
else
|
172
|
+
msg = " <text style=\"#{color}\">*</text> #{self.indent(msg)}"
|
173
|
+
end
|
174
|
+
else # Add dots and indentation if needed
|
175
|
+
msg = self.indent(msg + (args.fetch(:dots, true) ? "..." : ""), args[:indent] ? args[:indent] : @indent_level)
|
169
176
|
end
|
170
|
-
|
171
|
-
# Add dots and indentation if needed
|
172
|
-
msg = self.indent(msg + (args.fetch(:dots, true) ? "..." : ""), args[:indent] ? args[:indent] : @indent_level)
|
173
177
|
|
174
178
|
# Parse the message
|
175
179
|
unless args[:plain] then
|
data/lib/cowtech-lib/version.rb
CHANGED
metadata
CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 9
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 1.9.
|
8
|
+
- 4
|
9
|
+
- 0
|
10
|
+
version: 1.9.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Shogun
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-03-
|
18
|
+
date: 2011-03-18 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|