rainbow 1.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog +3 -0
- data/lib/rainbow.rb +12 -1
- metadata +7 -7
data/Changelog
CHANGED
data/lib/rainbow.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
module Sickill
|
3
2
|
module Rainbow
|
4
3
|
|
@@ -93,4 +92,16 @@ module Sickill
|
|
93
92
|
end
|
94
93
|
end
|
95
94
|
|
95
|
+
begin
|
96
|
+
require 'Win32/Console/ANSI' if PLATFORM =~ /win32/
|
97
|
+
rescue LoadError
|
98
|
+
# raise 'You must gem install win32console to use color on Windows'
|
99
|
+
module Sickill::Rainbow
|
100
|
+
protected
|
101
|
+
def wrap_with_code(code)
|
102
|
+
self
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
96
107
|
String.send(:include, Sickill::Rainbow)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rainbow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marcin Kulik
|
@@ -9,12 +9,12 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-03-19 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
16
|
-
description:
|
17
|
-
email:
|
16
|
+
description:
|
17
|
+
email: marcin.kulik@gmail.com
|
18
18
|
executables: []
|
19
19
|
|
20
20
|
extensions: []
|
@@ -28,7 +28,7 @@ files:
|
|
28
28
|
- lib/rainbow.rb
|
29
29
|
- test/rainbow_test.rb
|
30
30
|
has_rdoc: true
|
31
|
-
homepage: http://
|
31
|
+
homepage: http://sickill.net
|
32
32
|
post_install_message:
|
33
33
|
rdoc_options: []
|
34
34
|
|
@@ -49,9 +49,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
49
49
|
requirements: []
|
50
50
|
|
51
51
|
rubyforge_project: rainbow
|
52
|
-
rubygems_version: 1.
|
52
|
+
rubygems_version: 1.3.1
|
53
53
|
signing_key:
|
54
54
|
specification_version: 2
|
55
|
-
summary: Rainbow
|
55
|
+
summary: Rainbow extends ruby String class enabling coloring text on ANSI terminals
|
56
56
|
test_files: []
|
57
57
|
|