cowtech-lib 1.9.3.2 → 1.9.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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.3.1"
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-14}
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 = [
@@ -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
- msg = !args[:full_color] ? "<text style=\"#{color}\">*</text> #{self.indent(msg)}" : "<text style=\"#{color}\">* #{self.indent(msg)}</text>"
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
@@ -3,8 +3,8 @@ module Cowtech
3
3
  module Version
4
4
  MAJOR = 1
5
5
  MINOR = 9
6
- PATCH = 3
7
- BUILD = 2
6
+ PATCH = 4
7
+ BUILD = 0
8
8
 
9
9
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
10
10
  end
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 9
8
- - 3
9
- - 2
10
- version: 1.9.3.2
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-16 00:00:00 +01:00
18
+ date: 2011-03-18 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency