toys 0.10.2 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82fdaa52273dc684b712f6912d6819fb04fe0d6318b5850c91afe4a2f731b8c4
4
- data.tar.gz: 9993d58721d8c289a6d0c5897a6abbb0184268ea306d5ca560320897c6da0c79
3
+ metadata.gz: b82bf46b4d621e2d8c568c3c87e7709a96232805f761bedc9e9fb62b5e46d1ac
4
+ data.tar.gz: 86e8687ffde2eecabf121a8b6aa09924a8e83e58da1db70558d2b62a3f394014
5
5
  SHA512:
6
- metadata.gz: 9bbc65bd24e1e76607768d70e2361527113db9e5b0d4edef00185230ac81d23048ca698f36ed6569f3037d9888c4d7629a871dd483146fbc0a1b3649257ef60f
7
- data.tar.gz: 02e66995d3e2b2f05dea4646163e7a44cca3408c5700f05769db23d7147392e1b0e69c83ddcdc54bbf127bc73e601fb1aa75a6e3c9133e1133195978150a7eeb
6
+ metadata.gz: 76e7d28e8e236b3239ce2ecf7328a6e684a3b085f317ed151c8a3e4bead6af6c8af9e4f125a2116d83917459e3bf163fbb6cc3264a7019caf6e42f3bedd21f85
7
+ data.tar.gz: f2c4a2aef746be262ab489ad12ff3e8321067f939eaa023eac77f0bf1b63484af4b4e3923e241cc4fa00f61a94bbdf40bf424d34460d595672e5c93e3d40a05f
@@ -1,5 +1,38 @@
1
1
  # Release History
2
2
 
3
+ ### 0.11.1 / 2020-08-24
4
+
5
+ * FIXED: The `.lib` directory actually works as advertised.
6
+
7
+ ### 0.11.0 / 2020-08-21
8
+
9
+ * ADDED: The toys search path can be truncated using the `truncate_load_path!` directive.
10
+ * ADDED: The `:clean` template recognizes `:gitignore` as a path indicating all gitignored files.
11
+ * IMPROVED: Generated help for delegates now includes the information for the target tool, plus subtools of the delegate.
12
+ * IMPROVED: The `:bundler` mixin searches for `gems.rb` and `.gems.rb` in addition to `Gemfile`.
13
+ * IMPROVED: The `:budnler` mixin can load a specific Gemfile path.
14
+ * FIXED: The loader can now find `.data` and `.lib` directories at the root level of a `.toys` directory.
15
+ * FIXED: Exec::Result correctly reports processes that terminated due to signals.
16
+ * FIXED: Fixed a rare Exec capture failure that resulted from a race condition when closing streams.
17
+ * DOCS: The Toys user guide now covers static bundle loading and `truncate_load_path!`.
18
+
19
+ ### 0.10.5 / 2020-07-18
20
+
21
+ * IMPROVED: The bundler mixin silences bundler output during bundle setup.
22
+ * IMPROVED: The bundler mixin allows toys and toys-core to be in the Gemfile. It checks their version requirements against the running Toys version, and either adds the corret version to the bundle or raises IncompatibleToysError.
23
+ * IMPROVED: The bundler mixin automatically updates the bundle if install fails (typically because a transitive dependency has been explicitly updated.)
24
+ * FIXED: Some cases of transitive dependency handling by the bundler mixin.
25
+ * FIXED: Fixed a crash when computing suggestions, when running with a bundle on Ruby 2.6 or earlier.
26
+
27
+ ### 0.10.4 / 2020-07-11
28
+
29
+ * IMPROVED: Bundler integration can now handle Toys itself being in the bundle, as long as the version requirements cover the running Toys version.
30
+ * IMPROVED: Passing `static: true` to the `:bundler` mixin installs the bundle at definition rather than execution time.
31
+
32
+ ### 0.10.3 / 2020-07-04
33
+
34
+ * FIXED: The `exec_separate_tool` method in the `:exec` mixin no longer throws ENOEXEC on Windows.
35
+
3
36
  ### 0.10.2 / 2020-07-03
4
37
 
5
38
  * FIXED: The load path no longer loses the toys and toys-core directories after a bundle install.
data/README.md CHANGED
@@ -240,8 +240,9 @@ Note that if you normally run Rake with Bundler (e.g. `bundle exec rake test`),
240
240
  you may need to add Toys to your Gemfile and use Bundler to invoke Toys (i.e.
241
241
  `bundle exec toys test`). This is because Toys is just calling the Rake API to
242
242
  run your task, and the Rake task might require the bundle. However, when Toys
243
- is not wrapping Rake, typical practice is actually *not* to use Bundler. Toys
244
- provides its own mechanisms to activate and even install needed gems for you.
243
+ is not wrapping Rake, typical practice is actually *not* to use `bundle exec`.
244
+ Toys provides its own mechanisms to setup a bundle, or to activate and even
245
+ install individual gems.
245
246
 
246
247
  So far, we've made Toys a front-end for your Rake tasks. This may be useful by
247
248
  itself. Toys lets you pass command line arguments "normally" to tools, whereas
@@ -252,7 +253,7 @@ than Rake does.
252
253
  But you also might find Toys a more natural way to *write* tasks, and indeed
253
254
  you can often rewrite an entire Rakefile as a Toys file and get quite a bit of
254
255
  benefit in readability and maintainability. For an example, see the
255
- [Toys file for the Toys repo itself](https://github.com/dazuma/toys/blob/master/toys/.toys.rb).
256
+ [Toys file for the Toys repo itself](https://github.com/dazuma/toys/blob/main/toys/.toys.rb).
256
257
  It contains the Toys scripts that I use to develop, test, and release Toys
257
258
  itself. Yes, Toys is self-hosted. You'll notice most of this Toys file consists
258
259
  of template expansions. Toys provides templates for a lot of common build,
@@ -1,4 +1,6 @@
1
+ <!--
1
2
  # @title Toys User Guide
3
+ -->
2
4
 
3
5
  # Toys User Guide
4
6
 
@@ -1300,7 +1302,29 @@ the same point (the current directory) in the search path.
1300
1302
  Note that in the search path above, steps (1) and (2) are *context-dependent*.
1301
1303
  That is, they may be different depending on what directory you are in. However,
1302
1304
  step (3) is *not* context-dependent, and is searched regardless of where you
1303
- are located. Tools defined here are **global**, available everywhere.
1305
+ are located. Tools defined here are *global*, available everywhere.
1306
+
1307
+ #### Stopping search
1308
+
1309
+ Though it is uncommon practice, it is possible to stop the search process and
1310
+ prevent Toys from loading tools further down in the search path (e.g. prevent
1311
+ tools from being defined from parent directories or global directories). To do
1312
+ so, use the directive
1313
+ [Toys::DSL::Tool#truncate_load_path!](https://dazuma.github.io/toys/gems/toys-core/latest/Toys/DSL/Tool#truncate_load_path!-instance_method). This directive removes all
1314
+ directories further down the search path. It can be used, for example, to
1315
+ disable global tools when you run Toys from the current directory. It can also
1316
+ be useful if you are using [Bundler integration](#Using_bundler_with_a_tool) to
1317
+ prevent bundle conflicts with parent directories, by disabling tools from
1318
+ parent directories.
1319
+
1320
+ The `truncate_load_path!` directive works only if no tools from further down
1321
+ the search path have been loaded yet. It will raise
1322
+ [Toys::ToolDefinitionError](https://dazuma.github.io/toys/gems/toys-core/latest/Toys/ToolDefinitionError)
1323
+ if it fails to truncate the load path. In most cases, Toys is very smart about
1324
+ loading tools only when needed, but there are exceptions. To minimize the
1325
+ chance of problems, if you need to use `truncate_load_path!`, locate it as
1326
+ early as possible in your Toys files, typically at the top of the
1327
+ [index file](#Index_files).
1304
1328
 
1305
1329
  ## The execution environment
1306
1330
 
@@ -1308,9 +1332,9 @@ This section describes the context and resources available to your tool when it
1308
1332
  is running; that is, what you can call from your tool's `run` method.
1309
1333
 
1310
1334
  Each tool is defined as a class that subclasses
1311
- [Toys::Context](https://dazuma.github.io/toys/gems/toys-core/latest/Toys/Context). The base
1312
- class defines a number of methods, and provides access to a variety of data and
1313
- objects relevant to your tool. We have already seen earlier how to use the
1335
+ [Toys::Context](https://dazuma.github.io/toys/gems/toys-core/latest/Toys/Context).
1336
+ The base class defines helper methods, and provides access to a variety of data
1337
+ and objects relevant to your tool. We have already seen earlier how to use the
1314
1338
  [Toys::Context#get](https://dazuma.github.io/toys/gems/toys-core/latest/Toys/Context#get-instance_method)
1315
1339
  method to retrieve option values, and how to use the
1316
1340
  [Toys::Context#exit](https://dazuma.github.io/toys/gems/toys-core/latest/Toys/Context#exit-instance_method)
@@ -1380,8 +1404,8 @@ A common operation a tool might want to do is "call" another tool. This can be
1380
1404
  done via the CLI object, which you can retrieve using the `CLI` key or the
1381
1405
  [Toys::Context#cli method](https://dazuma.github.io/toys/gems/toys-core/latest/Toys/Context#cli-instance_method).
1382
1406
  These return the current instance of
1383
- [Toys::CLI](https://dazuma.github.io/toys/gems/toys-core/latest/Toys/CLI) which is the
1384
- "main" interface to Toys. In particular, it provides the
1407
+ [Toys::CLI](https://dazuma.github.io/toys/gems/toys-core/latest/Toys/CLI) which
1408
+ is the "main" interface to Toys. In particular, it provides the
1385
1409
  [Toys::CLI#run method](https://dazuma.github.io/toys/gems/toys-core/latest/Toys/CLI#run-instance_method)
1386
1410
  which can be used to call another tool:
1387
1411
 
@@ -1799,8 +1823,8 @@ directive by setting properties on the template object.
1799
1823
 
1800
1824
  Finally, templates are classes, and you can create a template directly as a
1801
1825
  class by including the
1802
- [Toys::Template](https://dazuma.github.io/toys/gems/toys-core/latest/Toys/Template) module
1803
- in your class definition.
1826
+ [Toys::Template](https://dazuma.github.io/toys/gems/toys-core/latest/Toys/Template)
1827
+ module in your class definition.
1804
1828
 
1805
1829
  class GreetTemplate
1806
1830
  include Toys::Template
@@ -2060,6 +2084,8 @@ tool is *executed*. This assumes the bundle is already installed, and brings
2060
2084
  the appropriate gems into the Ruby load path. That is, it's basically the same
2061
2085
  as `bundle exec`, but it applies only to the running tool.
2062
2086
 
2087
+ #### Applying bundler to all subtools
2088
+
2063
2089
  In many cases, you might find that bundler is needed for many or most of the
2064
2090
  tools you write for a particular project. In this case, you might find it
2065
2091
  convenient to use
@@ -2090,7 +2116,7 @@ for more information on `subtool_apply`.
2090
2116
  By default, the `:bundler` mixin will look for a `Gemfile` within the `.toys`
2091
2117
  directory (if your tool is defined in one), and if one is not found there,
2092
2118
  within the [context directory](#The_context_directory) (the directory
2093
- containing your `.toys` directory or `.toys.rb`file), and if one still is not
2119
+ containing your `.toys` directory or `.toys.rb` file), and if one still is not
2094
2120
  found, in the current working directory. You can change this behavior by
2095
2121
  passing an option to the `:bundler` mixin. For example, you can search only the
2096
2122
  current working directory by passing `search_dirs: :current` as such:
@@ -2100,7 +2126,24 @@ current working directory by passing `search_dirs: :current` as such:
2100
2126
  # etc...
2101
2127
  end
2102
2128
 
2103
- You can also pass a specific directory path to this option.
2129
+ The `:search_dirs` option takes a either directory path (as a string) or a
2130
+ symbol indicating a "semantic" directory. You can also pass an array of
2131
+ directories that will be searched in order. For each directory, Toys will look
2132
+ for a file called `.gems.rb`, `gems.rb`, or `Gemfile` (in that order) and use
2133
+ the first one that it finds.
2134
+
2135
+ The supported "semantic directory" symbols are `:current` indicating the
2136
+ current working directory, `:context` indicating the context directory, and
2137
+ `:toys` indicating the Toys directory in which the tool is defined.
2138
+ Furthermore, the semantic directory `:toys` is treated specially in that it
2139
+ looks up the `.toys` directory hierarchy. So if your tool is defined in
2140
+ `.toys/foo/bar.rb`, it will look for a Gemfile first in `.toys/foo/` and then
2141
+ in `.toys/`. Additionally, when looking for a Gemfile in `:toys`, it searches
2142
+ only for `.gems.rb` and `Gemfile`. A file called `gems.rb` is not treated as a
2143
+ Gemfile under the `:toys` directory, because it could be a tool.
2144
+
2145
+ The default gemfile search path, if you do not provide the `search_dirs:`
2146
+ option, is equivalent to `[:toys, :context, :current]`.
2104
2147
 
2105
2148
  If the bundle is not installed, or is out of date, Toys will ask you whether
2106
2149
  you want it to install the bundle first before running the tool. A tool can
@@ -2143,6 +2186,48 @@ a different bundle. If you need to do this, use the
2143
2186
  method from the `:exec` mixin, to call the tool. This method spawns a separate
2144
2187
  process with a clean Bundler setup for running the tool.
2145
2188
 
2189
+ #### When a bundle is needed to define a tool
2190
+
2191
+ Usually, the `:bundler` mixin sets up your bundle when the tool is *executed*.
2192
+ However, occasionally, you need the gems in the bundle to *define* a tool. This
2193
+ might happen, for instance, if your bundle includes gesm that define mixins or
2194
+ templates used by your tool.
2195
+
2196
+ If you need the bundle set up immediately because its gems are needed by the
2197
+ tool definition, pass the `static: true` option when including the `:bundler`
2198
+ mixin. For example, if you are using the
2199
+ [flame_server_toys](https://github.com/AlexWayfer/flame_server_toys) gem, which
2200
+ provides a template that generates tools for the
2201
+ [Flame](https://github.com/AlexWayfer/flame) web framework, you could include
2202
+ the `flame_server_toys` gem in your Gemfile, and make it available for defining
2203
+ tools:
2204
+
2205
+ # Set up the bundle immediately.
2206
+ include :bundler, static: true
2207
+
2208
+ # Now you can use the gems in the bundle when defining tools.
2209
+ require "flame_server_toys"
2210
+ expand FlameServerToys::Template
2211
+
2212
+ There is a big caveat to using `static: true`, which is that you are setting up
2213
+ a bundle immediately, and as a result any subsequent attempt to set up or use a
2214
+ different bundle will fail. (See the section on
2215
+ [bundle conflicts](#Solving_bundle_conflicts) for a discussion of other reasons
2216
+ this can happen.) As a result, it's best not to use `static: true` unless you
2217
+ *really* need it to define tools. If you do run into this problem, here are two
2218
+ things you could try:
2219
+
2220
+ 1. "Scope" the bundle to the tool or the namespace where you need it. Toys
2221
+ makes an effort not to define a tool unless you actually need to execute it
2222
+ or one of its subtools, so if you can locate `include :bundler` inside just
2223
+ the tool or namespace that needs it, you might be able to avoid conflicts.
2224
+
2225
+ 2. Failing that, if you need a particular gem in order to define a tool, you
2226
+ could consider activating the gem directly rather than as part of a bundle.
2227
+ See the following section on
2228
+ [Activating gems directly](#Activating_gems_directly) for details on this
2229
+ technique.
2230
+
2146
2231
  ### Activating gems directly
2147
2232
 
2148
2233
  Although we recommend the `:bundler` mixin for most cases, it is also possible
@@ -2197,22 +2282,35 @@ to ensure highline is installed while the tool is being defined.
2197
2282
  end
2198
2283
  end
2199
2284
 
2200
- If you are not in the Toys DSL context—for example from a class-based
2201
- mixin—you should use
2202
- [Toys::Utils::Gems.activate](https://dazuma.github.io/toys/gems/toys-core/latest/Toys/Utils/Gems#activate-class_method)
2203
- instead. (Note that you must `require "toys/utils/gems"` explicitly before
2204
- invoking the
2285
+ Note these methods are a bit different from the
2286
+ [gem method](http://ruby-doc.org/stdlib/libdoc/rubygems/rdoc/Kernel.html)
2287
+ provided by Rubygems. The Toys version attempts to install a missing gem for
2288
+ you, whereas Rubygems will just throw an exception.
2289
+
2290
+ ### Activating gems outside the DSL
2291
+
2292
+ The above techniques for installing a bundle or activating a gem directly, are
2293
+ all part of the tool definition DSL. However, the functionality is also
2294
+ available outside the DSL---for example, from a class-based mixin.
2295
+
2296
+ To set up a bundle, call
2297
+ [Toys::Utils::Gems#bundle](https://dazuma.github.io/toys/gems/toys-core/latest/Toys/Utils/Gems#bundle-instance_method).
2298
+ (Note that you must `require "toys/utils/gems"` explicitly before invoking the
2205
2299
  [Toys::Utils::Gems](https://dazuma.github.io/toys/gems/toys-core/latest/Toys/Utils/Gems)
2206
2300
  class because, like all classes under `Toys::Utils`, Toys does not load it
2207
2301
  automatically.) For example:
2208
2302
 
2209
2303
  require "toys/utils/gems"
2210
- Toys::Utils::Gems.activate("highline", "~> 2.0")
2304
+ gem_utils = Toys::Utils::Gems.new
2305
+ gem_utils.bundle(search_dirs: Dir.getwd)
2211
2306
 
2212
- Note these methods are a bit different from the
2213
- [gem method](http://ruby-doc.org/stdlib/libdoc/rubygems/rdoc/Kernel.html)
2214
- provided by Rubygems. The Toys version attempts to install a missing gem for
2215
- you, whereas Rubygems will just throw an exception.
2307
+ To activate single gems explicitly, call
2308
+ [Toys::Utils::Gems#activate](https://dazuma.github.io/toys/gems/toys-core/latest/Toys/Utils/Gems#activate-instance_method).
2309
+ For example:
2310
+
2311
+ require "toys/utils/gems"
2312
+ gem_utils = Toys::Utils::Gems.new
2313
+ gem_utils.activate("highline", "~> 2.0")
2216
2314
 
2217
2315
  ### Useful gems
2218
2316
 
@@ -2319,7 +2417,7 @@ than declarative.
2319
2417
  The Toys approach to build tools simply embraces the fact that our build
2320
2418
  processes already tend to be imperative. So unlike Rake, Toys does not provide
2321
2419
  syntax for describing targets and dependencies, since we generally don't have
2322
- them in Ruby programs. Instead, it is optimized for writing tools.
2420
+ them in Ruby programs. Instead, it is optimized for writing imperative tools.
2323
2421
 
2324
2422
  For example, Rake provides a primitive mechanism for passing arguments to a
2325
2423
  task, but it is clumsy and quite different from most unix programs. However, to
@@ -42,6 +42,12 @@ module Toys
42
42
  #
43
43
  DATA_DIR_NAME = ".data"
44
44
 
45
+ ##
46
+ # Standard lib directory name in a toys configuration.
47
+ # @return [String]
48
+ #
49
+ LIB_DIR_NAME = ".lib"
50
+
45
51
  ##
46
52
  # Name of the standard toys executable.
47
53
  # @return [String]
@@ -99,6 +105,7 @@ module Toys
99
105
  preload_file_name: PRELOAD_FILE_NAME,
100
106
  preload_dir_name: PRELOAD_DIR_NAME,
101
107
  data_dir_name: DATA_DIR_NAME,
108
+ lib_dir_name: LIB_DIR_NAME,
102
109
  extra_delimiters: EXTRA_DELIMITERS,
103
110
  middleware_stack: default_middleware_stack,
104
111
  template_lookup: default_template_lookup
@@ -20,7 +20,9 @@ module Toys
20
20
  # @param name [String] Name of the tool to create. Defaults to
21
21
  # {DEFAULT_TOOL_NAME}.
22
22
  # @param paths [Array<String>] An array of glob patterns indicating what
23
- # to clean.
23
+ # to clean. You can also include the symbol `:gitignore` which will
24
+ # clean all items covered by `.gitignore` files, if contained in a
25
+ # git working tree.
24
26
  #
25
27
  def initialize(name: nil, paths: [])
26
28
  @name = name
@@ -57,22 +59,69 @@ module Toys
57
59
  tool(template.name) do
58
60
  desc "Clean built files and directories."
59
61
 
62
+ static :template_paths, template.paths
63
+
60
64
  include :fileutils
65
+ include :exec
61
66
 
62
- to_run do
63
- ::Dir.chdir(context_directory || ::Dir.getwd) do
64
- files = []
65
- template.paths.each do |pattern|
66
- files.concat(::Dir.glob(pattern))
67
- end
68
- files.uniq.each do |file|
69
- if ::File.exist?(file)
70
- rm_rf(file)
71
- puts "Cleaned: #{file}"
67
+ # @private
68
+ def run
69
+ cd(context_directory || ::Dir.getwd) do
70
+ template_paths.each do |elem|
71
+ case elem
72
+ when :gitignore
73
+ clean_gitignore
74
+ when ::String
75
+ clean_pattern(elem)
76
+ else
77
+ raise "Unknown path in clean: #{elem.inspect}"
72
78
  end
73
79
  end
74
80
  end
75
81
  end
82
+
83
+ # @private
84
+ def clean_gitignore
85
+ result = exec(["git", "rev-parse", "--is-inside-work-tree"], out: :null, err: :null)
86
+ unless result.success?
87
+ logger.error("Skipping :gitignore because we don't seem to be in a git directory")
88
+ return
89
+ end
90
+ clean_gitignore_dir(".")
91
+ end
92
+
93
+ # @private
94
+ def clean_gitignore_dir(dir)
95
+ children = dir_children(dir)
96
+ result = exec(["git", "check-ignore", "--stdin"],
97
+ in: :controller, out: :capture) do |controller|
98
+ children.each { |child| controller.in.puts(child) }
99
+ end
100
+ result.captured_out.split("\n").each { |path| clean_path(path) }
101
+ children = dir_children(dir) if result.success?
102
+ children.each { |child| clean_gitignore_dir(child) if ::File.directory?(child) }
103
+ end
104
+
105
+ # @private
106
+ def dir_children(dir)
107
+ ::Dir.entries(dir)
108
+ .reject { |entry| entry =~ /^\.\.?$/ }
109
+ .sort
110
+ .map { |entry| ::File.join(dir, entry) }
111
+ end
112
+
113
+ # @private
114
+ def clean_pattern(pattern)
115
+ ::Dir.glob(pattern) { |path| clean_path(path) }
116
+ end
117
+
118
+ # @private
119
+ def clean_path(path)
120
+ if ::File.exist?(path)
121
+ rm_rf(path)
122
+ puts "Cleaned: #{path}"
123
+ end
124
+ end
76
125
  end
77
126
  end
78
127
  end
@@ -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.10.2"
8
+ VERSION = "0.11.1"
9
9
  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.10.2
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Azuma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-03 00:00:00.000000000 Z
11
+ date: 2020-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: toys-core
@@ -16,168 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.10.2
19
+ version: 0.11.1
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.10.2
27
- - !ruby/object:Gem::Dependency
28
- name: did_you_mean
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '1.0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '1.0'
41
- - !ruby/object:Gem::Dependency
42
- name: highline
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '2.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '2.0'
55
- - !ruby/object:Gem::Dependency
56
- name: minitest
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '5.14'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '5.14'
69
- - !ruby/object:Gem::Dependency
70
- name: minitest-focus
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '1.1'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '1.1'
83
- - !ruby/object:Gem::Dependency
84
- name: minitest-rg
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '5.2'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '5.2'
97
- - !ruby/object:Gem::Dependency
98
- name: rake
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '13.0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '13.0'
111
- - !ruby/object:Gem::Dependency
112
- name: rdoc
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: 6.1.2
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: 6.1.2
125
- - !ruby/object:Gem::Dependency
126
- name: redcarpet
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '3.5'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: '3.5'
139
- - !ruby/object:Gem::Dependency
140
- name: rspec
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: '3.9'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: '3.9'
153
- - !ruby/object:Gem::Dependency
154
- name: rubocop
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: 0.79.0
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: 0.79.0
167
- - !ruby/object:Gem::Dependency
168
- name: yard
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - "~>"
172
- - !ruby/object:Gem::Version
173
- version: 0.9.24
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - "~>"
179
- - !ruby/object:Gem::Version
180
- version: 0.9.24
26
+ version: 0.11.1
181
27
  description: Toys is a configurable command line tool. Write commands in Ruby using
182
28
  a simple DSL, and Toys will provide the command line executable and take care of
183
29
  all the details such as argument parsing, online help, and error reporting. Toys
@@ -217,10 +63,10 @@ homepage: https://github.com/dazuma/toys
217
63
  licenses:
218
64
  - MIT
219
65
  metadata:
220
- changelog_uri: https://github.com/dazuma/toys/blob/master/toys/CHANGELOG.md
66
+ changelog_uri: https://dazuma.github.io/toys/gems/toys/v0.11.1/file.CHANGELOG.html
221
67
  source_code_uri: https://github.com/dazuma/toys
222
68
  bug_tracker_uri: https://github.com/dazuma/toys/issues
223
- documentation_uri: https://dazuma.github.io/toys/gems/toys/v0.10.2
69
+ documentation_uri: https://dazuma.github.io/toys/gems/toys/v0.11.1
224
70
  post_install_message:
225
71
  rdoc_options: []
226
72
  require_paths: