paint 2.2.0 → 2.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b19418972079839bcc3e55e11a4b3ab4798a3204d5464a5320561abc71d59473
4
- data.tar.gz: 78b8850244aa21f9216c7619d2116d2b90777d5a197b46b4651fb7dcfc073726
3
+ metadata.gz: 135bf13e5c9d57769e3e312c0dd5baa485a42e493b70d1c8a1eda802af1d78b2
4
+ data.tar.gz: 49651386bc399d9156936fabab7a046e311812a1ab14ecd682ca6d0e61f83caf
5
5
  SHA512:
6
- metadata.gz: 305dd27df908223ad9d254f8d61529be6d3736d2b3f8ab7c363e6808c5e2601c374b7b4b6e67d09c5524583c1175bb9b458cafe6ffde9dd5d4304bb34a68c25d
7
- data.tar.gz: 91c2a0f4d983da15e7e76fec94ecd6d48d86595cf3b4f3569f3de97b27ae89efce561e9be1757dba4849e1d43e9a1c874b734097679e459d740568177f9ddb13
6
+ metadata.gz: 28b1dff99750f9625c3d2d40b7521911840192483779fd0b7798fda970e8b6ce1de471e6cc6288d6053bddd9fb81b6a5a999d0d82b5bdb3de53f48dbb7dd9060
7
+ data.tar.gz: 6e667bd06608d7a2036369b21d73cc712467fb71f6a8c44e133f68b4ebe31b7a21cf3364ba72342e11fbe91a735f63cc7fcb62d825f696fad48643d07b53f6e5
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ### 2.2.1
4
+
5
+ * Explicitly set mac's Terminal.app to 256 colors only, fixes #28
6
+
3
7
  ### 2.2.0
4
8
 
5
9
  * Support NO_COLOR environment variable, implements #26 (see no-color.org)
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/master/SHORTCUTS.md) for documentation. This is completely optional.
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
 
@@ -182,6 +182,8 @@ module Paint
182
182
  else
183
183
  0
184
184
  end
185
+ elsif ENV['TERM_PROGRAM'] == 'Apple_Terminal'
186
+ 256
185
187
  else
186
188
  case ENV['TERM']
187
189
  when /^rxvt-(?:.*)-256color$/
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paint
4
- VERSION = "2.2.0"
4
+ VERSION = "2.2.1"
5
5
  end
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.0
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-02-21 00:00:00.000000000 Z
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.0.6
169
+ rubygems_version: 3.1.2
170
170
  signing_key:
171
171
  specification_version: 4
172
172
  summary: Terminal painter!