epitools 0.4.23 → 0.4.24
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/VERSION +1 -1
- data/epitools.gemspec +2 -2
- data/lib/epitools/colored.rb +3 -3
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.24
|
data/epitools.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{epitools}
|
|
8
|
-
s.version = "0.4.
|
|
8
|
+
s.version = "0.4.24"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["epitron"]
|
|
12
|
-
s.date = %q{2011-04-
|
|
12
|
+
s.date = %q{2011-04-14}
|
|
13
13
|
s.description = %q{Miscellaneous utility libraries to make my life easier.}
|
|
14
14
|
s.email = %q{chris@ill-logic.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/epitools/colored.rb
CHANGED
|
@@ -130,7 +130,7 @@ module Colored
|
|
|
130
130
|
#
|
|
131
131
|
def colorize(string=nil, options = {})
|
|
132
132
|
if string == nil
|
|
133
|
-
return tagged_colors
|
|
133
|
+
return self.tagged_colors
|
|
134
134
|
end
|
|
135
135
|
|
|
136
136
|
if @@is_tty
|
|
@@ -226,11 +226,11 @@ module Colored
|
|
|
226
226
|
# Numeric ANSI colors (from the BBS days):
|
|
227
227
|
# puts "<10><5>*</5> Hey mom! I am <9>SO</9> colored right now.</10>".colorize
|
|
228
228
|
#
|
|
229
|
-
def tagged_colors
|
|
229
|
+
def tagged_colors
|
|
230
230
|
stack = []
|
|
231
231
|
|
|
232
232
|
# split the string into tags and literal strings
|
|
233
|
-
tokens =
|
|
233
|
+
tokens = self.split(/(<\/?[\w\d_]+>)/)
|
|
234
234
|
tokens.delete_if { |token| token.size == 0 }
|
|
235
235
|
|
|
236
236
|
result = ""
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: epitools
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.4.
|
|
5
|
+
version: 0.4.24
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- epitron
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2011-04-
|
|
13
|
+
date: 2011-04-14 00:00:00 -04:00
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|