tty-table 0.7.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +57 -0
  3. data/LICENSE.txt +1 -1
  4. data/README.md +165 -94
  5. data/lib/tty-table.rb +1 -5
  6. data/lib/tty/table.rb +102 -42
  7. data/lib/tty/table/alignment_set.rb +3 -6
  8. data/lib/tty/table/border.rb +57 -68
  9. data/lib/tty/table/border/ascii.rb +17 -17
  10. data/lib/tty/table/border/null.rb +20 -22
  11. data/lib/tty/table/border/row_line.rb +4 -3
  12. data/lib/tty/table/border/unicode.rb +17 -17
  13. data/lib/tty/table/border_dsl.rb +28 -25
  14. data/lib/tty/table/border_options.rb +50 -25
  15. data/lib/tty/table/column_constraint.rb +29 -17
  16. data/lib/tty/table/{column_set.rb → columns.rb} +44 -69
  17. data/lib/tty/table/empty.rb +2 -0
  18. data/lib/tty/table/error.rb +1 -1
  19. data/lib/tty/table/field.rb +43 -35
  20. data/lib/tty/table/header.rb +7 -5
  21. data/lib/tty/table/indentation.rb +16 -25
  22. data/lib/tty/table/operation/alignment.rb +10 -8
  23. data/lib/tty/table/operation/escape.rb +2 -3
  24. data/lib/tty/table/operation/filter.rb +1 -1
  25. data/lib/tty/table/operation/padding.rb +4 -12
  26. data/lib/tty/table/operation/truncation.rb +4 -4
  27. data/lib/tty/table/operation/wrapped.rb +4 -4
  28. data/lib/tty/table/operations.rb +4 -15
  29. data/lib/tty/table/options.rb +2 -4
  30. data/lib/tty/table/orientation.rb +5 -5
  31. data/lib/tty/table/orientation/horizontal.rb +1 -1
  32. data/lib/tty/table/orientation/vertical.rb +1 -1
  33. data/lib/tty/table/renderer.rb +40 -35
  34. data/lib/tty/table/renderer/ascii.rb +4 -4
  35. data/lib/tty/table/renderer/basic.rb +85 -88
  36. data/lib/tty/table/renderer/unicode.rb +3 -3
  37. data/lib/tty/table/row.rb +10 -8
  38. data/lib/tty/table/transformation.rb +2 -2
  39. data/lib/tty/table/validatable.rb +25 -7
  40. data/lib/tty/table/version.rb +3 -3
  41. metadata +33 -283
  42. data/.gitignore +0 -14
  43. data/.rspec +0 -3
  44. data/.travis.yml +0 -24
  45. data/CODE_OF_CONDUCT.md +0 -49
  46. data/Gemfile +0 -18
  47. data/Rakefile +0 -8
  48. data/benchmarks/speed.rb +0 -41
  49. data/spec/spec_helper.rb +0 -50
  50. data/spec/unit/access_spec.rb +0 -86
  51. data/spec/unit/add_row_spec.rb +0 -28
  52. data/spec/unit/alignment_set/each_spec.rb +0 -17
  53. data/spec/unit/alignment_set/new_spec.rb +0 -27
  54. data/spec/unit/alignment_set/to_ary_spec.rb +0 -14
  55. data/spec/unit/alignment_spec.rb +0 -71
  56. data/spec/unit/border/ascii/rendering_spec.rb +0 -90
  57. data/spec/unit/border/new_spec.rb +0 -27
  58. data/spec/unit/border/null/rendering_spec.rb +0 -130
  59. data/spec/unit/border/options/from_spec.rb +0 -38
  60. data/spec/unit/border/options/new_spec.rb +0 -14
  61. data/spec/unit/border/unicode/rendering_spec.rb +0 -63
  62. data/spec/unit/border_options/new_spec.rb +0 -20
  63. data/spec/unit/border_options/update_spec.rb +0 -18
  64. data/spec/unit/column_constraint/enforce_spec.rb +0 -70
  65. data/spec/unit/column_constraint/widths_spec.rb +0 -35
  66. data/spec/unit/column_set/extract_widths_spec.rb +0 -48
  67. data/spec/unit/column_set/total_width_spec.rb +0 -15
  68. data/spec/unit/column_set/widths_from_spec.rb +0 -51
  69. data/spec/unit/data_spec.rb +0 -12
  70. data/spec/unit/each_spec.rb +0 -26
  71. data/spec/unit/each_with_index_spec.rb +0 -51
  72. data/spec/unit/empty_spec.rb +0 -23
  73. data/spec/unit/eql_spec.rb +0 -34
  74. data/spec/unit/field/equality_spec.rb +0 -51
  75. data/spec/unit/field/length_spec.rb +0 -35
  76. data/spec/unit/field/lines_spec.rb +0 -21
  77. data/spec/unit/field/new_spec.rb +0 -29
  78. data/spec/unit/field/width_spec.rb +0 -23
  79. data/spec/unit/filter_spec.rb +0 -22
  80. data/spec/unit/header/call_spec.rb +0 -30
  81. data/spec/unit/header/color_spec.rb +0 -19
  82. data/spec/unit/header/equality_spec.rb +0 -51
  83. data/spec/unit/header/height_spec.rb +0 -27
  84. data/spec/unit/header/new_spec.rb +0 -16
  85. data/spec/unit/header/set_spec.rb +0 -20
  86. data/spec/unit/header/to_ary_spec.rb +0 -14
  87. data/spec/unit/header_spec.rb +0 -13
  88. data/spec/unit/indentation/indent_spec.rb +0 -21
  89. data/spec/unit/new_spec.rb +0 -73
  90. data/spec/unit/operation/alignment/call_spec.rb +0 -39
  91. data/spec/unit/operation/escape/call_spec.rb +0 -15
  92. data/spec/unit/operation/filter/call_spec.rb +0 -16
  93. data/spec/unit/operation/truncation/call_spec.rb +0 -30
  94. data/spec/unit/operation/wrapped/call_spec.rb +0 -40
  95. data/spec/unit/operations/new_spec.rb +0 -30
  96. data/spec/unit/options/access_spec.rb +0 -14
  97. data/spec/unit/options_spec.rb +0 -25
  98. data/spec/unit/orientation_spec.rb +0 -145
  99. data/spec/unit/padding_spec.rb +0 -117
  100. data/spec/unit/properties_spec.rb +0 -25
  101. data/spec/unit/render_repeat_spec.rb +0 -42
  102. data/spec/unit/render_spec.rb +0 -63
  103. data/spec/unit/render_with_spec.rb +0 -106
  104. data/spec/unit/renderer/ascii/coloring_spec.rb +0 -70
  105. data/spec/unit/renderer/ascii/indentation_spec.rb +0 -41
  106. data/spec/unit/renderer/ascii/multiline_spec.rb +0 -101
  107. data/spec/unit/renderer/ascii/padding_spec.rb +0 -88
  108. data/spec/unit/renderer/ascii/render_spec.rb +0 -68
  109. data/spec/unit/renderer/ascii/resizing_spec.rb +0 -114
  110. data/spec/unit/renderer/ascii/separator_spec.rb +0 -28
  111. data/spec/unit/renderer/basic/alignment_spec.rb +0 -88
  112. data/spec/unit/renderer/basic/coloring_spec.rb +0 -61
  113. data/spec/unit/renderer/basic/extract_column_widths_spec.rb +0 -28
  114. data/spec/unit/renderer/basic/filter_spec.rb +0 -53
  115. data/spec/unit/renderer/basic/indentation_spec.rb +0 -48
  116. data/spec/unit/renderer/basic/multiline_spec.rb +0 -74
  117. data/spec/unit/renderer/basic/new_spec.rb +0 -26
  118. data/spec/unit/renderer/basic/options_spec.rb +0 -52
  119. data/spec/unit/renderer/basic/padding_spec.rb +0 -76
  120. data/spec/unit/renderer/basic/render_spec.rb +0 -57
  121. data/spec/unit/renderer/basic/resizing_spec.rb +0 -96
  122. data/spec/unit/renderer/basic/separator_spec.rb +0 -43
  123. data/spec/unit/renderer/basic/truncation_spec.rb +0 -35
  124. data/spec/unit/renderer/basic/wrapping_spec.rb +0 -40
  125. data/spec/unit/renderer/border_spec.rb +0 -104
  126. data/spec/unit/renderer/render_spec.rb +0 -36
  127. data/spec/unit/renderer/select_spec.rb +0 -22
  128. data/spec/unit/renderer/unicode/coloring_spec.rb +0 -70
  129. data/spec/unit/renderer/unicode/indentation_spec.rb +0 -41
  130. data/spec/unit/renderer/unicode/padding_spec.rb +0 -61
  131. data/spec/unit/renderer/unicode/render_spec.rb +0 -68
  132. data/spec/unit/renderer/unicode/separator_spec.rb +0 -26
  133. data/spec/unit/renderer_spec.rb +0 -19
  134. data/spec/unit/rotate_spec.rb +0 -86
  135. data/spec/unit/row/access_spec.rb +0 -25
  136. data/spec/unit/row/call_spec.rb +0 -45
  137. data/spec/unit/row/data_spec.rb +0 -26
  138. data/spec/unit/row/each_spec.rb +0 -31
  139. data/spec/unit/row/equality_spec.rb +0 -73
  140. data/spec/unit/row/height_spec.rb +0 -27
  141. data/spec/unit/row/new_spec.rb +0 -41
  142. data/spec/unit/row/to_ary_spec.rb +0 -14
  143. data/spec/unit/to_s_spec.rb +0 -56
  144. data/spec/unit/transformation/extract_tuples_spec.rb +0 -35
  145. data/spec/unit/utf_spec.rb +0 -33
  146. data/spec/unit/validatable/validate_options_spec.rb +0 -33
  147. data/spec/unit/validatable_spec.rb +0 -32
  148. data/tasks/console.rake +0 -10
  149. data/tasks/coverage.rake +0 -11
  150. data/tasks/spec.rake +0 -29
  151. data/tty-table.gemspec +0 -30
@@ -1,10 +1,10 @@
1
- # encoding: utf-8
1
+ # frozen_string_literal: true
2
2
 
3
- require 'tty/table/border/unicode'
3
+ require_relative "../border/unicode"
4
4
 
5
5
  module TTY
6
6
  class Table
7
- class Renderer
7
+ module Renderer
8
8
  # Unicode representation of table renderer
9
9
  #
10
10
  # @api private
@@ -1,7 +1,9 @@
1
- # encoding: utf-8
1
+ # frozen_string_literal: true
2
2
 
3
- require 'forwardable'
4
- require 'tty/table/field'
3
+ require "forwardable"
4
+
5
+ require_relative "error"
6
+ require_relative "field"
5
7
 
6
8
  module TTY
7
9
  class Table
@@ -53,11 +55,11 @@ module TTY
53
55
  #
54
56
  # row = new TTY::Table::Row.new [1,2,3], %w[a b c]
55
57
  # row[0] # => 1
56
- # row['a'] # => 1
58
+ # row["a"] # => 1
57
59
  #
58
60
  # row = new TTY::Table::Row.new {"a": 1, "b": 2, "c": 3}
59
61
  # row[0] # => 1
60
- # row['a'] # => 1
62
+ # row["a"] # => 1
61
63
  #
62
64
  # @param [#to_ary] data
63
65
  # the row data
@@ -99,7 +101,7 @@ module TTY
99
101
  # Lookup a value in the row given an attribute allowing for Array or
100
102
  # Hash like indexing
101
103
  #
102
- # @exmaple
104
+ # @example
103
105
  # row[1]
104
106
  # row[:id]
105
107
  # row.call(:id)
@@ -111,7 +113,7 @@ module TTY
111
113
  data[attributes[attribute]].value
112
114
  else
113
115
  data.fetch(attribute) do |name|
114
- fail UnknownAttributeError, "the attribute #{name} is unkown"
116
+ raise UnknownAttributeError, "the attribute #{name} is unkown"
115
117
  end.value
116
118
  end
117
119
  end
@@ -142,7 +144,7 @@ module TTY
142
144
  # Iterate over each element in the Row
143
145
  #
144
146
  # @example
145
- # vec = Row.new [1,2,3], ['a','b','c']
147
+ # vec = Row.new [1,2,3], ["a","b","c"]
146
148
  # vec.each { |element| ... }
147
149
  #
148
150
  # @return [self]
@@ -1,4 +1,4 @@
1
- # encoding: utf-8
1
+ # frozen_string_literal: true
2
2
 
3
3
  module TTY
4
4
  class Table
@@ -26,7 +26,7 @@ module TTY
26
26
 
27
27
  # Group hash keys into header and values into rows
28
28
  #
29
- # @params [Hash] value
29
+ # @param [Hash] value
30
30
  #
31
31
  # @api public
32
32
  def self.group_header_and_rows(value)
@@ -1,4 +1,6 @@
1
- # encoding: utf-8
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "error"
2
4
 
3
5
  module TTY
4
6
  class Table
@@ -20,11 +22,27 @@ module TTY
20
22
  size = (rows[0] || []).size
21
23
  rows.each do |row|
22
24
  next if row.size == size
23
- fail TTY::Table::DimensionMismatchError,
24
- "row size differs (#{row.size} should be #{size})"
25
+ raise TTY::Table::DimensionMismatchError,
26
+ "row size differs (#{row.size} should be #{size})"
25
27
  end
26
28
  end
27
29
 
30
+ # Check if table row is the correct size
31
+ #
32
+ # @raise [DimensionMismatchError]
33
+ # if the row is not the correct length
34
+ #
35
+ # @return [nil]
36
+ #
37
+ # @api private
38
+ def assert_row_size(row, rows)
39
+ return if rows.empty?
40
+ size = rows.last.size
41
+ return if row.size == size
42
+ raise TTY::Table::DimensionMismatchError,
43
+ "row size differs (#{row.size} should be #{size})"
44
+ end
45
+
28
46
  # Check if table type is provided
29
47
  #
30
48
  # @raise [ArgumentRequired]
@@ -34,8 +52,8 @@ module TTY
34
52
  # @api private
35
53
  def assert_table_type(value)
36
54
  return value if value.is_a?(TTY::Table)
37
- fail ArgumentRequired,
38
- "Expected TTY::Table instance, got #{value.inspect}"
55
+ raise ArgumentRequired,
56
+ "Expected TTY::Table instance, got #{value.inspect}"
39
57
  end
40
58
 
41
59
  # def assert_matching_widths(rows)
@@ -52,11 +70,11 @@ module TTY
52
70
  rows = options[:rows]
53
71
 
54
72
  if header && (!header.is_a?(Array) || header.empty?)
55
- fail InvalidArgument, ':header must be a non-empty array'
73
+ raise InvalidArgument, ":header must be a non-empty array"
56
74
  end
57
75
 
58
76
  if rows && !(rows.is_a?(Array) || rows.is_a?(Hash))
59
- fail InvalidArgument, ':rows must be a non-empty array or hash'
77
+ raise InvalidArgument, ":rows must be a non-empty array or hash"
60
78
  end
61
79
  end
62
80
  end # Validatable
@@ -1,7 +1,7 @@
1
- # coding: utf-8
1
+ # frozen_string_literal: true
2
2
 
3
3
  module TTY
4
4
  class Table
5
- VERSION = "0.7.0"
6
- end
5
+ VERSION = "0.12.0"
6
+ end # Table
7
7
  end # TTY
metadata CHANGED
@@ -1,150 +1,98 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tty-table
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Murach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-15 00:00:00.000000000 Z
11
+ date: 2020-09-20 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: necromancer
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 0.3.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.3.0
41
13
  - !ruby/object:Gem::Dependency
42
14
  name: pastel
43
15
  requirement: !ruby/object:Gem::Requirement
44
16
  requirements:
45
17
  - - "~>"
46
18
  - !ruby/object:Gem::Version
47
- version: 0.7.0
19
+ version: '0.8'
48
20
  type: :runtime
49
21
  prerelease: false
50
22
  version_requirements: !ruby/object:Gem::Requirement
51
23
  requirements:
52
24
  - - "~>"
53
25
  - !ruby/object:Gem::Version
54
- version: 0.7.0
26
+ version: '0.8'
55
27
  - !ruby/object:Gem::Dependency
56
- name: tty-screen
28
+ name: strings
57
29
  requirement: !ruby/object:Gem::Requirement
58
30
  requirements:
59
31
  - - "~>"
60
32
  - !ruby/object:Gem::Version
61
- version: 0.5.0
33
+ version: 0.2.0
62
34
  type: :runtime
