cli-format 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/cli_format/presenter/equal.rb +11 -0
- data/lib/cli_format/presenter.rb +2 -2
- data/lib/cli_format/version.rb +1 -1
- data/lib/cli_format.rb +4 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4095cc6e627450d530471f19d29bf399c067f308120d31cfac0f176545b648b
|
4
|
+
data.tar.gz: 614a3d6e47e35bbeeb69a84dfa43c6e6c306e031a4d580a89f72e6ddbba63920
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7595f81c809bcc0532906626f3dbbb7c5beed07a8dbfba8b6fc5301772bcea2a93355397f8847f773337bce67106317da9182e58199be8184b67599462912851
|
7
|
+
data.tar.gz: d314e0f6eee35570425f1be3032c406700f047465ddc03ebcf3cbf09c5c7cde1f6e8ac974fae891c523b72e86d887f2f98842c491bda4018f1bfe407a011dba1
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *loosely* adheres to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [0.2.2] - 2022-02-15
|
7
|
+
- [#2](https://github.com/boltops-tools/cli-format/pull/2) add equal format
|
8
|
+
|
6
9
|
## [0.2.1] - 2021-12-25
|
7
10
|
- fix activesupport require
|
8
11
|
- ignore Gemfile.lock
|
data/lib/cli_format/presenter.rb
CHANGED
@@ -7,14 +7,14 @@ module CliFormat
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def show
|
10
|
-
presenter_class = "CliFormat::Presenter::#{format.
|
10
|
+
presenter_class = "CliFormat::Presenter::#{format.camelize}".constantize
|
11
11
|
presenter = presenter_class.new(@options, @header, @rows)
|
12
12
|
presenter.show
|
13
13
|
end
|
14
14
|
|
15
15
|
# Formats: tabs, markdown, json, csv, table, etc
|
16
16
|
def format
|
17
|
-
@options[:format] || ENV['CLI_FORMAT'] ||
|
17
|
+
@options[:format] || ENV['CLI_FORMAT'] || CliFormat.default_format # table
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
data/lib/cli_format/version.rb
CHANGED
data/lib/cli_format.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cli-format
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -118,6 +118,7 @@ files:
|
|
118
118
|
- lib/cli_format/presenter.rb
|
119
119
|
- lib/cli_format/presenter/base.rb
|
120
120
|
- lib/cli_format/presenter/csv.rb
|
121
|
+
- lib/cli_format/presenter/equal.rb
|
121
122
|
- lib/cli_format/presenter/json.rb
|
122
123
|
- lib/cli_format/presenter/tab.rb
|
123
124
|
- lib/cli_format/presenter/table.rb
|