toys 0.9.1 → 0.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9e402d9e7cee9139d8ccbdaecc8618b6fa080a880bda920c0e4964946504068
4
- data.tar.gz: c0b00b019405ed8a07dc3fee0b3514ead52c78dd5eec403628fd4b91f78cd763
3
+ metadata.gz: 6f4c78df4b77f0cd73811fb7e17336c8b6997dcb4c6dfc7f200dc6bc588c9c38
4
+ data.tar.gz: 0fea6e156a93bec17bed4af1efb3013ff4b93df14b892466e004716d0fb7f9fa
5
5
  SHA512:
6
- metadata.gz: 7f81c5d3fd8670acac4337ca33ea657e354a5e26bdff9bfa8b7d4ed10701f0ff6937a44135832755bdde496c1cd04164a873588ae5afdd3b3399b1cc97e01c9a
7
- data.tar.gz: 716002617b54f7095d4ee4ec7e445f79e74f168642db1b9d99a702290cb59435e0fbdfe6f6d339e5b5d6e0ae285673de03f6cb2c82ed792035cc7a4e5c299af4
6
+ metadata.gz: 02ca03d431c1e4f90066f7e68aeaca139c652b2465672f27e949fa005e2bf5b7f76149388431d4479eb90099cf74a168cabb19b162d34d9e9c0adb56c41bf12e
7
+ data.tar.gz: 368121ea96d0d2d5444315f4c07e85f698a7d21afb7473ceb9933b83e9f01163209d904f57920eaad7ec254ad625c7eaf7c14296774fc7bef52c64fedd03644e
@@ -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.
@@ -167,36 +167,26 @@ module Toys
167
167
  #
168
168
  def default_middleware_stack
169
169
  [
170
- [
171
- :set_default_descriptions,
172
- default_root_desc: DEFAULT_ROOT_DESC,
173
- default_root_long_desc: DEFAULT_ROOT_LONG_DESC,
174
- ],
175
- [
176
- :show_help,
177
- help_flags: true,
178
- usage_flags: true,
179
- list_flags: true,
180
- recursive_flags: true,
181
- search_flags: true,
182
- show_all_subtools_flags: true,
183
- default_recursive: true,
184
- allow_root_args: true,
185
- show_source_path: true,
186
- use_less: true,
187
- fallback_execution: true,
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
 
@@ -26,5 +26,5 @@ module Toys
26
26
  # Current version of the Toys command line executable.
27
27
  # @return [String]
28
28
  #
29
- VERSION = "0.9.1"
29
+ VERSION = "0.9.2"
30
30
  end
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.1
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: 2019-12-23 00:00:00.000000000 Z
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.1
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.1
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: '6.2'
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: '6.2'
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.20
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.20
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.1
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.0.3
225
+ rubygems_version: 3.1.2
226
226
  signing_key:
227
227
  specification_version: 4
228
228
  summary: A configurable command line tool