63
35
  prerelease: false
64
36
  version_requirements: !ruby/object:Gem::Requirement
65
37
  requirements:
66
38
  - - "~>"
67
39
  - !ruby/object:Gem::Version
68
- version: 0.5.0
40
+ version: 0.2.0
69
41
  - !ruby/object:Gem::Dependency
70
- name: verse
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: 0.5.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.5.0
83
- - !ruby/object:Gem::Dependency
84
- name: unicode-display_width
42
+ name: tty-screen
85
43
  requirement: !ruby/object:Gem::Requirement
86
44
  requirements:
87
45
  - - "~>"
88
46
  - !ruby/object:Gem::Version
89
- version: 1.1.0
47
+ version: '0.8'
90
48
  type: :runtime
91
49
  prerelease: false
92
50
  version_requirements: !ruby/object:Gem::Requirement
93
51
  requirements:
94
52
  - - "~>"
95
53
  - !ruby/object:Gem::Version
96
- version: 1.1.0
54
+ version: '0.8'
97
55
  - !ruby/object:Gem::Dependency
98
- name: bundler
56
+ name: rake
99
57
  requirement: !ruby/object:Gem::Requirement
100
58
  requirements:
101
59
  - - ">="
102
60
  - !ruby/object:Gem::Version
103
- version: 1.5.0
104
- - - "<"
105
- - !ruby/object:Gem::Version
106
- version: '2.0'
61
+ version: '0'
107
62
  type: :development
108
63
  prerelease: false
109
64
  version_requirements: !ruby/object:Gem::Requirement
110
65
  requirements:
111
66
  - - ">="
112
67
  - !ruby/object:Gem::Version
113
- version: 1.5.0
114
- - - "<"
115
- - !ruby/object:Gem::Version
116
- version: '2.0'
68
+ version: '0'
117
69
  - !ruby/object:Gem::Dependency
118
- name: rake
70
+ name: rspec
119
71
  requirement: !ruby/object:Gem::Requirement
120
72
  requirements:
121
73
  - - ">="
122
74
  - !ruby/object:Gem::Version
123
- version: '0'
75
+ version: '3.0'
124
76
  type: :development
125
77
  prerelease: false
126
78
  version_requirements: !ruby/object:Gem::Requirement
127
79
  requirements:
128
80
  - - ">="
129
81
  - !ruby/object:Gem::Version
130
- version: '0'
82
+ version: '3.0'
131
83
  description: A flexible and intuitive table generator
132
84
  email:
133
- - ''
85
+ - piotr@piotrmurach.com
134
86
  executables: []
135
87
  extensions: []
136
- extra_rdoc_files: []
88
+ extra_rdoc_files:
89
+ - README.md
90
+ - CHANGELOG.md
91
+ - LICENSE.txt
137
92
  files:
138
- - ".gitignore"
139
- - ".rspec"
140
- - ".travis.yml"
141
93
  - CHANGELOG.md
142
- - CODE_OF_CONDUCT.md
143
- - Gemfile
144
94
  - LICENSE.txt
145
95
  - README.md
146
- - Rakefile
147
- - benchmarks/speed.rb
148
96
  - lib/tty-table.rb
149
97
  - lib/tty/table.rb
150
98
  - lib/tty/table/alignment_set.rb
@@ -156,7 +104,7 @@ files:
156
104
  - lib/tty/table/border_dsl.rb
157
105
  - lib/tty/table/border_options.rb
158
106
  - lib/tty/table/column_constraint.rb
159
- - lib/tty/table/column_set.rb
107
+ - lib/tty/table/columns.rb
160
108
  - lib/tty/table/empty.rb
161
109
  - lib/tty/table/error.rb
162
110
  - lib/tty/table/field.rb
@@ -181,113 +129,16 @@ files:
181
129
  - lib/tty/table/transformation.rb
182
130
  - lib/tty/table/validatable.rb
183
131
  - lib/tty/table/version.rb
