changed
CHANGELOG.md
|
@@ -1,5 +1,13 @@
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+ ## v3.1.1 (2021-01-30)
|
4
|
+
|
5
|
+ Bugfix: Fixes a multiline text rendering crash when inputs had differing
|
6
|
+ lengths. Thanks to @chulkilee for the fix.
|
7
|
+
|
8
|
+ No breaking changes.
|
9
|
+
|
10
|
+
|
3
11
|
## v3.1.0 (2020-12-31)
|
4
12
|
|
5
13
|
Multiline cell support 🎉
|
|
@@ -9,7 +17,7 @@ ability to render multiline strings without any extra effort on behalf of the
|
9
17
|
calling clients, simply insert your line breaks into your strings and the
|
10
18
|
feature will handle rendering with correct padding, coloring & alignment.
|
11
19
|
|
12
|
- No breaking changes.
|
20
|
+ No (known) breaking changes.
|
13
21
|
|
14
22
|
## v3.0.0 (2020-04-19)
|
changed
README.md
|
@@ -60,7 +60,7 @@ The package is [available on Hex](https://hex.pm/packages/table_rex), therefore:
|
60
60
|
|
61
61
|
```elixir
|
62
62
|
def deps do
|
63
|
- [{:table_rex, "~> 3.1.0"}]
|
63
|
+ [{:table_rex, "~> 3.1.1"}]
|
64
64
|
end
|
65
65
|
```
|
66
66
|
|
|
@@ -316,7 +316,18 @@ To run the test suite, from the project directory, do:
|
316
316
|
mix test
|
317
317
|
```
|
318
318
|
|
319
|
- ## Publish to Hex
|
319
|
+ ## Release package to Hex
|
320
|
+
|
321
|
+ First, bump the semver version & write the changelog, pushing that commit.
|
322
|
+
|
323
|
+ Then, tag HEAD with the version & push:
|
324
|
+
|
325
|
+ ```bash
|
326
|
+ git tag -a vx.x.x -m "vx.x.x"
|
327
|
+ git push --tags
|
328
|
+ ```
|
329
|
+
|
330
|
+ Then login & publish to Hex:
|
320
331
|
|
321
332
|
```bash
|
322
333
|
# Login to hex to retrieve API Key
|
changed
hex_metadata.config
|
@@ -15,4 +15,4 @@
|
15
15
|
{<<"links">>,[{<<"GitHub">>,<<"https://github.com/djm/table_rex">>}]}.
|
16
16
|
{<<"name">>,<<"table_rex">>}.
|
17
17
|
{<<"requirements">>,[]}.
|
18
|
- {<<"version">>,<<"3.1.0">>}.
|
18
|
+ {<<"version">>,<<"3.1.1">>}.
|
changed
lib/table_rex/renderer/text.ex
|
@@ -402,7 +402,7 @@ defmodule TableRex.Renderer.Text do
|
402
402
|
|> String.split("\n")
|
403
403
|
|
404
404
|
height = Enum.count(lines)
|
405
|
- width = Enum.max(lines) |> String.length()
|
405
|
+ width = lines |> Enum.map(&String.length/1) |> Enum.max()
|
406
406
|
{width + padding * 2, height}
|
407
407
|
end
|
changed
mix.exs
|
@@ -2,7 +2,7 @@ defmodule TableRex.Mixfile do
|
2
2
|
use Mix.Project
|
3
3
|
|
4
4
|
@source_url "https://github.com/djm/table_rex"
|
5
|
- @version "3.1.0"
|
5
|
+ @version "3.1.1"
|
6
6
|
|
7
7
|
def project do
|
8
8
|
[
|