color_echo 2.0.1 → 2.0.3
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/README.ja.md +4 -1
- data/README.md +4 -1
- data/lib/color_echo/const.rb +1 -1
- data/lib/color_echo/variables.rb +5 -1
- metadata +5 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 58e0037526cf57cfa9bfa3fde2b789276cb78edd
|
|
4
|
+
data.tar.gz: 2a6edcb208fb84cf4b4d49d4de084ba9d5a03499
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e178e1ce1af103c889864e931460a6a4dc78cf303b33f73fa690767d6738ba42ec77c6f201cf46d127a70c9079e962e8ff59da02e0a1143356d523c3df926999
|
|
7
|
+
data.tar.gz: d09171fd372ccb2b0a1450e8772def1ae97cfc16734157d56d2c89d2d8a4b12eb037b780d2fc413e7d8813bf6a5533184f88f315aeae738862da09f59fe868ca
|
data/README.ja.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# color_echo
|
|
2
2
|
color_echo はコマンドライン出力に色をつけるライブラリです。
|
|
3
3
|
|
|
4
|
-
Version: 2.0.
|
|
4
|
+
Version: 2.0.2
|
|
5
5
|
Compliant Rubys Version: 2.0.0, 2.1.0 (for Linux)
|
|
6
6
|
License: MIT
|
|
7
7
|
Gems repository: http://rubygems.org/gems/color_echo
|
|
@@ -331,6 +331,9 @@ puts "Disable rainbow mode."
|
|
|
331
331
|

|
|
332
332
|
|
|
333
333
|
## Release Note
|
|
334
|
+
* v2.0.1, 2016-01-06
|
|
335
|
+
* Fixed problem as below; https://github.com/khotta/color_echo/issues/1
|
|
336
|
+
|
|
334
337
|
* v2.0.1, 2015-08-21
|
|
335
338
|
* コマンドラインインターフェースで複数行の入力を与えられたときマッチした行のハイライトが正しくつかない問題を修正しました。
|
|
336
339
|
|
data/README.md
CHANGED
|
@@ -3,7 +3,7 @@ Decorate the command line output with ANSI escape sequence.
|
|
|
3
3
|
Text that output by "print, puts, p" method is decorated.
|
|
4
4
|
It is also can to decorate only your specified words!
|
|
5
5
|
|
|
6
|
-
Version: 2.0.
|
|
6
|
+
Version: 2.0.2
|
|
7
7
|
Compliant Rubys Version: 2.0.0, 2.1.0 (for Linux)
|
|
8
8
|
License: MIT
|
|
9
9
|
Gems repository: http://rubygems.org/gems/color_echo
|
|
@@ -332,6 +332,9 @@ puts "Disable rainbow mode."
|
|
|
332
332
|

|
|
333
333
|
|
|
334
334
|
## Release Note
|
|
335
|
+
* v2.0.2, 2016-01-06
|
|
336
|
+
* Fixed problem as below; https://github.com/khotta/color_echo/issues/1
|
|
337
|
+
|
|
335
338
|
* v2.0.1, 2015-08-21
|
|
336
339
|
* Fixed bug that highlight of line is incorrect in commandline interface.
|
|
337
340
|
|
data/lib/color_echo/const.rb
CHANGED
data/lib/color_echo/variables.rb
CHANGED
|
@@ -30,7 +30,11 @@ module CE
|
|
|
30
30
|
$stdout = strio
|
|
31
31
|
|
|
32
32
|
# call original method
|
|
33
|
-
|
|
33
|
+
if RUBY_VERSION >= "2.3.0"
|
|
34
|
+
eval("@@#{caller_locations(1).first.label}").call(*arg)
|
|
35
|
+
else
|
|
36
|
+
eval("@@#{caller_locations(2).first.label}").call(*arg)
|
|
37
|
+
end
|
|
34
38
|
|
|
35
39
|
# change output destination to STDOUT
|
|
36
40
|
$stdout = STDOUT
|
metadata
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: color_echo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- khotta
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-01-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: |
|
|
14
14
|
Decorate the command line output with ANSI escape sequence.
|
|
15
15
|
Text that output by "print, puts, p" method is decorated.
|
|
16
16
|
It is also can to decorate only your specified words!
|
|
17
|
-
email:
|
|
17
|
+
email:
|
|
18
|
+
- khotta116@gmail.com
|
|
18
19
|
executables:
|
|
19
20
|
- color_echo
|
|
20
21
|
- colorecho
|
|
@@ -62,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
62
63
|
version: '0'
|
|
63
64
|
requirements: []
|
|
64
65
|
rubyforge_project:
|
|
65
|
-
rubygems_version: 2.
|
|
66
|
+
rubygems_version: 2.4.5.1
|
|
66
67
|
signing_key:
|
|
67
68
|
specification_version: 4
|
|
68
69
|
summary: Decorate the command line output with ANSI escape sequence.
|