paint 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +7 -9
- data/lib/paint.rb +2 -0
- data/lib/paint/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 135bf13e5c9d57769e3e312c0dd5baa485a42e493b70d1c8a1eda802af1d78b2
|
4
|
+
data.tar.gz: 49651386bc399d9156936fabab7a046e311812a1ab14ecd682ca6d0e61f83caf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28b1dff99750f9625c3d2d40b7521911840192483779fd0b7798fda970e8b6ce1de471e6cc6288d6053bddd9fb81b6a5a999d0d82b5bdb3de53f48dbb7dd9060
|
7
|
+
data.tar.gz: 6e667bd06608d7a2036369b21d73cc712467fb71f6a8c44e133f68b4ebe31b7a21cf3364ba72342e11fbe91a735f63cc7fcb62d825f696fad48643d07b53f6e5
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
Paint creates terminal colors and effects for you. It combines the strengths of **term-ansicolor**, **rainbow**, and similar projects into a simple to use, however still flexible terminal colors gem with no core extensions by default.
|
4
4
|
|
5
|
+
Supported Rubies: **2.7**, **2.6**, **2.5**
|
6
|
+
|
7
|
+
Unsupported, but might still work: **2.4**, **2.3**, **2.2**, **2.1**, **2.0**, **1.9**
|
8
|
+
|
5
9
|
## Features
|
6
10
|
|
7
11
|
* No string extensions (suitable for library development)
|
@@ -23,14 +27,6 @@ Starting with **Paint 2.0**, *true color* mode is the new default mode, since mo
|
|
23
27
|
- Manually set `Paint.mode = 256` at the beginning of your code
|
24
28
|
- Please [open a new issue](https://github.com/janlelis/paint/issues/new) so we can figure out how to blacklist the terminal used
|
25
29
|
|
26
|
-
## Supported Rubies
|
27
|
-
|
28
|
-
* **2.7**, **2.6**, **2.5**, **2.4**
|
29
|
-
|
30
|
-
Unsupported, but might still work:
|
31
|
-
|
32
|
-
* **2.3**, **2.2**, **2.1**, **2.0**, **1.9**
|
33
|
-
|
34
30
|
## Setup
|
35
31
|
|
36
32
|
Add to `Gemfile`:
|
@@ -93,6 +89,8 @@ You can choose between five ways to use `Paint.[]` by setting `Paint.mode` to on
|
|
93
89
|
|
94
90
|
Paint tries to automatically detect the proper value your terminal is capable of, please [open an issue](https://github.com/janlelis/paint/issues/new) if `Paint.detect_mode` yields a wrong value for you.
|
95
91
|
|
92
|
+
`Paint.detect_mode` will return 0 if the [NO_COLOR environment variable is set](https://github.com/jcs/no_color/).
|
93
|
+
|
96
94
|
## More Details About Terminal Colors and Effects
|
97
95
|
|
98
96
|
<img src="https://pbs.twimg.com/media/ENyLvgVXUAgeDTn.jpg" />
|
@@ -186,7 +184,7 @@ pa "Ruby", :red, :underline # same as puts Paint["Ruby", :red, :underline]
|
|
186
184
|
|
187
185
|
## Advanced Usage: Shortcuts
|
188
186
|
|
189
|
-
There is an extension gem available which allows you to define custom color definitions, which you can reuse later. See [SHORTCUTS.md](https://github.com/janlelis/paint/blob/
|
187
|
+
There is an extension gem available which allows you to define custom color definitions, which you can reuse later. See [SHORTCUTS.md](https://github.com/janlelis/paint/blob/main/SHORTCUTS.md) for documentation. This is completely optional.
|
190
188
|
|
191
189
|
## J-_-L
|
192
190
|
|
data/lib/paint.rb
CHANGED
data/lib/paint/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Lelis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
166
|
- !ruby/object:Gem::Version
|
167
167
|
version: '0'
|
168
168
|
requirements: []
|
169
|
-
rubygems_version: 3.
|
169
|
+
rubygems_version: 3.1.2
|
170
170
|
signing_key:
|
171
171
|
specification_version: 4
|
172
172
|
summary: Terminal painter!
|