term-ansicolor 1.7.0 → 1.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 304878391ec13c534365a4a694d13b65d171f94062397af82fd34d1bbaa8bf3b
4
- data.tar.gz: 6992e038df00f0d887afa1c0ff373f6d8b1d9a55d24620c427e4b9912808bb94
3
+ metadata.gz: 45d5c44dfe80380872b30c025fbbdb6da398482fce8adf8cbdb6353d81b6ca61
4
+ data.tar.gz: eed4f4cb1203e4ced32f053125e668ce6e9ffcca589b177cabcb40a675cc6e14
5
5
  SHA512:
6
- metadata.gz: 257d2e9c85eae190c42c82d88355fb93bad21d7ccd397069b1e41ce1a482284a65e357b4d38f3657be492a219a91b34658f353e0566a0eb608e2dc55200fcea9
7
- data.tar.gz: 4dd918c597658bf3f8b5a7930f03fcf8eb61d21d9aa9357f24c25b53815587203d6449b53d9688b0ce8a54d872ffc9573fa6911dad62577f4f0ef0c880dc4fe7
6
+ metadata.gz: 85098f326b4e01c3d3e0ae17dfcf00d3b76897625d5db09de1ca7c172b140b1250b05f98578a8534caf21032f24949a8a9ab81912d2d819a85aad4024c91b097
7
+ data.tar.gz: 23af07f3f3652f7867adab58eb360ed8f5d2adae614508ac92877d8aa6fbfd7e5a31501eb4dcb29f3ce0971f80e22b18a8667759d6d5dc78a30ef25abfcc3e53
data/.all_images.yml ADDED
@@ -0,0 +1,16 @@
1
+ dockerfile: |-
2
+ RUN apk add --no-cache build-base git
3
+ RUN gem update --system
4
+ RUN gem install gem_hadar bundler
5
+
6
+ script: &script |-
7
+ echo -e "\e[1m"
8
+ ruby -v
9
+ echo -e "\e[0m"
10
+ bundle
11
+ rake test
12
+
13
+ images:
14
+ ruby:3.2-alpine: *script
15
+ ruby:3.1-alpine: *script
16
+ ruby:3.0-alpine: *script
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.2.3
data/CHANGES CHANGED
@@ -1,3 +1,4 @@
1
+ 2019-01-18 - 1.7.1 * Fix term_display command for never tins
1
2
  2018-11-02 - 1.7.0 * Add movement commands and term_snow executable
2
3
  2017-03-24 - 1.6.0 * Implement HSL colors and methods based on that code
3
4
  2017-04-13 - 1.5.0 * Change to Apache 2.0 license
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ GemHadar do
8
8
  path_module 'Term::ANSIColor'
9
9
  author 'Florian Frank'
10
10
  email 'flori@ping.de'
11
- homepage "http://flori.github.com/#{name}"
11
+ homepage "https://github.com/flori/#{name}"
12
12
  summary 'Ruby library that colors strings using ANSI escape sequences'
13
13
  description 'This library uses ANSI escape sequences to control the attributes of terminal output'
14
14
  licenses << 'Apache-2.0'
@@ -23,6 +23,5 @@ GemHadar do
23
23
  dependency 'tins', '~>1.0'
24
24
  development_dependency 'simplecov'
25
25
  development_dependency 'test-unit'
26
-
27
- required_ruby_version '>= 2.0'
26
+ development_dependency 'utils'
28
27
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.0
1
+ 1.7.2
data/bin/term_display CHANGED
@@ -54,20 +54,20 @@ def provide_ppm_file(filename, opts)
54
54
  end
55
55
 
56
56
  def usage(rc = 0)
57
- puts to <<-end
58
- Usage: #$0 [OPTIONS] FILENAME"
57
+ puts <<EOT
58
+ Usage: #$0 [OPTIONS] FILENAME"
59
59
 
60
- Options are
60
+ Options are
61
61
 
62
- -m METRIC for distance (METRIC = #{Term::ANSIColor::RGBColorMetrics.metrics * '|'})
63
- -g yes|no use/don't use gray values, defaults to yes
64
- -s xyfit|xyfill scaling strategy, defaults to xyfit
65
- -a ASPECT x:y aspect, defaults to 2.2
66
- -C COLS number of columns for rendering with aspect, defaults to max
67
- -R ROWS number of rows for rendering with aspect, defaults to max - 1
68
- -h this help
62
+ -m METRIC for distance (METRIC = #{Term::ANSIColor::RGBColorMetrics.metrics * '|'})
63
+ -g yes|no use/don't use gray values, defaults to yes
64
+ -s xyfit|xyfill scaling strategy, defaults to xyfit
65
+ -a ASPECT x:y aspect, defaults to 2.2
66
+ -C COLS number of columns for rendering with aspect, defaults to max
67
+ -R ROWS number of rows for rendering with aspect, defaults to max - 1
68
+ -h this help
69
69
 
70
- end
70
+ EOT
71
71
  exit rc
72
72
  end
73
73
 
@@ -1,6 +1,6 @@
1
1
  module Term::ANSIColor
2
2
  # Term::ANSIColor version
3
- VERSION = '1.7.0'
3
+ VERSION = '1.7.2'
4
4
  VERSION_ARRAY = VERSION.split('.').map(&:to_i) # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
@@ -1,45 +1,31 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: term-ansicolor 1.7.0 ruby lib
2
+ # stub: term-ansicolor 1.7.2 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "term-ansicolor".freeze
6
- s.version = "1.7.0"
6
+ s.version = "1.7.2"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib".freeze]
10
10
  s.authors = ["Florian Frank".freeze]
11
- s.date = "2018-11-02"
11
+ s.date = "2024-03-15"
12
12
  s.description = "This library uses ANSI escape sequences to control the attributes of terminal output".freeze
13
13
  s.email = "flori@ping.de".freeze
14
- s.executables = ["term_snow".freeze, "term_display".freeze, "term_decolor".freeze, "term_cdiff".freeze, "term_mandel".freeze, "term_colortab".freeze]
14
+ s.executables = ["term_cdiff".freeze, "term_colortab".freeze, "term_decolor".freeze, "term_display".freeze, "term_mandel".freeze, "term_snow".freeze]
15
15
  s.extra_rdoc_files = ["README.md".freeze, "lib/term/ansicolor.rb".freeze, "lib/term/ansicolor/attribute.rb".freeze, "lib/term/ansicolor/attribute/color256.rb".freeze, "lib/term/ansicolor/attribute/color8.rb".freeze, "lib/term/ansicolor/attribute/intense_color8.rb".freeze, "lib/term/ansicolor/attribute/text.rb".freeze, "lib/term/ansicolor/hsl_triple.rb".freeze, "lib/term/ansicolor/movement.rb".freeze, "lib/term/ansicolor/ppm_reader.rb".freeze, "lib/term/ansicolor/rgb_color_metrics.rb".freeze, "lib/term/ansicolor/rgb_triple.rb".freeze, "lib/term/ansicolor/version.rb".freeze]
16
- s.files = [".gitignore".freeze, ".travis.yml".freeze, "CHANGES".freeze, "COPYING".freeze, "Gemfile".freeze, "README.md".freeze, "Rakefile".freeze, "VERSION".freeze, "bin/term_cdiff".freeze, "bin/term_colortab".freeze, "bin/term_decolor".freeze, "bin/term_display".freeze, "bin/term_mandel".freeze, "bin/term_snow".freeze, "examples/example.rb".freeze, "examples/lambda-red-plain.ppm".freeze, "examples/lambda-red.png".freeze, "examples/lambda-red.ppm".freeze, "lib/term/ansicolor.rb".freeze, "lib/term/ansicolor/.keep".freeze, "lib/term/ansicolor/attribute.rb".freeze, "lib/term/ansicolor/attribute/color256.rb".freeze, "lib/term/ansicolor/attribute/color8.rb".freeze, "lib/term/ansicolor/attribute/intense_color8.rb".freeze, "lib/term/ansicolor/attribute/text.rb".freeze, "lib/term/ansicolor/hsl_triple.rb".freeze, "lib/term/ansicolor/movement.rb".freeze, "lib/term/ansicolor/ppm_reader.rb".freeze, "lib/term/ansicolor/rgb_color_metrics.rb".freeze, "lib/term/ansicolor/rgb_triple.rb".freeze, "lib/term/ansicolor/version.rb".freeze, "term-ansicolor.gemspec".freeze, "tests/ansicolor_test.rb".freeze, "tests/attribute_test.rb".freeze, "tests/hsl_triple_test.rb".freeze, "tests/ppm_reader_test.rb".freeze, "tests/rgb_color_metrics_test.rb".freeze, "tests/rgb_triple_test.rb".freeze, "tests/test_helper.rb".freeze]
17
- s.homepage = "http://flori.github.com/term-ansicolor".freeze
16
+ s.files = [".all_images.yml".freeze, ".gitignore".freeze, ".tool-versions".freeze, "CHANGES".freeze, "COPYING".freeze, "Gemfile".freeze, "README.md".freeze, "Rakefile".freeze, "VERSION".freeze, "bin/term_cdiff".freeze, "bin/term_colortab".freeze, "bin/term_decolor".freeze, "bin/term_display".freeze, "bin/term_mandel".freeze, "bin/term_snow".freeze, "examples/example.rb".freeze, "examples/lambda-red-plain.ppm".freeze, "examples/lambda-red.png".freeze, "examples/lambda-red.ppm".freeze, "lib/term/ansicolor.rb".freeze, "lib/term/ansicolor/.keep".freeze, "lib/term/ansicolor/attribute.rb".freeze, "lib/term/ansicolor/attribute/color256.rb".freeze, "lib/term/ansicolor/attribute/color8.rb".freeze, "lib/term/ansicolor/attribute/intense_color8.rb".freeze, "lib/term/ansicolor/attribute/text.rb".freeze, "lib/term/ansicolor/hsl_triple.rb".freeze, "lib/term/ansicolor/movement.rb".freeze, "lib/term/ansicolor/ppm_reader.rb".freeze, "lib/term/ansicolor/rgb_color_metrics.rb".freeze, "lib/term/ansicolor/rgb_triple.rb".freeze, "lib/term/ansicolor/version.rb".freeze, "term-ansicolor.gemspec".freeze, "tests/ansicolor_test.rb".freeze, "tests/attribute_test.rb".freeze, "tests/hsl_triple_test.rb".freeze, "tests/ppm_reader_test.rb".freeze, "tests/rgb_color_metrics_test.rb".freeze, "tests/rgb_triple_test.rb".freeze, "tests/test_helper.rb".freeze]
17
+ s.homepage = "https://github.com/flori/term-ansicolor".freeze
18
18
  s.licenses = ["Apache-2.0".freeze]
19
19
  s.rdoc_options = ["--title".freeze, "Term-ansicolor - Ruby library that colors strings using ANSI escape sequences".freeze, "--main".freeze, "README.md".freeze]
20
- s.required_ruby_version = Gem::Requirement.new(">= 2.0".freeze)
21
- s.rubygems_version = "2.7.7".freeze
20
+ s.rubygems_version = "3.4.19".freeze
22
21
  s.summary = "Ruby library that colors strings using ANSI escape sequences".freeze
23
22
  s.test_files = ["tests/ansicolor_test.rb".freeze, "tests/attribute_test.rb".freeze, "tests/hsl_triple_test.rb".freeze, "tests/ppm_reader_test.rb".freeze, "tests/rgb_color_metrics_test.rb".freeze, "tests/rgb_triple_test.rb".freeze, "tests/test_helper.rb".freeze]
24
23
 
25
- if s.respond_to? :specification_version then
26
- s.specification_version = 4
24
+ s.specification_version = 4
27
25
 
28
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
29
- s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.9.1"])
30
- s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
31
- s.add_development_dependency(%q<test-unit>.freeze, [">= 0"])
32
- s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.0"])
33
- else
34
- s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.9.1"])
35
- s.add_dependency(%q<simplecov>.freeze, [">= 0"])
36
- s.add_dependency(%q<test-unit>.freeze, [">= 0"])
37
- s.add_dependency(%q<tins>.freeze, ["~> 1.0"])
38
- end
39
- else
40
- s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.9.1"])
41
- s.add_dependency(%q<simplecov>.freeze, [">= 0"])
42
- s.add_dependency(%q<test-unit>.freeze, [">= 0"])
43
- s.add_dependency(%q<tins>.freeze, ["~> 1.0"])
44
- end
26
+ s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.14.0"])
27
+ s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
28
+ s.add_development_dependency(%q<test-unit>.freeze, [">= 0"])
29
+ s.add_development_dependency(%q<utils>.freeze, [">= 0"])
30
+ s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.0"])
45
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: term-ansicolor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-02 00:00:00.000000000 Z
11
+ date: 2024-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_hadar
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.9.1
19
+ version: 1.14.0
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: 1.9.1
26
+ version: 1.14.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: simplecov
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: utils
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: tins
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -70,12 +84,12 @@ description: This library uses ANSI escape sequences to control the attributes o
70
84
  terminal output
71
85
  email: flori@ping.de
72
86
  executables:
73
- - term_snow
74
- - term_display
75
- - term_decolor
76
87
  - term_cdiff
77
- - term_mandel
78
88
  - term_colortab
89
+ - term_decolor
90
+ - term_display
91
+ - term_mandel
92
+ - term_snow
79
93
  extensions: []
80
94
  extra_rdoc_files:
81
95
  - README.md
@@ -92,8 +106,9 @@ extra_rdoc_files:
92
106
  - lib/term/ansicolor/rgb_triple.rb
93
107
  - lib/term/ansicolor/version.rb
94
108
  files:
109
+ - ".all_images.yml"
95
110
  - ".gitignore"
96
- - ".travis.yml"
111
+ - ".tool-versions"
97
112
  - CHANGES
98
113
  - COPYING
99
114
  - Gemfile
@@ -131,11 +146,11 @@ files:
131
146
  - tests/rgb_color_metrics_test.rb
132
147
  - tests/rgb_triple_test.rb
133
148
  - tests/test_helper.rb
134
- homepage: http://flori.github.com/term-ansicolor
149
+ homepage: https://github.com/flori/term-ansicolor
135
150
  licenses:
136
151
  - Apache-2.0
137
152
  metadata: {}
138
- post_install_message:
153
+ post_install_message:
139
154
  rdoc_options:
140
155
  - "--title"
141
156
  - Term-ansicolor - Ruby library that colors strings using ANSI escape sequences
@@ -147,16 +162,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
147
162
  requirements:
148
163
  - - ">="
149
164
  - !ruby/object:Gem::Version
150
- version: '2.0'
165
+ version: '0'
151
166
  required_rubygems_version: !ruby/object:Gem::Requirement
152
167
  requirements:
153
168
  - - ">="
154
169
  - !ruby/object:Gem::Version
155
170
  version: '0'
156
171
  requirements: []
157
- rubyforge_project:
158
- rubygems_version: 2.7.7
159
- signing_key:
172
+ rubygems_version: 3.4.19
173
+ signing_key:
160
174
  specification_version: 4
161
175
  summary: Ruby library that colors strings using ANSI escape sequences
162
176
  test_files:
data/.travis.yml DELETED
@@ -1,14 +0,0 @@
1
- rvm:
2
- - 2.0
3
- - 2.1
4
- - 2.2
5
- - 2.3
6
- - 2.4
7
- - 2.5
8
- - ruby-head
9
- - jruby
10
- matrix:
11
- allow_failures:
12
- - rvm: ruby-head
13
- - rvm: jruby
14
- sudo: false