consolor 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +15 -0
  2. data/lib/consolor.rb +20 -0
  3. metadata +45 -0
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NjBiZTRlYjNiYjNkZWM4NTQ2ZDdjZTgyZjllNDRkMjVmYzZmMDZhNg==
5
+ data.tar.gz: !binary |-
6
+ YjhhZjhlNTE0ZDI3ODc3OWZjOWZkMDZjNWMyYTI0MmM2M2U0NGFhZA==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ ZGQ2MTQ0NWZmMGY3ZWYyMmMyY2E2YTljMTBkY2NjOTNjNjVmZDU5Njc1NDg2
10
+ MjAyZTZiMjZmOTVmNDM2NzgyNjkyYWVmODNiMjI4M2FiZjI0YzlmMGEyODc5
11
+ Yzg2MTZlNzM0MWRhNDA2ZDgyNDA4YjllODFjZjFlMzRhODBkYTk=
12
+ data.tar.gz: !binary |-
13
+ Yzk3MWRlNTIyZTlhNzMxNGM5OTYyNjMxZjMxMDJkMjViMGI3N2M5ZGM1MWJi
14
+ ZGE4NjcxMGEzYWU2NWY5NDMzN2FmNmRkN2U3MjhlOWM2NzUzMDkyMmFhZDBi
15
+ MTBlMzYxOTRiYjYyZDk1YTIzY2JiZjc2YTJiZmMxOTAxMTM3NzY=
@@ -0,0 +1,20 @@
1
+ class String
2
+ def black; "\033[30m#{self}\033[0m" end
3
+ def red; "\033[31m#{self}\033[0m" end
4
+ def green; "\033[32m#{self}\033[0m" end
5
+ def brown; "\033[33m#{self}\033[0m" end
6
+ def blue; "\033[34m#{self}\033[0m" end
7
+ def magenta; "\033[35m#{self}\033[0m" end
8
+ def cyan; "\033[36m#{self}\033[0m" end
9
+ def gray; "\033[37m#{self}\033[0m" end
10
+ def bg_black; "\033[40m#{self}\0330m" end
11
+ def bg_red; "\033[41m#{self}\033[0m" end
12
+ def bg_green; "\033[42m#{self}\033[0m" end
13
+ def bg_brown; "\033[43m#{self}\033[0m" end
14
+ def bg_blue; "\033[44m#{self}\033[0m" end
15
+ def bg_magenta; "\033[45m#{self}\033[0m" end
16
+ def bg_cyan; "\033[46m#{self}\033[0m" end
17
+ def bg_gray; "\033[47m#{self}\033[0m" end
18
+ def bold; "\033[1m#{self}\033[22m" end
19
+ def reverse_color; "\033[7m#{self}\033[27m" end
20
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: consolor
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Mehrdad Abdi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-08-26 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A set of functions for coloring string in console
14
+ email: newmrd@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/consolor.rb
20
+ homepage: https://github.com/mabdi/consolor
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.0.7
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: Console colorizing
44
+ test_files: []
45
+ has_rdoc: