colorize 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG +3 -0
- data/colorize.gemspec +2 -1
- data/lib/colorized_string.rb +19 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f9aa60a1408f5b8cf800bd6d48d0778d6306fdd
|
4
|
+
data.tar.gz: f08adfa6e15d4bc0eb1f553451d96ecf69070c11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d49b0c6362a92b525c7d1fdb0209f6fbfdfc61f720190d75f5ceef96338faa98358ce70e94bfe0a7a86f33f6036ae19e6ca9ce29dbbcfd59b3e2a3ee52d8a72
|
7
|
+
data.tar.gz: 674694aef0a11430782f9d888b0b39a3365a8730144d0be759151977fd3b30b2a6c2041d8699438d2fbbfe5db57733bc4a018f6a6344a1f3a4cd590d47bf274c
|
data/CHANGELOG
CHANGED
data/colorize.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'colorize'
|
3
|
-
s.version = '0.8.
|
3
|
+
s.version = '0.8.1'
|
4
4
|
|
5
5
|
s.authors = ['Michał Kalbarczyk']
|
6
6
|
s.email = 'fazibear@gmail.com'
|
@@ -25,6 +25,7 @@ Gem::Specification.new do |s|
|
|
25
25
|
'Rakefile',
|
26
26
|
'colorize.gemspec',
|
27
27
|
'lib/colorize.rb',
|
28
|
+
'lib/colorized_string.rb',
|
28
29
|
'lib/colorize/class_methods.rb',
|
29
30
|
'lib/colorize/instance_methods.rb',
|
30
31
|
'test/test_colorize.rb',
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require File.expand_path('colorize/class_methods', File.dirname(__FILE__))
|
2
|
+
require File.expand_path('colorize/instance_methods', File.dirname(__FILE__))
|
3
|
+
#
|
4
|
+
# ColorizedString class extension.
|
5
|
+
#
|
6
|
+
class ColorizedString < String
|
7
|
+
extend Colorize::ClassMethods
|
8
|
+
include Colorize::InstanceMethods
|
9
|
+
|
10
|
+
color_methods
|
11
|
+
modes_methods
|
12
|
+
|
13
|
+
#
|
14
|
+
# Sortcut to create ColorizedString with ColorizedString['test'].
|
15
|
+
#
|
16
|
+
def self.[](string)
|
17
|
+
ColorizedString.new(string)
|
18
|
+
end
|
19
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: colorize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michał Kalbarczyk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -67,6 +67,7 @@ files:
|
|
67
67
|
- lib/colorize.rb
|
68
68
|
- lib/colorize/class_methods.rb
|
69
69
|
- lib/colorize/instance_methods.rb
|
70
|
+
- lib/colorized_string.rb
|
70
71
|
- test/test_colorize.rb
|
71
72
|
homepage: http://github.com/fazibear/colorize
|
72
73
|
licenses:
|