rainbow 1.99.0 → 1.99.1

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog DELETED
@@ -1,3 +0,0 @@
1
- 1.0.1
2
- - added Windows support
3
-
data/lib/rainbow/core.rb DELETED
@@ -1,16 +0,0 @@
1
- module Rainbow
2
-
3
- class << self; attr_accessor :enabled; end
4
- @enabled = true
5
-
6
- TERM_EFFECTS = {
7
- :reset => 0,
8
- :bright => 1,
9
- :italic => 3,
10
- :underline => 4,
11
- :blink => 5,
12
- :inverse => 7,
13
- :hide => 8,
14
- }
15
-
16
- end
@@ -1,50 +0,0 @@
1
- require 'rainbow'
2
-
3
- module Rainbow
4
- module String
5
- module InstanceMethods
6
-
7
- def foreground(*color)
8
- Rainbow(self).foreground(*color)
9
- end
10
-
11
- alias_method :color, :foreground
12
- alias_method :colour, :foreground
13
-
14
- def background(*color)
15
- Rainbow(self).background(*color)
16
- end
17
-
18
- def reset
19
- Rainbow(self).reset
20
- end
21
-
22
- def bright
23
- Rainbow(self).bright
24
- end
25
-
26
- def italic
27
- Rainbow(self).italic
28
- end
29
-
30
- def underline
31
- Rainbow(self).underline
32
- end
33
-
34
- def blink
35
- Rainbow(self).blink
36
- end
37
-
38
- def inverse
39
- Rainbow(self).inverse
40
- end
41
-
42
- def hide
43
- Rainbow(self).hide
44
- end
45
-
46
- end
47
- end
48
- end
49
-
50
- ::String.send(:include, Rainbow::String::InstanceMethods)