184
- - spec/spec_helper.rb
185
- - spec/unit/access_spec.rb
186
- - spec/unit/add_row_spec.rb
187
- - spec/unit/alignment_set/each_spec.rb
188
- - spec/unit/alignment_set/new_spec.rb
189
- - spec/unit/alignment_set/to_ary_spec.rb
190
- - spec/unit/alignment_spec.rb
191
- - spec/unit/border/ascii/rendering_spec.rb
192
- - spec/unit/border/new_spec.rb
193
- - spec/unit/border/null/rendering_spec.rb
194
- - spec/unit/border/options/from_spec.rb
195
- - spec/unit/border/options/new_spec.rb
196
- - spec/unit/border/unicode/rendering_spec.rb
197
- - spec/unit/border_options/new_spec.rb
198
- - spec/unit/border_options/update_spec.rb
199
- - spec/unit/column_constraint/enforce_spec.rb
200
- - spec/unit/column_constraint/widths_spec.rb
201
- - spec/unit/column_set/extract_widths_spec.rb
202
- - spec/unit/column_set/total_width_spec.rb
203
- - spec/unit/column_set/widths_from_spec.rb
204
- - spec/unit/data_spec.rb
205
- - spec/unit/each_spec.rb
206
- - spec/unit/each_with_index_spec.rb
207
- - spec/unit/empty_spec.rb
208
- - spec/unit/eql_spec.rb
209
- - spec/unit/field/equality_spec.rb
210
- - spec/unit/field/length_spec.rb
211
- - spec/unit/field/lines_spec.rb
212
- - spec/unit/field/new_spec.rb
213
- - spec/unit/field/width_spec.rb
214
- - spec/unit/filter_spec.rb
215
- - spec/unit/header/call_spec.rb
216
- - spec/unit/header/color_spec.rb
217
- - spec/unit/header/equality_spec.rb
218
- - spec/unit/header/height_spec.rb
219
- - spec/unit/header/new_spec.rb
220
- - spec/unit/header/set_spec.rb
221
- - spec/unit/header/to_ary_spec.rb
222
- - spec/unit/header_spec.rb
223
- - spec/unit/indentation/indent_spec.rb
224
- - spec/unit/new_spec.rb
225
- - spec/unit/operation/alignment/call_spec.rb
226
- - spec/unit/operation/escape/call_spec.rb
227
- - spec/unit/operation/filter/call_spec.rb
228
- - spec/unit/operation/truncation/call_spec.rb
229
- - spec/unit/operation/wrapped/call_spec.rb
230
- - spec/unit/operations/new_spec.rb
231
- - spec/unit/options/access_spec.rb
232
- - spec/unit/options_spec.rb
233
- - spec/unit/orientation_spec.rb
234
- - spec/unit/padding_spec.rb
235
- - spec/unit/properties_spec.rb
236
- - spec/unit/render_repeat_spec.rb
237
- - spec/unit/render_spec.rb
238
- - spec/unit/render_with_spec.rb
239
- - spec/unit/renderer/ascii/coloring_spec.rb
240
- - spec/unit/renderer/ascii/indentation_spec.rb
241
- - spec/unit/renderer/ascii/multiline_spec.rb
242
- - spec/unit/renderer/ascii/padding_spec.rb
243
- - spec/unit/renderer/ascii/render_spec.rb
244
- - spec/unit/renderer/ascii/resizing_spec.rb
245
- - spec/unit/renderer/ascii/separator_spec.rb
246
- - spec/unit/renderer/basic/alignment_spec.rb
247
- - spec/unit/renderer/basic/coloring_spec.rb
248
- - spec/unit/renderer/basic/extract_column_widths_spec.rb
249
- - spec/unit/renderer/basic/filter_spec.rb
250
- - spec/unit/renderer/basic/indentation_spec.rb
251
- - spec/unit/renderer/basic/multiline_spec.rb
252
- - spec/unit/renderer/basic/new_spec.rb
253
- - spec/unit/renderer/basic/options_spec.rb
254
- - spec/unit/renderer/basic/padding_spec.rb
255
- - spec/unit/renderer/basic/render_spec.rb
256
- - spec/unit/renderer/basic/resizing_spec.rb
257
- - spec/unit/renderer/basic/separator_spec.rb
258
- - spec/unit/renderer/basic/truncation_spec.rb
259
- - spec/unit/renderer/basic/wrapping_spec.rb
260
- - spec/unit/renderer/border_spec.rb
261
- - spec/unit/renderer/render_spec.rb
262
- - spec/unit/renderer/select_spec.rb
263
- - spec/unit/renderer/unicode/coloring_spec.rb
264
- - spec/unit/renderer/unicode/indentation_spec.rb
265
- - spec/unit/renderer/unicode/padding_spec.rb
266
- - spec/unit/renderer/unicode/render_spec.rb
267
- - spec/unit/renderer/unicode/separator_spec.rb
268
- - spec/unit/renderer_spec.rb
269
- - spec/unit/rotate_spec.rb
270
- - spec/unit/row/access_spec.rb
271
- - spec/unit/row/call_spec.rb
272
- - spec/unit/row/data_spec.rb
273
- - spec/unit/row/each_spec.rb
274
- - spec/unit/row/equality_spec.rb
275
- - spec/unit/row/height_spec.rb
276
- - spec/unit/row/new_spec.rb
277
- - spec/unit/row/to_ary_spec.rb
278
- - spec/unit/to_s_spec.rb
279
- - spec/unit/transformation/extract_tuples_spec.rb
280
- - spec/unit/utf_spec.rb
281
- - spec/unit/validatable/validate_options_spec.rb
282
- - spec/unit/validatable_spec.rb
283
- - tasks/console.rake
284
- - tasks/coverage.rake
285
- - tasks/spec.rake
286
- - tty-table.gemspec
287
- homepage: http://piotrmurach.github.io/tty/
132
+ homepage: https://ttytoolkit.org
288
133
  licenses:
289
134
  - MIT
290
- metadata: {}
135
+ metadata:
136
+ allowed_push_host: https://rubygems.org
137
+ bug_tracker_uri: https://github.com/piotrmurach/tty-table/issues
138
+ changelog_uri: https://github.com/piotrmurach/tty-table/blob/master/CHANGELOG.md
139
+ documentation_uri: https://www.rubydoc.info/gems/tty-table
140
+ homepage_uri: https://ttytoolkit.org
141
+ source_code_uri: https://github.com/piotrmurach/tty-table
291
142
  post_install_message:
292
143
  rdoc_options: []
293
144
  require_paths:
@@ -296,116 +147,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
296
147
  requirements:
297
148
  - - ">="
298
149
  - !ruby/object:Gem::Version
299
- version: '0'
150
+ version: 2.0.0
300
151
  required_rubygems_version: !ruby/object:Gem::Requirement
301
152
  requirements:
302
153
  - - ">="
303
154
  - !ruby/object:Gem::Version
304
155
  version: '0'
305
156
  requirements: []
306
- rubyforge_project:
307
- rubygems_version: 2.5.1
157
+ rubygems_version: 3.1.2
308
158
  signing_key:
309
159
  specification_version: 4
310
160
  summary: A flexible and intuitive table generator
311
- test_files:
312
- - spec/spec_helper.rb
313
- - spec/unit/access_spec.rb
314
- - spec/unit/add_row_spec.rb
315
- - spec/unit/alignment_set/each_spec.rb
316
- - spec/unit/alignment_set/new_spec.rb
317
- - spec/unit/alignment_set/to_ary_spec.rb
318
- - spec/unit/alignment_spec.rb
319
- - spec/unit/border/ascii/rendering_spec.rb
320
- - spec/unit/border/new_spec.rb
321
- - spec/unit/border/null/rendering_spec.rb
322
- - spec/unit/border/options/from_spec.rb
323
- - spec/unit/border/options/new_spec.rb
324
- - spec/unit/border/unicode/rendering_spec.rb
325
- - spec/unit/border_options/new_spec.rb
326
- - spec/unit/border_options/update_spec.rb
327
- - spec/unit/column_constraint/enforce_spec.rb
328
- - spec/unit/column_constraint/widths_spec.rb
329
- - spec/unit/column_set/extract_widths_spec.rb
330
- - spec/unit/column_set/total_width_spec.rb
331
- - spec/unit/column_set/widths_from_spec.rb
332
- - spec/unit/data_spec.rb
333
- - spec/unit/each_spec.rb
334
- - spec/unit/each_with_index_spec.rb
335
- - spec/unit/empty_spec.rb
336
- - spec/unit/eql_spec.rb
337
- - spec/unit/field/equality_spec.rb
338
- - spec/unit/field/length_spec.rb
339
- - spec/unit/field/lines_spec.rb
340
- - spec/unit/field/new_spec.rb
341
- - spec/unit/field/width_spec.rb
342
- - spec/unit/filter_spec.rb
343
- - spec/unit/header/call_spec.rb
344
- - spec/unit/header/color_spec.rb
345
- - spec/unit/header/equality_spec.rb
346
- - spec/unit/header/height_spec.rb
347
- - spec/unit/header/new_spec.rb
348
- - spec/unit/header/set_spec.rb
349
- - spec/unit/header/to_ary_spec.rb
350
- - spec/unit/header_spec.rb
351
- - spec/unit/indentation/indent_spec.rb
352
- - spec/unit/new_spec.rb
353
- - spec/unit/operation/alignment/call_spec.rb
354
- - spec/unit/operation/escape/call_spec.rb
355
- - spec/unit/operation/filter/call_spec.rb
356
- - spec/unit/operation/truncation/call_spec.rb
357
- - spec/unit/operation/wrapped/call_spec.rb
358
- - spec/unit/operations/new_spec.rb
359
- - spec/unit/options/access_spec.rb
360
- - spec/unit/options_spec.rb
361
- - spec/unit/orientation_spec.rb
362
- - spec/unit/padding_spec.rb
363
- - spec/unit/properties_spec.rb
364
- - spec/unit/render_repeat_spec.rb
365
- - spec/unit/render_spec.rb
366
- - spec/unit/render_with_spec.rb
367
- - spec/unit/renderer/ascii/coloring_spec.rb
368
- - spec/unit/renderer/ascii/indentation_spec.rb
369
- - spec/unit/renderer/ascii/multiline_spec.rb
370
- - spec/unit/renderer/ascii/padding_spec.rb
371
- - spec/unit/renderer/ascii/render_spec.rb
372
- - spec/unit/renderer/ascii/resizing_spec.rb
373
- - spec/unit/renderer/ascii/separator_spec.rb
374
- - spec/unit/renderer/basic/alignment_spec.rb
375
- - spec/unit/renderer/basic/coloring_spec.rb
376
- - spec/unit/renderer/basic/extract_column_widths_spec.rb
377
- - spec/unit/renderer/basic/filter_spec.rb
378
- - spec/unit/renderer/basic/indentation_spec.rb
379
- - spec/unit/renderer/basic/multiline_spec.rb
380
- - spec/unit/renderer/basic/new_spec.rb
381
- - spec/unit/renderer/basic/options_spec.rb
382
- - spec/unit/renderer/basic/padding_spec.rb
383
- - spec/unit/renderer/basic/render_spec.rb
384
- - spec/unit/renderer/basic/resizing_spec.rb
385
- - spec/unit/renderer/basic/separator_spec.rb
386
- - spec/unit/renderer/basic/truncation_spec.rb
387
- - spec/unit/renderer/basic/wrapping_spec.rb
388
- - spec/unit/renderer/border_spec.rb
389
- - spec/unit/renderer/render_spec.rb
390
- - spec/unit/renderer/select_spec.rb
391
- - spec/unit/renderer/unicode/coloring_spec.rb
392
- - spec/unit/renderer/unicode/indentation_spec.rb
393
- - spec/unit/renderer/unicode/padding_spec.rb
394
- - spec/unit/renderer/unicode/render_spec.rb
395
- - spec/unit/renderer/unicode/separator_spec.rb
396
- - spec/unit/renderer_spec.rb
397
- - spec/unit/rotate_spec.rb
398
- - spec/unit/row/access_spec.rb
399
- - spec/unit/row/call_spec.rb
400
- - spec/unit/row/data_spec.rb
401
- - spec/unit/row/each_spec.rb
402
- - spec/unit/row/equality_spec.rb
403
- - spec/unit/row/height_spec.rb
404
- - spec/unit/row/new_spec.rb
405
- - spec/unit/row/to_ary_spec.rb
406
- - spec/unit/to_s_spec.rb
407
- - spec/unit/transformation/extract_tuples_spec.rb
408
- - spec/unit/utf_spec.rb
409
- - spec/unit/validatable/validate_options_spec.rb
410
- - spec/unit/validatable_spec.rb
411
- has_rdoc:
161
+ test_files: []