cli-kit 3.0.0 → 4.0.0
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 +5 -5
- data/.github/CODEOWNERS +1 -0
- data/.github/dependabot.yml +10 -0
- data/.github/probots.yml +2 -0
- data/.github/workflows/ruby.yml +32 -0
- data/.rubocop.yml +13 -15
- data/Gemfile +3 -2
- data/Gemfile.lock +35 -30
- data/README.md +102 -4
- data/Rakefile +27 -0
- data/TODO.md +5 -0
- data/bin/console +3 -3
- data/bin/test_gen +31 -0
- data/bin/testunit +2 -2
- data/cli-kit.gemspec +8 -7
- data/dev.yml +1 -1
- data/examples/README.md +21 -0
- data/examples/minimal/example.rb +22 -0
- data/examples/single-file/example.rb +71 -0
- data/examples/todo-list/README.md +1 -0
- data/gen/lib/gen/commands/help.rb +4 -4
- data/gen/lib/gen/generator.rb +12 -10
- data/gen/lib/gen.rb +5 -1
- data/gen/template/Gemfile +6 -0
- data/gen/template/bin/testunit +23 -0
- data/gen/template/bin/update-deps +2 -1
- data/gen/template/lib/__app__/commands/example.rb +0 -1
- data/gen/template/test/example_test.rb +17 -0
- data/gen/template/test/test_helper.rb +22 -0
- data/lib/cli/kit/base_command.rb +14 -8
- data/lib/cli/kit/command_registry.rb +1 -1
- data/lib/cli/kit/config.rb +39 -4
- data/lib/cli/kit/error_handler.rb +56 -36
- data/lib/cli/kit/executor.rb +39 -10
- data/lib/cli/kit/ini.rb +16 -7
- data/lib/cli/kit/logger.rb +82 -0
- data/lib/cli/kit/resolver.rb +2 -2
- data/lib/cli/kit/support/test_helper.rb +244 -0
- data/lib/cli/kit/support.rb +9 -0
- data/lib/cli/kit/system.rb +61 -22
- data/lib/cli/kit/util.rb +189 -0
- data/lib/cli/kit/version.rb +1 -1
- data/lib/cli/kit.rb +4 -1
- metadata +36 -20
- data/.travis.yml +0 -5
metadata
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cli-kit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 4.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Burke Libbey
|
|
8
|
-
-
|
|
8
|
+
- Aaron Olson
|
|
9
9
|
- Lisa Ugray
|
|
10
|
-
autorequire:
|
|
10
|
+
autorequire:
|
|
11
11
|
bindir: exe
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 2021-11-10 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: cli-ui
|
|
@@ -18,77 +18,87 @@ dependencies:
|
|
|
18
18
|
requirements:
|
|
19
19
|
- - ">="
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 1.1.
|
|
21
|
+
version: 1.1.4
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
25
|
requirements:
|
|
26
26
|
- - ">="
|
|
27
27
|
- !ruby/object:Gem::Version
|
|
28
|
-
version: 1.1.
|
|
28
|
+
version: 1.1.4
|
|
29
29
|
- !ruby/object:Gem::Dependency
|
|
30
30
|
name: bundler
|
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
|
32
32
|
requirements:
|
|
33
33
|
- - "~>"
|
|
34
34
|
- !ruby/object:Gem::Version
|
|
35
|
-
version: '1
|
|
35
|
+
version: '2.1'
|
|
36
36
|
type: :development
|
|
37
37
|
prerelease: false
|
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
|
39
39
|
requirements:
|
|
40
40
|
- - "~>"
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
|
-
version: '1
|
|
42
|
+
version: '2.1'
|
|
43
43
|
- !ruby/object:Gem::Dependency
|
|
44
|
-
name:
|
|
44
|
+
name: minitest
|
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
|
46
46
|
requirements:
|
|
47
47
|
- - "~>"
|
|
48
48
|
- !ruby/object:Gem::Version
|
|
49
|
-
version: '
|
|
49
|
+
version: '5.0'
|
|
50
50
|
type: :development
|
|
51
51
|
prerelease: false
|
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
|
53
53
|
requirements:
|
|
54
54
|
- - "~>"
|
|
55
55
|
- !ruby/object:Gem::Version
|
|
56
|
-
version: '
|
|
56
|
+
version: '5.0'
|
|
57
57
|
- !ruby/object:Gem::Dependency
|
|
58
|
-
name:
|
|
58
|
+
name: rake
|
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
|
60
60
|
requirements:
|
|
61
61
|
- - "~>"
|
|
62
62
|
- !ruby/object:Gem::Version
|
|
63
|
-
version: '
|
|
63
|
+
version: '13.0'
|
|
64
64
|
type: :development
|
|
65
65
|
prerelease: false
|
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
|
67
67
|
requirements:
|
|
68
68
|
- - "~>"
|
|
69
69
|
- !ruby/object:Gem::Version
|
|
70
|
-
version: '
|
|
70
|
+
version: '13.0'
|
|
71
71
|
description: Terminal UI framework extensions
|
|
72
72
|
email:
|
|
73
73
|
- burke.libbey@shopify.com
|
|
74
|
-
-
|
|
74
|
+
- aaron.olson@shopify.com
|
|
75
75
|
- lisa.ugray@shopify.com
|
|
76
76
|
executables:
|
|
77
77
|
- cli-kit
|
|
78
78
|
extensions: []
|
|
79
79
|
extra_rdoc_files: []
|
|
80
80
|
files:
|
|
81
|
+
- ".github/CODEOWNERS"
|
|
82
|
+
- ".github/dependabot.yml"
|
|
83
|
+
- ".github/probots.yml"
|
|
84
|
+
- ".github/workflows/ruby.yml"
|
|
81
85
|
- ".gitignore"
|
|
82
86
|
- ".rubocop.yml"
|
|
83
|
-
- ".travis.yml"
|
|
84
87
|
- Gemfile
|
|
85
88
|
- Gemfile.lock
|
|
86
89
|
- LICENSE.txt
|
|
87
90
|
- README.md
|
|
91
|
+
- Rakefile
|
|
92
|
+
- TODO.md
|
|
88
93
|
- bin/console
|
|
94
|
+
- bin/test_gen
|
|
89
95
|
- bin/testunit
|
|
90
96
|
- cli-kit.gemspec
|
|
91
97
|
- dev.yml
|
|
98
|
+
- examples/README.md
|
|
99
|
+
- examples/minimal/example.rb
|
|
100
|
+
- examples/single-file/example.rb
|
|
101
|
+
- examples/todo-list/README.md
|
|
92
102
|
- exe/cli-kit
|
|
93
103
|
- gen/lib/gen.rb
|
|
94
104
|
- gen/lib/gen/commands.rb
|
|
@@ -99,6 +109,7 @@ files:
|
|
|
99
109
|
- gen/template/.gitignore
|
|
100
110
|
- gen/template/Gemfile
|
|
101
111
|
- gen/template/README.md
|
|
112
|
+
- gen/template/bin/testunit
|
|
102
113
|
- gen/template/bin/update-deps
|
|
103
114
|
- gen/template/dev-gems.yml
|
|
104
115
|
- gen/template/dev-vendor.yml
|
|
@@ -109,6 +120,8 @@ files:
|
|
|
109
120
|
- gen/template/lib/__app__/commands/example.rb
|
|
110
121
|
- gen/template/lib/__app__/commands/help.rb
|
|
111
122
|
- gen/template/lib/__app__/entry_point.rb
|
|
123
|
+
- gen/template/test/example_test.rb
|
|
124
|
+
- gen/template/test/test_helper.rb
|
|
112
125
|
- lib/cli/kit.rb
|
|
113
126
|
- lib/cli/kit/autocall.rb
|
|
114
127
|
- lib/cli/kit/base_command.rb
|
|
@@ -118,15 +131,19 @@ files:
|
|
|
118
131
|
- lib/cli/kit/executor.rb
|
|
119
132
|
- lib/cli/kit/ini.rb
|
|
120
133
|
- lib/cli/kit/levenshtein.rb
|
|
134
|
+
- lib/cli/kit/logger.rb
|
|
121
135
|
- lib/cli/kit/resolver.rb
|
|
122
136
|
- lib/cli/kit/ruby_backports/enumerable.rb
|
|
137
|
+
- lib/cli/kit/support.rb
|
|
138
|
+
- lib/cli/kit/support/test_helper.rb
|
|
123
139
|
- lib/cli/kit/system.rb
|
|
140
|
+
- lib/cli/kit/util.rb
|
|
124
141
|
- lib/cli/kit/version.rb
|
|
125
142
|
homepage: https://github.com/shopify/cli-kit
|
|
126
143
|
licenses:
|
|
127
144
|
- MIT
|
|
128
145
|
metadata: {}
|
|
129
|
-
post_install_message:
|
|
146
|
+
post_install_message:
|
|
130
147
|
rdoc_options: []
|
|
131
148
|
require_paths:
|
|
132
149
|
- lib
|
|
@@ -141,9 +158,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
141
158
|
- !ruby/object:Gem::Version
|
|
142
159
|
version: '0'
|
|
143
160
|
requirements: []
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
signing_key:
|
|
161
|
+
rubygems_version: 3.2.20
|
|
162
|
+
signing_key:
|
|
147
163
|
specification_version: 4
|
|
148
164
|
summary: Terminal UI framework extensions
|
|
149
165
|
test_files: []
|