tty 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -3
- data/CHANGELOG.md +8 -0
- data/README.md +74 -42
- data/lib/tty.rb +7 -9
- data/lib/tty/conversion.rb +16 -0
- data/lib/tty/conversion/converter/array.rb +35 -0
- data/lib/tty/{coercer → conversion/converter}/boolean.rb +20 -7
- data/lib/tty/conversion/converter/float.rb +28 -0
- data/lib/tty/conversion/converter/integer.rb +28 -0
- data/lib/tty/{coercer → conversion/converter}/range.rb +16 -7
- data/lib/tty/logger.rb +1 -1
- data/lib/tty/shell/question.rb +2 -1
- data/lib/tty/shell/response.rb +9 -4
- data/lib/tty/shell/statement.rb +3 -2
- data/lib/tty/table.rb +3 -3
- data/lib/tty/table/border.rb +8 -5
- data/lib/tty/table/border/row_line.rb +2 -2
- data/lib/tty/table/operation/alignment_set.rb +2 -1
- data/lib/tty/table/padder.rb +1 -1
- data/lib/tty/table/renderer/basic.rb +1 -1
- data/lib/tty/terminal.rb +1 -118
- data/lib/tty/text/truncation.rb +4 -1
- data/lib/tty/text/wrapping.rb +4 -1
- data/lib/tty/vector.rb +4 -3
- data/lib/tty/version.rb +2 -2
- data/spec/tty/{support/conversion_spec.rb → conversion/converter/array/convert_spec.rb} +4 -5
- data/spec/tty/{coercer/boolean/coerce_spec.rb → conversion/converter/boolean/convert_spec.rb} +5 -4
- data/spec/tty/{coercer/float/coerce_spec.rb → conversion/converter/float/convert_spec.rb} +3 -2
- data/spec/tty/{coercer/integer/coerce_spec.rb → conversion/converter/integer/convert_spec.rb} +4 -2
- data/spec/tty/{coercer/range/coerce_spec.rb → conversion/converter/range/convert_spec.rb} +3 -2
- data/spec/tty/shell/error_spec.rb +4 -1
- data/spec/tty/shell/response/read_bool_spec.rb +1 -1
- data/spec/tty/shell/say_spec.rb +3 -0
- data/spec/tty/shell/statement/initialize_spec.rb +2 -2
- data/spec/tty/shell/warn_spec.rb +3 -0
- data/spec/tty/table/field/equality_spec.rb +1 -1
- data/spec/tty/table/render_spec.rb +3 -0
- data/spec/tty/table/render_with_spec.rb +8 -5
- data/spec/tty/table/renderer/basic/coloring_spec.rb +10 -9
- data/spec/tty/table/renderer/style_spec.rb +3 -0
- data/spec/tty/terminal/color_spec.rb +6 -3
- data/tasks/console.rake +1 -1
- data/tty.gemspec +7 -1
- metadata +88 -30
- data/lib/tty/coercer.rb +0 -13
- data/lib/tty/coercer/float.rb +0 -20
- data/lib/tty/coercer/integer.rb +0 -20
- data/lib/tty/support/conversion.rb +0 -35
- data/lib/tty/support/equatable.rb +0 -152
- data/lib/tty/terminal/color.rb +0 -157
- data/spec/tty/support/equatable_spec.rb +0 -201
- data/spec/tty/terminal/color/code_spec.rb +0 -19
- data/spec/tty/terminal/color/remove_spec.rb +0 -44
- data/spec/tty/terminal/color/set_spec.rb +0 -29
- data/spec/tty/terminal/size_spec.rb +0 -97
data/spec/tty/{coercer/boolean/coerce_spec.rb → conversion/converter/boolean/convert_spec.rb}
RENAMED
@@ -2,14 +2,15 @@
|
|
2
2
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
|
-
describe TTY::
|
5
|
+
describe TTY::Conversion::BooleanConverter, '#convert' do
|
6
|
+
let(:object) { described_class.new }
|
6
7
|
|
7
|
-
subject {
|
8
|
+
subject(:converter) { object.convert(value) }
|
8
9
|
|
9
10
|
context "with empty" do
|
10
11
|
let(:value) { '' }
|
11
12
|
|
12
|
-
it { expect { subject }.to raise_error(TTY::TypeError) }
|
13
|
+
it { expect { subject }.to raise_error(TTY::Conversion::TypeError) }
|
13
14
|
end
|
14
15
|
|
15
16
|
context "with true" do
|
@@ -111,6 +112,6 @@ describe TTY::Coercer::Boolean, '#coerce' do
|
|
111
112
|
context "with FOO" do
|
112
113
|
let(:value) { 'FOO' }
|
113
114
|
|
114
|
-
it { expect { subject }.to raise_error(TTY::TypeError) }
|
115
|
+
it { expect { subject }.to raise_error(TTY::Conversion::TypeError) }
|
115
116
|
end
|
116
117
|
end
|
@@ -2,10 +2,11 @@
|
|
2
2
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
|
-
describe TTY::
|
5
|
+
describe TTY::Conversion::FloatConverter, '#convert' do
|
6
|
+
let(:object) { described_class.new }
|
6
7
|
let(:strict) { true }
|
7
8
|
|
8
|
-
subject {
|
9
|
+
subject(:converter) { object.convert(value, strict) }
|
9
10
|
|
10
11
|
context 'with empty' do
|
11
12
|
let(:value) { '' }
|
data/spec/tty/{coercer/integer/coerce_spec.rb → conversion/converter/integer/convert_spec.rb}
RENAMED
@@ -2,9 +2,11 @@
|
|
2
2
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
|
-
describe TTY::
|
5
|
+
describe TTY::Conversion::IntegerConverter, '#convert' do
|
6
|
+
let(:object) { described_class.new }
|
6
7
|
let(:strict) { true }
|
7
|
-
|
8
|
+
|
9
|
+
subject(:converter) { object.convert(value, strict) }
|
8
10
|
|
9
11
|
context 'with empty' do
|
10
12
|
let(:value) { '' }
|
@@ -2,9 +2,10 @@
|
|
2
2
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
|
-
describe TTY::
|
5
|
+
describe TTY::Conversion::RangeConverter, '#convert' do
|
6
|
+
let(:object) { described_class.new }
|
6
7
|
|
7
|
-
subject {
|
8
|
+
subject(:converter) { object.convert(value) }
|
8
9
|
|
9
10
|
context 'with empty' do
|
10
11
|
let(:value) { '' }
|
@@ -2,12 +2,15 @@
|
|
2
2
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
|
-
describe TTY::Shell, '
|
5
|
+
RSpec.describe TTY::Shell, '.error' do
|
6
6
|
let(:input) { StringIO.new }
|
7
7
|
let(:output) { StringIO.new }
|
8
|
+
let(:color) { Pastel.new(enabled: true) }
|
8
9
|
|
9
10
|
subject(:shell) { TTY::Shell.new(input, output) }
|
10
11
|
|
12
|
+
before { allow(Pastel).to receive(:new).and_return(color) }
|
13
|
+
|
11
14
|
after { output.rewind }
|
12
15
|
|
13
16
|
it 'displays one message' do
|
@@ -11,7 +11,7 @@ describe TTY::Shell::Question, '#read_bool' do
|
|
11
11
|
input << 'invalid'
|
12
12
|
input.rewind
|
13
13
|
q = shell.ask("Do you read books?")
|
14
|
-
expect { q.read_bool }.to raise_error(TTY::TypeError)
|
14
|
+
expect { q.read_bool }.to raise_error(TTY::Conversion::TypeError)
|
15
15
|
end
|
16
16
|
|
17
17
|
it 'reads negative boolean' do
|
data/spec/tty/shell/say_spec.rb
CHANGED
@@ -5,9 +5,12 @@ require 'spec_helper'
|
|
5
5
|
describe TTY::Shell, '#say' do
|
6
6
|
let(:input) { StringIO.new }
|
7
7
|
let(:output) { StringIO.new }
|
8
|
+
let(:color) { Pastel.new(enabled: true) }
|
8
9
|
|
9
10
|
subject(:shell) { TTY::Shell.new(input, output) }
|
10
11
|
|
12
|
+
before { allow(Pastel).to receive(:new).and_return(color) }
|
13
|
+
|
11
14
|
after { output.rewind }
|
12
15
|
|
13
16
|
it 'prints an empty message' do
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
|
-
describe TTY::Shell::Statement, '#new' do
|
5
|
+
RSpec.describe TTY::Shell::Statement, '#new' do
|
6
6
|
let(:input) { StringIO.new }
|
7
7
|
let(:output) { StringIO.new }
|
8
8
|
let(:shell) { TTY::Shell.new(input, output) }
|
@@ -11,5 +11,5 @@ describe TTY::Shell::Statement, '#new' do
|
|
11
11
|
|
12
12
|
it { expect(statement.newline).to eq(true) }
|
13
13
|
|
14
|
-
it { expect(statement.color).to
|
14
|
+
it { expect(statement.color).to eq(false) }
|
15
15
|
end
|
data/spec/tty/shell/warn_spec.rb
CHANGED
@@ -5,9 +5,12 @@ require 'spec_helper'
|
|
5
5
|
describe TTY::Shell, '#warn' do
|
6
6
|
let(:input) { StringIO.new }
|
7
7
|
let(:output) { StringIO.new }
|
8
|
+
let(:color) { Pastel.new(enabled: true) }
|
8
9
|
|
9
10
|
subject(:shell) { TTY::Shell.new(input, output) }
|
10
11
|
|
12
|
+
before { allow(Pastel).to receive(:new).and_return(color) }
|
13
|
+
|
11
14
|
after { output.rewind }
|
12
15
|
|
13
16
|
it 'displays one message' do
|
@@ -31,7 +31,7 @@ describe TTY::Table::Field, '#==' do
|
|
31
31
|
context 'with an equivalent object of subclass' do
|
32
32
|
let(:other) { Class.new(described_class).new(value) }
|
33
33
|
|
34
|
-
it { is_expected.to
|
34
|
+
it { is_expected.to eq(true) }
|
35
35
|
|
36
36
|
it 'is symmetric' do
|
37
37
|
is_expected.not_to eql(other == object)
|
@@ -6,11 +6,14 @@ describe TTY::Table, '#render' do
|
|
6
6
|
let(:object) { described_class }
|
7
7
|
let(:header) { ['h1', 'h2'] }
|
8
8
|
let(:rows) { [['a1', 'a2'], ['b1', 'b2']] }
|
9
|
+
let(:color) { Pastel.new(enabled: true) }
|
9
10
|
let(:basic_renderer) { TTY::Table::Renderer::Basic }
|
10
11
|
let(:ascii_renderer) { TTY::Table::Renderer::ASCII }
|
11
12
|
|
12
13
|
subject(:table) { object.new header, rows }
|
13
14
|
|
15
|
+
before { allow(Pastel).to receive(:new).and_return(color) }
|
16
|
+
|
14
17
|
it { is_expected.to respond_to(:render) }
|
15
18
|
|
16
19
|
context 'with block' do
|
@@ -1,11 +1,14 @@
|
|
1
|
-
#
|
1
|
+
# encoding: utf-8
|
2
2
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
|
-
describe TTY::Table, '#render_with' do
|
5
|
+
RSpec.describe TTY::Table, '#render_with' do
|
6
6
|
let(:header) { ['h1', 'h2', 'h3'] }
|
7
7
|
let(:rows) { [['a1', 'a2', 'a3'], ['b1', 'b2', 'b3']] }
|
8
8
|
let(:table) { described_class.new header, rows }
|
9
|
+
let(:color) { Pastel.new(enabled: true) }
|
10
|
+
|
11
|
+
before { allow(Pastel).to receive(:new).and_return(color) }
|
9
12
|
|
10
13
|
context 'with invalid border class' do
|
11
14
|
it "doesn't inherit from TTY::Table::Border" do
|
@@ -94,9 +97,9 @@ describe TTY::Table, '#render_with' do
|
|
94
97
|
renderer.border.style = :red
|
95
98
|
end
|
96
99
|
expect(result).to eq <<-EOS.normalize
|
97
|
-
\e[31m|\e[
|
98
|
-
\e[31m|\e[
|
99
|
-
\e[31m|\e[
|
100
|
+
\e[31m|\e[0mh1h2h3\e[31m|\e[0m
|
101
|
+
\e[31m|\e[0ma1a2a3\e[31m|\e[0m
|
102
|
+
\e[31m|\e[0mb1b2b3\e[31m|\e[0m
|
100
103
|
EOS
|
101
104
|
end
|
102
105
|
end
|
@@ -2,27 +2,28 @@
|
|
2
2
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
|
-
describe TTY::Table::Renderer::Basic, 'coloring' do
|
5
|
+
RSpec.describe TTY::Table::Renderer::Basic, 'coloring' do
|
6
6
|
let(:header) { ['h1', 'h2'] }
|
7
7
|
let(:rows) { [['a1', 'a2'], ['b1', 'b2']] }
|
8
|
-
let(:blue) { "\e[34m" }
|
9
8
|
let(:clear) { "\e[0m" }
|
10
|
-
let(:on_green) { "\e[42m"}
|
11
9
|
let(:options) { {filter: filter } }
|
12
10
|
let(:table) { TTY::Table.new(header, rows) }
|
11
|
+
let(:color) { Pastel.new(enabled: true) }
|
13
12
|
|
14
13
|
subject(:renderer) { described_class.new(table, options) }
|
15
14
|
|
15
|
+
before { allow(Pastel).to receive(:new).and_return(color) }
|
16
|
+
|
16
17
|
context 'with filter on all fields' do
|
17
18
|
let(:filter) {
|
18
|
-
proc { |val, row, col|
|
19
|
+
proc { |val, row, col| color.decorate val, :blue, :on_green }
|
19
20
|
}
|
20
21
|
|
21
22
|
it 'colors all elements' do
|
22
23
|
expect(renderer.render).to eql <<-EOS.normalize
|
23
|
-
#{
|
24
|
-
#{
|
25
|
-
#{
|
24
|
+
\e[34;42mh1#{clear} \e[34;42mh2#{clear}
|
25
|
+
\e[34;42ma1#{clear} \e[34;42ma2#{clear}
|
26
|
+
\e[34;42mb1#{clear} \e[34;42mb2#{clear}
|
26
27
|
EOS
|
27
28
|
end
|
28
29
|
end
|
@@ -30,13 +31,13 @@ describe TTY::Table::Renderer::Basic, 'coloring' do
|
|
30
31
|
context 'with filter only on header' do
|
31
32
|
let(:filter) {
|
32
33
|
proc { |val, row, col|
|
33
|
-
row.zero? ?
|
34
|
+
row.zero? ? color.decorate(val, :blue, :on_green) : val
|
34
35
|
}
|
35
36
|
}
|
36
37
|
|
37
38
|
it 'colors only header' do
|
38
39
|
expect(renderer.render).to eql <<-EOS.normalize
|
39
|
-
#{
|
40
|
+
\e[34;42mh1#{clear} \e[34;42mh2#{clear}
|
40
41
|
a1 a2
|
41
42
|
b1 b2
|
42
43
|
EOS
|
@@ -6,9 +6,12 @@ describe TTY::Table::Renderer, 'with style' do
|
|
6
6
|
let(:header) { ['h1', 'h2', 'h3'] }
|
7
7
|
let(:rows) { [['a1', 'a2', 'a3'], ['b1', 'b2', 'b3']] }
|
8
8
|
let(:table) { TTY::Table.new(header, rows) }
|
9
|
+
let(:color) { Pastel.new(enabled: true) }
|
9
10
|
|
10
11
|
subject(:renderer) { described_class.select(type).new(table) }
|
11
12
|
|
13
|
+
before { allow(Pastel).to receive(:new).and_return(color) }
|
14
|
+
|
12
15
|
context 'when basic renderer' do
|
13
16
|
let(:type) { :basic }
|
14
17
|
|
@@ -2,12 +2,15 @@
|
|
2
2
|
|
3
3
|
require 'spec_helper'
|
4
4
|
|
5
|
-
describe TTY::Terminal, '#color' do
|
5
|
+
RSpec.describe TTY::Terminal, '#color' do
|
6
|
+
let(:color) { Pastel.new(enabled: true) }
|
6
7
|
|
7
|
-
it { expect(subject.color).to be_a(
|
8
|
+
it { expect(subject.color).to be_a(Pastel::Delegator) }
|
9
|
+
|
10
|
+
before { allow(Pastel).to receive(:new).and_return(color) }
|
8
11
|
|
9
12
|
it 'delegates color handling' do
|
10
13
|
string = 'text'
|
11
|
-
expect(subject.color.
|
14
|
+
expect(subject.color.decorate(string, :red)).to eq("\e[31m#{string}\e[0m")
|
12
15
|
end
|
13
16
|
end
|
data/tasks/console.rake
CHANGED
data/tty.gemspec
CHANGED
@@ -17,5 +17,11 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
|
20
|
-
gem.
|
20
|
+
gem.add_dependency 'equatable', '~> 0.5.0'
|
21
|
+
gem.add_dependency 'pastel', '~> 0.4.0'
|
22
|
+
gem.add_dependency 'tty-screen', '~> 0.1.0'
|
23
|
+
gem.add_dependency 'tty-spinner', '~> 0.1.0'
|
24
|
+
gem.add_dependency 'tty-progressbar', '~> 0.2.0'
|
25
|
+
|
26
|
+
gem.add_development_dependency 'bundler', '~> 1.5'
|
21
27
|
end
|
metadata
CHANGED
@@ -1,15 +1,85 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Murach
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: equatable
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.5.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.5.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: pastel
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.4.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.4.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: tty-screen
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.1.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.1.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: tty-spinner
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.1.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.1.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: tty-progressbar
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.2.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.2.0
|
13
83
|
- !ruby/object:Gem::Dependency
|
14
84
|
name: bundler
|
15
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -46,11 +116,12 @@ files:
|
|
46
116
|
- benchmarks/table.rb
|
47
117
|
- images/tty.png
|
48
118
|
- lib/tty.rb
|
49
|
-
- lib/tty/
|
50
|
-
- lib/tty/
|
51
|
-
- lib/tty/
|
52
|
-
- lib/tty/
|
53
|
-
- lib/tty/
|
119
|
+
- lib/tty/conversion.rb
|
120
|
+
- lib/tty/conversion/converter/array.rb
|
121
|
+
- lib/tty/conversion/converter/boolean.rb
|
122
|
+
- lib/tty/conversion/converter/float.rb
|
123
|
+
- lib/tty/conversion/converter/integer.rb
|
124
|
+
- lib/tty/conversion/converter/range.rb
|
54
125
|
- lib/tty/logger.rb
|
55
126
|
- lib/tty/plugins.rb
|
56
127
|
- lib/tty/plugins/plugin.rb
|
@@ -64,9 +135,7 @@ files:
|
|
64
135
|
- lib/tty/shell/statement.rb
|
65
136
|
- lib/tty/shell/suggestion.rb
|
66
137
|
- lib/tty/support/coercion.rb
|
67
|
-
- lib/tty/support/conversion.rb
|
68
138
|
- lib/tty/support/delegatable.rb
|
69
|
-
- lib/tty/support/equatable.rb
|
70
139
|
- lib/tty/support/unicode.rb
|
71
140
|
- lib/tty/support/utils.rb
|
72
141
|
- lib/tty/system.rb
|
@@ -107,7 +176,6 @@ files:
|
|
107
176
|
- lib/tty/table/transformation.rb
|
108
177
|
- lib/tty/table/validatable.rb
|
109
178
|
- lib/tty/terminal.rb
|
110
|
-
- lib/tty/terminal/color.rb
|
111
179
|
- lib/tty/terminal/echo.rb
|
112
180
|
- lib/tty/terminal/home.rb
|
113
181
|
- lib/tty/terminal/pager.rb
|
@@ -120,10 +188,11 @@ files:
|
|
120
188
|
- lib/tty/vector.rb
|
121
189
|
- lib/tty/version.rb
|
122
190
|
- spec/spec_helper.rb
|
123
|
-
- spec/tty/
|
124
|
-
- spec/tty/
|
125
|
-
- spec/tty/
|
126
|
-
- spec/tty/
|
191
|
+
- spec/tty/conversion/converter/array/convert_spec.rb
|
192
|
+
- spec/tty/conversion/converter/boolean/convert_spec.rb
|
193
|
+
- spec/tty/conversion/converter/float/convert_spec.rb
|
194
|
+
- spec/tty/conversion/converter/integer/convert_spec.rb
|
195
|
+
- spec/tty/conversion/converter/range/convert_spec.rb
|
127
196
|
- spec/tty/logger/log_spec.rb
|
128
197
|
- spec/tty/logger/new_spec.rb
|
129
198
|
- spec/tty/logger/valid_level_spec.rb
|
@@ -162,9 +231,7 @@ files:
|
|
162
231
|
- spec/tty/shell/suggest_spec.rb
|
163
232
|
- spec/tty/shell/warn_spec.rb
|
164
233
|
- spec/tty/support/coercion_spec.rb
|
165
|
-
- spec/tty/support/conversion_spec.rb
|
166
234
|
- spec/tty/support/delegatable_spec.rb
|
167
|
-
- spec/tty/support/equatable_spec.rb
|
168
235
|
- spec/tty/support/fixtures/classes.rb
|
169
236
|
- spec/tty/system/editor/available_spec.rb
|
170
237
|
- spec/tty/system/editor/build_spec.rb
|
@@ -272,9 +339,6 @@ files:
|
|
272
339
|
- spec/tty/table/transformation/extract_tuples_spec.rb
|
273
340
|
- spec/tty/table/validatable/validate_options_spec.rb
|
274
341
|
- spec/tty/table/validatable_spec.rb
|
275
|
-
- spec/tty/terminal/color/code_spec.rb
|
276
|
-
- spec/tty/terminal/color/remove_spec.rb
|
277
|
-
- spec/tty/terminal/color/set_spec.rb
|
278
342
|
- spec/tty/terminal/color_spec.rb
|
279
343
|
- spec/tty/terminal/echo_spec.rb
|
280
344
|
- spec/tty/terminal/home_spec.rb
|
@@ -285,7 +349,6 @@ files:
|
|
285
349
|
- spec/tty/terminal/pager/executables_spec.rb
|
286
350
|
- spec/tty/terminal/pager/page_spec.rb
|
287
351
|
- spec/tty/terminal/pager/system/page_spec.rb
|
288
|
-
- spec/tty/terminal/size_spec.rb
|
289
352
|
- spec/tty/text/distance/distance_spec.rb
|
290
353
|
- spec/tty/text/distance/initialize_spec.rb
|
291
354
|
- spec/tty/text/distance_spec.rb
|
@@ -332,10 +395,11 @@ summary: A toolbox for developing beautiful command line clients. It provides a
|
|
332
395
|
information back.
|
333
396
|
test_files:
|
334
397
|
- spec/spec_helper.rb
|
335
|
-
- spec/tty/
|
336
|
-
- spec/tty/
|
337
|
-
- spec/tty/
|
338
|
-
- spec/tty/
|
398
|
+
- spec/tty/conversion/converter/array/convert_spec.rb
|
399
|
+
- spec/tty/conversion/converter/boolean/convert_spec.rb
|
400
|
+
- spec/tty/conversion/converter/float/convert_spec.rb
|
401
|
+
- spec/tty/conversion/converter/integer/convert_spec.rb
|
402
|
+
- spec/tty/conversion/converter/range/convert_spec.rb
|
339
403
|
- spec/tty/logger/log_spec.rb
|
340
404
|
- spec/tty/logger/new_spec.rb
|
341
405
|
- spec/tty/logger/valid_level_spec.rb
|
@@ -374,9 +438,7 @@ test_files:
|
|
374
438
|
- spec/tty/shell/suggest_spec.rb
|
375
439
|
- spec/tty/shell/warn_spec.rb
|
376
440
|
- spec/tty/support/coercion_spec.rb
|
377
|
-
- spec/tty/support/conversion_spec.rb
|
378
441
|
- spec/tty/support/delegatable_spec.rb
|
379
|
-
- spec/tty/support/equatable_spec.rb
|
380
442
|
- spec/tty/support/fixtures/classes.rb
|
381
443
|
- spec/tty/system/editor/available_spec.rb
|
382
444
|
- spec/tty/system/editor/build_spec.rb
|
@@ -484,9 +546,6 @@ test_files:
|
|
484
546
|
- spec/tty/table/transformation/extract_tuples_spec.rb
|
485
547
|
- spec/tty/table/validatable/validate_options_spec.rb
|
486
548
|
- spec/tty/table/validatable_spec.rb
|
487
|
-
- spec/tty/terminal/color/code_spec.rb
|
488
|
-
- spec/tty/terminal/color/remove_spec.rb
|
489
|
-
- spec/tty/terminal/color/set_spec.rb
|
490
549
|
- spec/tty/terminal/color_spec.rb
|
491
550
|
- spec/tty/terminal/echo_spec.rb
|
492
551
|
- spec/tty/terminal/home_spec.rb
|
@@ -497,7 +556,6 @@ test_files:
|
|
497
556
|
- spec/tty/terminal/pager/executables_spec.rb
|
498
557
|
- spec/tty/terminal/pager/page_spec.rb
|
499
558
|
- spec/tty/terminal/pager/system/page_spec.rb
|
500
|
-
- spec/tty/terminal/size_spec.rb
|
501
559
|
- spec/tty/text/distance/distance_spec.rb
|
502
560
|
- spec/tty/text/distance/initialize_spec.rb
|
503
561
|
- spec/tty/text/distance_spec.rb
|