paint 2.1.1 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/codeql-analysis.yml +68 -0
- data/.github/workflows/test.yml +50 -0
- data/CHANGELOG.md +21 -0
- data/MIT-LICENSE.txt +1 -1
- data/README.md +16 -14
- data/Rakefile +6 -1
- data/lib/paint/constants.rb +3 -1
- data/lib/paint/pa.rb +2 -0
- data/lib/paint/rgb_colors.rb +2 -0
- data/lib/paint/util.rb +2 -0
- data/lib/paint/version.rb +1 -1
- data/lib/paint.rb +11 -3
- data/paint.gemspec +8 -11
- metadata +17 -84
- data/.travis.yml +0 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7658c217a56bead27d98cc354dc18b2ab31a9f0344d11982785b9a21916b042b
|
4
|
+
data.tar.gz: 5c94832fd5eae488e54c1bd010247d7d6c65a8b673982783c8bc95207f23d7ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a685f6489ea93f5c75bff1a529c3539fef1e6285ad65c2e2fff2a08ec974eb07c70ca1f4c20cc3e5d9e32fcca89d8cf1cd309c02bbcfd4d4e5a77975b479daf
|
7
|
+
data.tar.gz: 7d91307247aff2335d72f60e71ec00dcf00db66d3bfd2bd26124ddc0bc9387f3b4c2e96aa6cbabafde63dc46de3193b831b020f4e8a4ec88e7e574a2129912c7
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# For most projects, this workflow file will not need changing; you simply need
|
2
|
+
# to commit it to your repository.
|
3
|
+
#
|
4
|
+
# You may wish to alter this file to override the set of languages analyzed,
|
5
|
+
# or to provide custom queries or build logic.
|
6
|
+
#
|
7
|
+
# ******** NOTE ********
|
8
|
+
# We have attempted to detect the languages in your repository. Please check
|
9
|
+
# the `language` matrix defined below to confirm you have the correct set of
|
10
|
+
# supported CodeQL languages.
|
11
|
+
#
|
12
|
+
name: "CodeQL"
|
13
|
+
|
14
|
+
on:
|
15
|
+
push:
|
16
|
+
branches: [ main ]
|
17
|
+
pull_request:
|
18
|
+
# The branches below must be a subset of the branches above
|
19
|
+
branches: [ main ]
|
20
|
+
|
21
|
+
jobs:
|
22
|
+
analyze:
|
23
|
+
name: Analyze
|
24
|
+
runs-on: ubuntu-latest
|
25
|
+
permissions:
|
26
|
+
actions: read
|
27
|
+
contents: read
|
28
|
+
security-events: write
|
29
|
+
|
30
|
+
strategy:
|
31
|
+
fail-fast: false
|
32
|
+
matrix:
|
33
|
+
language: [ 'ruby' ]
|
34
|
+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
|
35
|
+
# Learn more about CodeQL language support at https://git.io/codeql-language-support
|
36
|
+
|
37
|
+
steps:
|
38
|
+
- name: Checkout repository
|
39
|
+
uses: actions/checkout@v2
|
40
|
+
|
41
|
+
# Initializes the CodeQL tools for scanning.
|
42
|
+
- name: Initialize CodeQL
|
43
|
+
uses: github/codeql-action/init@v1
|
44
|
+
with:
|
45
|
+
languages: ${{ matrix.language }}
|
46
|
+
# If you wish to specify custom queries, you can do so here or in a config file.
|
47
|
+
# By default, queries listed here will override any specified in a config file.
|
48
|
+
# Prefix the list here with "+" to use these queries and those in the config file.
|
49
|
+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
|
50
|
+
|
51
|
+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
52
|
+
# If this step fails, then you should remove it and run the build manually (see below)
|
53
|
+
- name: Autobuild
|
54
|
+
uses: github/codeql-action/autobuild@v1
|
55
|
+
|
56
|
+
# ℹ️ Command-line programs to run using the OS shell.
|
57
|
+
# 📚 https://git.io/JvXDl
|
58
|
+
|
59
|
+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
|
60
|
+
# and modify them (or add more) to build your code if your project
|
61
|
+
# uses a compiled language
|
62
|
+
|
63
|
+
#- run: |
|
64
|
+
# make bootstrap
|
65
|
+
# make release
|
66
|
+
|
67
|
+
- name: Perform CodeQL Analysis
|
68
|
+
uses: github/codeql-action/analyze@v1
|
@@ -0,0 +1,50 @@
|
|
1
|
+
name: Test
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
test:
|
7
|
+
name: Ruby ${{ matrix.ruby }} (${{ matrix.os }})
|
8
|
+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
9
|
+
strategy:
|
10
|
+
matrix:
|
11
|
+
ruby:
|
12
|
+
- 3.1
|
13
|
+
- 3.0
|
14
|
+
- 2.7
|
15
|
+
- jruby-9.3.6.0
|
16
|
+
- truffleruby-22.1.0
|
17
|
+
os:
|
18
|
+
- ubuntu-latest
|
19
|
+
- macos-latest
|
20
|
+
runs-on: ${{matrix.os}}
|
21
|
+
steps:
|
22
|
+
- uses: actions/checkout@v2
|
23
|
+
- name: Set up Ruby
|
24
|
+
uses: ruby/setup-ruby@v1
|
25
|
+
with:
|
26
|
+
ruby-version: ${{matrix.ruby}}
|
27
|
+
bundler-cache: true
|
28
|
+
- name: Run tests
|
29
|
+
run: bundle exec rake
|
30
|
+
|
31
|
+
test-windows:
|
32
|
+
name: Ruby ${{ matrix.ruby }} (windows-latest)
|
33
|
+
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
34
|
+
strategy:
|
35
|
+
matrix:
|
36
|
+
ruby:
|
37
|
+
- 3.1
|
38
|
+
- 3.0
|
39
|
+
- 2.7
|
40
|
+
runs-on: windows-latest
|
41
|
+
steps:
|
42
|
+
- uses: actions/checkout@v2
|
43
|
+
- name: Set up Ruby
|
44
|
+
uses: ruby/setup-ruby@v1
|
45
|
+
with:
|
46
|
+
ruby-version: ${{matrix.ruby}}
|
47
|
+
bundler-cache: true
|
48
|
+
- run: cinst ansicon
|
49
|
+
- name: Run tests
|
50
|
+
run: bundle exec rake
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
### 2.3.0
|
4
|
+
|
5
|
+
#### Paint.%() now returns different escape sequences!
|
6
|
+
|
7
|
+
* Fix #30: Color/effect nesting restores the parent level correctly. More
|
8
|
+
verbose ASCII escape sequences are generated to ensure this.
|
9
|
+
|
10
|
+
#### Other Fixes
|
11
|
+
|
12
|
+
* Fix #31: Make paint work with frozen strings enabled
|
13
|
+
* Also make paint library itself frozen
|
14
|
+
* Fix #29: Update dev dependencies
|
15
|
+
|
16
|
+
### 2.2.1
|
17
|
+
|
18
|
+
* Explicitly set mac's Terminal.app to 256 colors only, fixes #28
|
19
|
+
|
20
|
+
### 2.2.0
|
21
|
+
|
22
|
+
* Support NO_COLOR environment variable, implements #26 (see no-color.org)
|
23
|
+
|
3
24
|
### 2.1.1
|
4
25
|
|
5
26
|
* Blacklist True Color support for urxvt, fixes #25
|
data/MIT-LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,12 +1,16 @@
|
|
1
|
-
# Ruby Paint [<img src="https://badge.fury.io/rb/paint.svg" />](https://badge.fury.io/rb/paint) [<img src="https://
|
1
|
+
# Ruby Paint [<img src="https://badge.fury.io/rb/paint.svg" />](https://badge.fury.io/rb/paint) [<img src="https://github.com/janlelis/paint/workflows/Test/badge.svg" />](https://github.com/janlelis/paint/actions?query=workflow%3ATest)
|
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: **3.1**, **3.0**, **2.7**
|
6
|
+
|
7
|
+
Unsupported, but might still work: **2.6**, **2.5**, **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)
|
8
12
|
* Simple API
|
9
|
-
* Faster than other terminal color gems ([as of
|
13
|
+
* Faster than other terminal color gems ([as of July 2022](https://gist.github.com/janlelis/91413b9295c81ee873dc))
|
10
14
|
* Supports *true color* or 256 colors (for capable terminals)
|
11
15
|
* Allows you to set any terminal effects
|
12
16
|
* `Paint.mode`: Fall-back modes for terminals with less colors, supported modes:
|
@@ -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.6**, **2.5**, **2.4**, **2.3**
|
29
|
-
|
30
|
-
Unsupported, but might still work:
|
31
|
-
|
32
|
-
* **2.2**, **2.1**, **2.0**, **1.9**
|
33
|
-
|
34
30
|
## Setup
|
35
31
|
|
36
32
|
Add to `Gemfile`:
|
@@ -79,7 +75,7 @@ When you pass multiple colors, the first one is taken as foreground color and th
|
|
79
75
|
|
80
76
|
## Windows Support
|
81
77
|
|
82
|
-
For ANSI support in Windows OS, you can use [ansicon](https://github.com/adoxa/ansicon) or [ConEmu](https://conemu.github.io/) or WSL(https://docs.microsoft.com/en-us/windows/wsl/install-win10).
|
78
|
+
For ANSI support in Windows OS, you can use [ansicon](https://github.com/adoxa/ansicon) or [ConEmu](https://conemu.github.io/) or [WSL](https://docs.microsoft.com/en-us/windows/wsl/install-win10).
|
83
79
|
|
84
80
|
## `Paint.mode`
|
85
81
|
|
@@ -93,8 +89,12 @@ 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
|
|
96
|
+
<img src="https://pbs.twimg.com/media/ENyLvgVXUAgeDTn.jpg" />
|
97
|
+
|
98
98
|
Terminal colors/effects get created by [ANSI escape sequences](https://en.wikipedia.org/wiki/ANSI_escape_code). These are strings that look like this: `\e[X;X;X;X;X]m` where X are integers with some meaning. For example, `0` means *reset*, `31` means *red foreground* and `41` stands for red background. When you tell **Paint** to use one of the eight ANSI base colors as foreground color, it just inserts a number between `30` and `37` into the sequence. The following colors are available:
|
99
99
|
|
100
100
|
* `:black`
|
@@ -157,9 +157,11 @@ From time to time, you might find yourself in a situation where you want to colo
|
|
157
157
|
Paint%['Yellow string with a %{blue_text} in it', :yellow,
|
158
158
|
blue_text: ["blue text", :blue]
|
159
159
|
]
|
160
|
-
# => "\e[33mYellow string with a \e[34mblue text\e[33m in it\e[0m"
|
160
|
+
# => "\e[33mYellow string with a \e[34mblue text\e[0m\e[33m in it\e[0m"
|
161
161
|
```
|
162
162
|
|
163
|
+
Please note that the resulting ASCII escape sequence can be quite verbose since it restores the parent context after the substitution.
|
164
|
+
|
163
165
|
## Utilities
|
164
166
|
|
165
167
|
The `Paint.random` method generates a random ANSI color you can pass into `Paint.[]`:
|
@@ -184,11 +186,11 @@ pa "Ruby", :red, :underline # same as puts Paint["Ruby", :red, :underline]
|
|
184
186
|
|
185
187
|
## Advanced Usage: Shortcuts
|
186
188
|
|
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/
|
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/main/SHORTCUTS.md) for documentation. This is completely optional.
|
188
190
|
|
189
191
|
## J-_-L
|
190
192
|
|
191
|
-
Copyright (c) 2011-
|
193
|
+
Copyright (c) 2011-2021 Jan Lelis <https://janlelis.com>, released under the
|
192
194
|
MIT license.
|
193
195
|
|
194
196
|
Thank you to [rainbow](https://github.com/sickill/rainbow) and [term-ansicolor](https://github.com/flori/term-ansicolor) for ideas and inspiration. Also, a lot of thanks to all the [contributors](https://github.com/janlelis/paint/contributors)!
|
data/Rakefile
CHANGED
@@ -35,7 +35,7 @@ desc "Install the gem locally"
|
|
35
35
|
task :install => :gems do
|
36
36
|
gemspecs.each{ |gemspec|
|
37
37
|
spec = gemspec_spec_for(gemspec)
|
38
|
-
sh %{gem install pkg/#{spec.name}-#{spec.version}.gem --no-
|
38
|
+
sh %{gem install pkg/#{spec.name}-#{spec.version}.gem --no-doc}
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -52,3 +52,8 @@ task :rainbow256 do
|
|
52
52
|
}
|
53
53
|
puts
|
54
54
|
end
|
55
|
+
|
56
|
+
desc "Start console session with libraries loaded"
|
57
|
+
task :irb do
|
58
|
+
sh "irb -I ./lib -r paint -r paint/shortcuts"
|
59
|
+
end
|
data/lib/paint/constants.rb
CHANGED
data/lib/paint/pa.rb
CHANGED
data/lib/paint/rgb_colors.rb
CHANGED
data/lib/paint/util.rb
CHANGED
data/lib/paint/version.rb
CHANGED
data/lib/paint.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require_relative 'paint/version'
|
2
4
|
require_relative 'paint/constants'
|
3
5
|
require_relative 'paint/util'
|
@@ -25,9 +27,11 @@ module Paint
|
|
25
27
|
# Substitutions & Nesting
|
26
28
|
if substitutions
|
27
29
|
substitutions.each{ |key, value|
|
28
|
-
string.gsub
|
30
|
+
string = string.gsub(
|
29
31
|
"%{#{key}}",
|
30
|
-
|
32
|
+
value.is_a?(Array) ?
|
33
|
+
self.%(value, clear_color + current_color) :
|
34
|
+
value.to_s
|
31
35
|
)
|
32
36
|
}
|
33
37
|
end
|
@@ -172,7 +176,9 @@ module Paint
|
|
172
176
|
# Determine supported colors
|
173
177
|
# Note: there's no reliable test for 24-bit color support
|
174
178
|
def detect_mode
|
175
|
-
if
|
179
|
+
if ENV['NO_COLOR'] # see https://no-color.org/
|
180
|
+
0
|
181
|
+
elsif RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ # windows
|
176
182
|
if ENV['ANSICON']
|
177
183
|
16
|
178
184
|
elsif ENV['ConEmuANSI'] == 'ON'
|
@@ -180,6 +186,8 @@ module Paint
|
|
180
186
|
else
|
181
187
|
0
|
182
188
|
end
|
189
|
+
elsif ENV['TERM_PROGRAM'] == 'Apple_Terminal'
|
190
|
+
256
|
183
191
|
else
|
184
192
|
case ENV['TERM']
|
185
193
|
when /^rxvt-(?:.*)-256color$/
|
data/paint.gemspec
CHANGED
@@ -6,17 +6,19 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.name = "paint"
|
7
7
|
s.version = Paint::VERSION
|
8
8
|
s.authors = ["Jan Lelis"]
|
9
|
-
s.email = "
|
9
|
+
s.email = ["hi@ruby.consulting"]
|
10
10
|
s.homepage = "https://github.com/janlelis/paint"
|
11
11
|
s.summary = "Terminal painter!"
|
12
|
-
s.description = "Terminal painter
|
12
|
+
s.description = "Terminal painter with RGB and 256 (fallback) color and terminal effects support. No string extensions! Usage: Paint['string', :red, :bright]"
|
13
13
|
s.license = 'MIT'
|
14
|
+
s.metadata = { "rubygems_mfa_required" => "true" }
|
14
15
|
|
15
16
|
s.files = %w[
|
16
17
|
paint.gemspec
|
17
18
|
Rakefile
|
18
19
|
.rspec
|
19
|
-
.
|
20
|
+
.github/workflows/test.yml
|
21
|
+
.github/workflows/codeql-analysis.yml
|
20
22
|
lib/paint.rb
|
21
23
|
lib/paint/pa.rb
|
22
24
|
lib/paint/rgb_colors.rb
|
@@ -32,12 +34,7 @@ Gem::Specification.new do |s|
|
|
32
34
|
]
|
33
35
|
|
34
36
|
s.required_ruby_version = '>= 1.9.3'
|
35
|
-
s.add_development_dependency 'rspec', '~> 3.
|
36
|
-
s.add_development_dependency 'rake', '~>
|
37
|
-
s.add_development_dependency 'benchmark-ips', '~> 2.
|
38
|
-
s.add_development_dependency 'rainbow', '~> 3.0'
|
39
|
-
s.add_development_dependency 'term-ansicolor', '~> 1.4'
|
40
|
-
s.add_development_dependency 'ansi', '~> 1.5'
|
41
|
-
s.add_development_dependency 'hansi', '~> 0.2'
|
42
|
-
s.add_development_dependency 'pastel', '~> 0.6'
|
37
|
+
s.add_development_dependency 'rspec', '~> 3.11'
|
38
|
+
s.add_development_dependency 'rake', '~> 13.0'
|
39
|
+
s.add_development_dependency 'benchmark-ips', '~> 2.10'
|
43
40
|
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.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Lelis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -16,115 +16,46 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '3.
|
19
|
+
version: '3.11'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '3.
|
26
|
+
version: '3.11'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '13.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '13.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: benchmark-ips
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '2.
|
47
|
+
version: '2.10'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '2.
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '3.0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '3.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: term-ansicolor
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '1.4'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '1.4'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: ansi
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '1.5'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '1.5'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: hansi
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0.2'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0.2'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: pastel
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0.6'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0.6'
|
125
|
-
description: 'Terminal painter: No string extensions / RGB and 256 color support /
|
126
|
-
effect support. Usage: Paint[''string'', :red, :bright]'
|
127
|
-
email: mail@janlelis.de
|
54
|
+
version: '2.10'
|
55
|
+
description: 'Terminal painter with RGB and 256 (fallback) color and terminal effects
|
56
|
+
support. No string extensions! Usage: Paint[''string'', :red, :bright]'
|
57
|
+
email:
|
58
|
+
- hi@ruby.consulting
|
128
59
|
executables: []
|
129
60
|
extensions: []
|
130
61
|
extra_rdoc_files:
|
@@ -132,8 +63,9 @@ extra_rdoc_files:
|
|
132
63
|
- CHANGELOG.md
|
133
64
|
- MIT-LICENSE.txt
|
134
65
|
files:
|
66
|
+
- ".github/workflows/codeql-analysis.yml"
|
67
|
+
- ".github/workflows/test.yml"
|
135
68
|
- ".rspec"
|
136
|
-
- ".travis.yml"
|
137
69
|
- CHANGELOG.md
|
138
70
|
- MIT-LICENSE.txt
|
139
71
|
- README.md
|
@@ -149,7 +81,8 @@ files:
|
|
149
81
|
homepage: https://github.com/janlelis/paint
|
150
82
|
licenses:
|
151
83
|
- MIT
|
152
|
-
metadata:
|
84
|
+
metadata:
|
85
|
+
rubygems_mfa_required: 'true'
|
153
86
|
post_install_message:
|
154
87
|
rdoc_options: []
|
155
88
|
require_paths:
|
@@ -165,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
98
|
- !ruby/object:Gem::Version
|
166
99
|
version: '0'
|
167
100
|
requirements: []
|
168
|
-
rubygems_version: 3.
|
101
|
+
rubygems_version: 3.3.7
|
169
102
|
signing_key:
|
170
103
|
specification_version: 4
|
171
104
|
summary: Terminal painter!
|
data/.travis.yml
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
|
4
|
-
rvm:
|
5
|
-
- 2.6.0
|
6
|
-
- 2.5.3
|
7
|
-
- 2.4.5
|
8
|
-
- 2.3.8
|
9
|
-
- 2.2
|
10
|
-
- 2.1
|
11
|
-
- 2.0
|
12
|
-
- 1.9.3
|
13
|
-
- ruby-head
|
14
|
-
- jruby-head
|
15
|
-
- jruby-9.2.5.0
|
16
|
-
- truffleruby
|
17
|
-
|
18
|
-
matrix:
|
19
|
-
allow_failures:
|
20
|
-
- rvm: jruby-head
|
21
|
-
- rvm: 2.2
|
22
|
-
- rvm: 2.1
|
23
|
-
- rvm: 2.0
|
24
|
-
- rvm: 1.9.3
|
25
|
-
- rvm: truffleruby
|