toys 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/toys/standard_cli.rb +20 -30
- data/lib/toys/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f4c78df4b77f0cd73811fb7e17336c8b6997dcb4c6dfc7f200dc6bc588c9c38
|
4
|
+
data.tar.gz: 0fea6e156a93bec17bed4af1efb3013ff4b93df14b892466e004716d0fb7f9fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02ca03d431c1e4f90066f7e68aeaca139c652b2465672f27e949fa005e2bf5b7f76149388431d4479eb90099cf74a168cabb19b162d34d9e9c0adb56c41bf12e
|
7
|
+
data.tar.gz: 368121ea96d0d2d5444315f4c07e85f698a7d21afb7473ceb9933b83e9f01163209d904f57920eaad7ec254ad625c7eaf7c14296774fc7bef52c64fedd03644e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
+
### 0.9.2 / 2020-01-03
|
4
|
+
|
5
|
+
* IMPROVED: Mixins can now take real keyword arguments, and will pass them on properly to `on_initialize` and `on_include` blocks.
|
6
|
+
* CHANGED: `Toys::Utils::Exec` and the `:exec` mixin methods now take real keyword arguments rather than an `opts` hash. This means you should use keywords (or the double-splat operator) to avoid a deprecation warning on Ruby 2.7.
|
7
|
+
|
3
8
|
### 0.9.1 / 2019-12-22
|
4
9
|
|
5
10
|
* IMPROVED: `delegate_to` and `alias_tool` can take symbols as well as strings.
|
data/lib/toys/standard_cli.rb
CHANGED
@@ -167,36 +167,26 @@ module Toys
|
|
167
167
|
#
|
168
168
|
def default_middleware_stack
|
169
169
|
[
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
:show_root_version,
|
191
|
-
version_string: ::Toys::VERSION,
|
192
|
-
version_flag_desc: DEFAULT_VERSION_FLAG_DESC,
|
193
|
-
],
|
194
|
-
[
|
195
|
-
:handle_usage_errors,
|
196
|
-
],
|
197
|
-
[
|
198
|
-
:add_verbosity_flags,
|
199
|
-
],
|
170
|
+
Middleware.spec(:set_default_descriptions,
|
171
|
+
default_root_desc: DEFAULT_ROOT_DESC,
|
172
|
+
default_root_long_desc: DEFAULT_ROOT_LONG_DESC),
|
173
|
+
Middleware.spec(:show_help,
|
174
|
+
help_flags: true,
|
175
|
+
usage_flags: true,
|
176
|
+
list_flags: true,
|
177
|
+
recursive_flags: true,
|
178
|
+
search_flags: true,
|
179
|
+
show_all_subtools_flags: true,
|
180
|
+
default_recursive: true,
|
181
|
+
allow_root_args: true,
|
182
|
+
show_source_path: true,
|
183
|
+
use_less: true,
|
184
|
+
fallback_execution: true),
|
185
|
+
Middleware.spec(:show_root_version,
|
186
|
+
version_string: ::Toys::VERSION,
|
187
|
+
version_flag_desc: DEFAULT_VERSION_FLAG_DESC),
|
188
|
+
Middleware.spec(:handle_usage_errors),
|
189
|
+
Middleware.spec(:add_verbosity_flags),
|
200
190
|
]
|
201
191
|
end
|
202
192
|
|
data/lib/toys/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toys
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Azuma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: toys-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.9.
|
19
|
+
version: 0.9.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.9.
|
26
|
+
version: 0.9.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: highline
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 6.1.2
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 6.1.2
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: redcarpet
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.9.
|
159
|
+
version: 0.9.22
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.9.
|
166
|
+
version: 0.9.22
|
167
167
|
description: Toys is a configurable command line tool. Write commands in Ruby using
|
168
168
|
a simple DSL, and Toys will provide the command line executable and take care of
|
169
169
|
all the details such as argument parsing, online help, and error reporting. Toys
|
@@ -206,7 +206,7 @@ metadata:
|
|
206
206
|
changelog_uri: https://github.com/dazuma/toys/blob/master/toys/CHANGELOG.md
|
207
207
|
source_code_uri: https://github.com/dazuma/toys
|
208
208
|
bug_tracker_uri: https://github.com/dazuma/toys/issues
|
209
|
-
documentation_uri: https://dazuma.github.io/toys/gems/toys/v0.9.
|
209
|
+
documentation_uri: https://dazuma.github.io/toys/gems/toys/v0.9.2
|
210
210
|
post_install_message:
|
211
211
|
rdoc_options: []
|
212
212
|
require_paths:
|
@@ -222,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
222
|
- !ruby/object:Gem::Version
|
223
223
|
version: '0'
|
224
224
|
requirements: []
|
225
|
-
rubygems_version: 3.
|
225
|
+
rubygems_version: 3.1.2
|
226
226
|
signing_key:
|
227
227
|
specification_version: 4
|
228
228
|
summary: A configurable command line tool
|