terminal-table 3.0.2 → 4.0.0

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: 6213eea6e6bf691a9594f64660d97e3c56503c43bf2a95075f62aafca2b4d130
4
- data.tar.gz: a3511ef514b25731d1753bc695e7066ac04c76d9ce5da62ac5d8d3f6208daa3a
3
+ metadata.gz: d9db4bcea8ed79e15e8d0a0ec33cb35f757d72fe9e90777e5f52114ac12dd913
4
+ data.tar.gz: 8168380a0569095ec2674df9e8e87ae99a4d377b43e1d24ac97ca7cd3a42c765
5
5
  SHA512:
6
- metadata.gz: bb49c90ce6d6edbfe07c2c335b2c5bf25df41f67a3d31b4d413febebc597ce47906575e738dd05be742d948bd854948c605414ad581ea033b36099c52dd1cf36
7
- data.tar.gz: f49a1837097b5417887ba6eddd2deaad9e3dab933a67d22b23fd6028255dfd56d0e2d327dd80c87b6a99da94a5d00e2147feed2155b37590b72284610c3b408d
6
+ metadata.gz: e1a8408364ea76d142015a37009a606d4e9daa49b225fabe1a3e7133eee0e266d44c3f538fce149586af4bbbefc3e6afcdee64cb49dc5cbf8e6f7cc2471d5663
7
+ data.tar.gz: ae686076af61387d41592db7289fc39dde785f614bd840841a3950cca024402ebb59b20ce04bb7098f9c09349e1c042672fb051e7daaeb19be33504c1ad9791c
@@ -0,0 +1,6 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "github-actions"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "weekly"
@@ -1,5 +1,5 @@
1
1
  name: CI
2
- on: [push]
2
+ on: [push, pull_request, workflow_dispatch]
3
3
 
4
4
  jobs:
5
5
  test:
@@ -12,17 +12,16 @@ jobs:
12
12
 
13
13
  matrix:
14
14
  os: [ubuntu]
15
- ruby: [2.4, 2.5, 2.6, 2.7]
15
+ ruby: [2.4, 2.5, 2.6, 2.7, '3.0', 3.1, 3.2, 3.3, 3.4]
16
16
 
17
17
  runs-on: ${{ matrix.os }}-latest
18
18
 
19
19
  steps:
20
- - uses: actions/checkout@v2
20
+ - uses: actions/checkout@v4
21
21
 
22
22
  - uses: ruby/setup-ruby@v1
23
23
  with:
24
24
  bundler-cache: true
25
25
  ruby-version: ${{ matrix.ruby }}
26
26
 
27
- - run: bundle install
28
27
  - run: bundle exec rspec
data/History.rdoc CHANGED
@@ -1,3 +1,10 @@
1
+ 4.0.0 / 2025-01-28
2
+ ==================
3
+
4
+ - Non-unicode characters are no longer supported. They will be replaced.
5
+ - Headings may be set to nil.
6
+ - unicode-display-width version 3 supported.
7
+
1
8
  3.0.2 / 2021-09-19
2
9
  ==================
3
10
 
@@ -48,7 +48,7 @@ module Terminal
48
48
  val.public_send(positions[position], length)
49
49
  end
50
50
  def lines
51
- @value.to_s.split(/\n/)
51
+ @value.to_s.encode("utf-8", invalid: :replace).split(/\n/)
52
52
  end
53
53
 
54
54
  ##
@@ -109,6 +109,8 @@ module Terminal
109
109
  # Set the headings
110
110
 
111
111
  def headings= arrays
112
+ return if arrays.nil?
113
+
112
114
  arrays = [arrays] unless arrays.first.is_a?(Array)
113
115
  @headings = arrays.map do |array|
114
116
  row = Row.new(self, array)
@@ -1,5 +1,5 @@
1
1
  module Terminal
2
2
  class Table
3
- VERSION = '3.0.2'
3
+ VERSION = '4.0.0'
4
4
  end
5
5
  end
@@ -19,8 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.add_development_dependency "bundler", "~> 2"
20
20
  spec.add_development_dependency "rake", "~> 13.0"
21
21
  spec.add_development_dependency "rspec", ">= 3.0"
22
- spec.add_development_dependency "term-ansicolor"
23
22
  spec.add_development_dependency "pry"
24
23
 
25
- spec.add_runtime_dependency "unicode-display_width", [">= 1.1.1", "< 3"]
24
+ spec.add_runtime_dependency "unicode-display_width", [">= 1.1.1", "< 4"]
26
25
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: terminal-table
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Holowaychuk
8
8
  - Scott J. Goldman
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2021-09-19 00:00:00.000000000 Z
11
+ date: 2025-01-27 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
@@ -53,20 +52,6 @@ dependencies:
53
52
  - - ">="
54
53
  - !ruby/object:Gem::Version
55
54
  version: '3.0'
56
- - !ruby/object:Gem::Dependency
57
- name: term-ansicolor
58
- requirement: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: '0'
63
- type: :development
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
55
  - !ruby/object:Gem::Dependency
71
56
  name: pry
72
57
  requirement: !ruby/object:Gem::Requirement
@@ -90,7 +75,7 @@ dependencies:
90
75
  version: 1.1.1
91
76
  - - "<"
92
77
  - !ruby/object:Gem::Version
93
- version: '3'
78
+ version: '4'
94
79
  type: :runtime
95
80
  prerelease: false
96
81
  version_requirements: !ruby/object:Gem::Requirement
@@ -100,14 +85,14 @@ dependencies:
100
85
  version: 1.1.1
101
86
  - - "<"
102
87
  - !ruby/object:Gem::Version
103
- version: '3'
104
- description:
88
+ version: '4'
105
89
  email:
106
90
  - tj@vision-media.ca
107
91
  executables: []
108
92
  extensions: []
109
93
  extra_rdoc_files: []
110
94
  files:
95
+ - ".github/dependabot.yml"
111
96
  - ".github/workflows/ci.yml"
112
97
  - ".gitignore"
113
98
  - Gemfile
@@ -141,7 +126,6 @@ homepage: https://github.com/tj/terminal-table
141
126
  licenses:
142
127
  - MIT
143
128
  metadata: {}
144
- post_install_message:
145
129
  rdoc_options: []
146
130
  require_paths:
147
131
  - lib
@@ -156,8 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
140
  - !ruby/object:Gem::Version
157
141
  version: '0'
158
142
  requirements: []
159
- rubygems_version: 3.2.3
160
- signing_key:
143
+ rubygems_version: 3.6.2
161
144
  specification_version: 4
162
145
  summary: Simple, feature rich ascii table generation library
163
146
  test_files: []