toys 0.17.2 → 0.18.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a355166ce9ee49871c9be3fea6523eedcfa4232a842422c61ab9a5b9cb763945
4
- data.tar.gz: dec93e373be015e0b6ca0a7023861873597382ab9ed306e8baa151b155dbf26c
3
+ metadata.gz: 1219a7aaa39a426ad3df4a1206620094d8f23a0080a6f021fdfc008b3bac57e0
4
+ data.tar.gz: 481a4b1ff80f776d04093a74f3e0b0b3946148c584793a5c8258aa9681f11bf8
5
5
  SHA512:
6
- metadata.gz: e28dfdb67d395fafd4d5e3bf83f11cc102aa7e5deca60c348eb8eaddafae8c1e60ce3de4668347fa4ccdeb46a50f3a09153179ff8fa01ff2cebabf897cc04c90
7
- data.tar.gz: 248b5b5fe71eb79aac16633f132402135889d5117eb056b49c55251707d5e78f229fe013d3fb353c74a271d7fc72347b5ceaa88ce4a19ce1b4287c2c6cb6436b
6
+ metadata.gz: 545e3b289191f13b001e5ba0c1e36c23d69b81e533413b3680b672daf9f99a05e944721abc6fcb82a5456588969451ac14f44b833ae610b7eef0abd2de6a805f
7
+ data.tar.gz: '0480a435d1730c3ea06148a7f8d991454b7c5ee96e8732eb30291a0a14637650574ce53ad07e051b6d324193396369e351bf9ee1a6d7ab814c9be5c16f6be798'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History
2
2
 
3
+ ### v0.18.0 / 2025-12-05
4
+
5
+ * ADDED: The load_gem directive can now take version requirements as positional arguments
6
+ *
3
7
  ### v0.17.2 / 2025-11-30
4
8
 
5
9
  * DOCS: Fixed minor typos in readme files
@@ -9,6 +9,6 @@ module Toys
9
9
  # Current version of Toys core.
10
10
  # @return [String]
11
11
  #
12
- VERSION = "0.17.2"
12
+ VERSION = "0.18.0"
13
13
  end
14
14
  end
@@ -411,7 +411,9 @@ module Toys
411
411
  # current location.
412
412
  #
413
413
  # @param name [String] Name of the gem
414
- # @param version [String,Array<String>] Version requirements for the gem.
414
+ # @param versions [Array<String>] Version requirements for the gem.
415
+ # @param version [String,Array<String>] An alternate way to specify
416
+ # version requirements for the gem.
415
417
  # @param path [String] Optional path within the gem to the file or
416
418
  # directory to load. Defaults to the root of the gem's toys directory.
417
419
  # @param toys_dir [String] Optional override for the gem's toys
@@ -420,7 +422,7 @@ module Toys
420
422
  # @param as [String] Load into the given tool/namespace. If omitted,
421
423
  # configuration will be loaded into the current namespace.
422
424
  #
423
- def load_gem(name, version: nil, path: nil, toys_dir: nil, as: nil)
425
+ def load_gem(name, *versions, version: nil, path: nil, toys_dir: nil, as: nil)
424
426
  # Source available in the toys-core gem
425
427
  end
426
428
 
data/lib/toys/version.rb CHANGED
@@ -5,5 +5,5 @@ module Toys
5
5
  # Current version of the Toys command line executable.
6
6
  # @return [String]
7
7
  #
8
- VERSION = "0.17.2"
8
+ VERSION = "0.18.0"
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.2
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Azuma
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 0.17.2
18
+ version: 0.18.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 0.17.2
25
+ version: 0.18.0
26
26
  description: Toys is a configurable command line tool. Write commands in Ruby using
27
27
  a simple DSL, and Toys will provide the command line executable and take care of
28
28
  all the details such as argument parsing, online help, and error reporting. Toys
@@ -120,10 +120,10 @@ homepage: https://github.com/dazuma/toys
120
120
  licenses:
121
121
  - MIT
122
122
  metadata:
123
- changelog_uri: https://dazuma.github.io/toys/gems/toys/v0.17.2/file.CHANGELOG.html
123
+ changelog_uri: https://dazuma.github.io/toys/gems/toys/v0.18.0/file.CHANGELOG.html
124
124
  source_code_uri: https://github.com/dazuma/toys/tree/main/toys
125
125
  bug_tracker_uri: https://github.com/dazuma/toys/issues
126
- documentation_uri: https://dazuma.github.io/toys/gems/toys/v0.17.2
126
+ documentation_uri: https://dazuma.github.io/toys/gems/toys/v0.18.0
127
127
  rdoc_options: []
128
128
  require_paths:
129
129
  - lib