console-colors 0.0.1.beta → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +2 -0
- data/README.md +18 -4
- data/console-colors.gemspec +1 -1
- data/lib/console-colors.rb +4 -2
- data/lib/console-colors/version.rb +2 -3
- metadata +8 -11
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZTYxYWRjYTI4ODZjOTAyYWNkNmM5ZGYzZWIzNjBkOGI3ODNjZTkxOA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MDg2ZWZiZWNjZDAwNzBlNWUyMmMzZmU5ODFhZDE0YzJmNzNlZDliMQ==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MmFlNTc0NWI3NDZjNTg1YjJiY2QyY2NiNTBhYzhmZmM1ZWJhY2Q2MTZmZDAy
|
10
|
+
YzA4M2YyZTA5OTI5MzM3MGM3ZTA1OWM3YzM1OTAzZDlhMTYxYWUwMzM2Nzg5
|
11
|
+
NThjMjNjNDc3ZjY1OTIzYzMyNzAzYjhiMmU3MGY2MDI1YjZkZGI=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MzA3NTQ5MmU3M2Y4MzViOTRiMDc4MzRjMTVmZGJlNGUyNjVlZGY1ZDM4NDY3
|
14
|
+
ZjczZTFjNGEyMjcyZjgwNWNkYzZkODllNjBkNzAxYTA3NTE4NGI2MmYzNDU1
|
15
|
+
Njc0NjI0MzYyMTQ1NGU2YTVhZDdhODA1M2YwYWZkOWM1NzYyMzY=
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# Console::Colors
|
2
2
|
|
3
|
-
|
3
|
+
Color string output in console
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
|
-
gem 'console-colors'
|
9
|
+
gem 'console-colors', '~> 0.0.1.beta'
|
10
10
|
|
11
11
|
And then execute:
|
12
12
|
|
@@ -18,9 +18,23 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
22
|
-
puts "#{'this colorize in red color'.red} and #{'this is blue'.blue}'
|
21
|
+
require 'console-colors'
|
23
22
|
|
23
|
+
puts "red text".red
|
24
|
+
puts "#{'this colorize in a red color'.red} and #{'this is a blue'.blue}'
|
25
|
+
## Colors
|
26
|
+
|
27
|
+
p "This is a red colour".red
|
28
|
+
p "This is a green colour".green
|
29
|
+
p "This is a blue colour".blue
|
30
|
+
p "This is a dark red colour".dark_red
|
31
|
+
p "This is a dark green colour".dark_green
|
32
|
+
p "This is a dark blue colour".dark_blue
|
33
|
+
p "This is a turquoise colour".turquoise
|
34
|
+
p "This is a white colour".white
|
35
|
+
p "This is a blink style".blink
|
36
|
+
p "This is a underline style".underline
|
37
|
+
|
24
38
|
## Contributing
|
25
39
|
|
26
40
|
1. Fork it
|
data/console-colors.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
|
|
6
6
|
gem.email = ["avastor.developer@gmail.com"]
|
7
7
|
gem.description = %q{color string output in console}
|
8
8
|
gem.summary = %q{color string output in console}
|
9
|
-
gem.homepage = "
|
9
|
+
gem.homepage = "https://github.com/avastor/console-colors"
|
10
10
|
|
11
11
|
gem.files = `git ls-files`.split($\)
|
12
12
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
data/lib/console-colors.rb
CHANGED
@@ -8,11 +8,13 @@ module Console
|
|
8
8
|
blue: "\e[1m\e[36m",
|
9
9
|
dark_red: "\e[31m",
|
10
10
|
dark_green: "\e[32m",
|
11
|
+
yellow: "\e[33m",
|
11
12
|
dark_blue: "\e[34m",
|
13
|
+
pink: "\e[35m",
|
12
14
|
turquoise: "\e[36m",
|
13
15
|
white: "\e[37m",
|
14
16
|
blink: "\e[5m",
|
15
|
-
underline: "\e[4m"
|
17
|
+
underline: "\e[4m",
|
16
18
|
}
|
17
19
|
class << self
|
18
20
|
def ansi_color(text, code)
|
@@ -28,4 +30,4 @@ class String
|
|
28
30
|
Console::Colors.send(:ansi_color, self, v)
|
29
31
|
end
|
30
32
|
end
|
31
|
-
end
|
33
|
+
end
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: console-colors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease: 6
|
4
|
+
version: 0.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Michail Krainik
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-05-15 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: color string output in console
|
15
14
|
email:
|
@@ -26,29 +25,27 @@ files:
|
|
26
25
|
- console-colors.gemspec
|
27
26
|
- lib/console-colors.rb
|
28
27
|
- lib/console-colors/version.rb
|
29
|
-
homepage:
|
28
|
+
homepage: https://github.com/avastor/console-colors
|
30
29
|
licenses: []
|
30
|
+
metadata: {}
|
31
31
|
post_install_message:
|
32
32
|
rdoc_options: []
|
33
33
|
require_paths:
|
34
34
|
- lib
|
35
35
|
required_ruby_version: !ruby/object:Gem::Requirement
|
36
|
-
none: false
|
37
36
|
requirements:
|
38
37
|
- - ! '>='
|
39
38
|
- !ruby/object:Gem::Version
|
40
39
|
version: '0'
|
41
40
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
41
|
requirements:
|
44
|
-
- - ! '
|
42
|
+
- - ! '>='
|
45
43
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
44
|
+
version: '0'
|
47
45
|
requirements: []
|
48
46
|
rubyforge_project:
|
49
|
-
rubygems_version:
|
47
|
+
rubygems_version: 2.0.3
|
50
48
|
signing_key:
|
51
|
-
specification_version:
|
49
|
+
specification_version: 4
|
52
50
|
summary: color string output in console
|
53
51
|
test_files: []
|
54
|
-
has_rdoc:
|