rainbow 1.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Changelog +3 -0
  2. data/lib/rainbow.rb +12 -1
  3. metadata +7 -7
data/Changelog CHANGED
@@ -0,0 +1,3 @@
1
+ 1.0.1
2
+ - added Windows support
3
+
@@ -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: "1.0"
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: 2008-07-21 00:00:00 +02:00
12
+ date: 2009-03-19 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
16
- description: ParseConfig provides simple parsing of standard *nix style config files.
17
- email: sikkill@gmail.com
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://www.5dollarwhitebox.org/
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.2.0
52
+ rubygems_version: 1.3.1
53
53
  signing_key:
54
54
  specification_version: 2
55
- summary: Rainbow provides simple parsing of standard *nix style config files.
55
+ summary: Rainbow extends ruby String class enabling coloring text on ANSI terminals
56
56
  test_files: []
57
57