toys 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/builtins/do.rb +2 -2
- data/lib/toys/standard_cli.rb +8 -5
- data/lib/toys/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8d6fa44786470e7dea559db8463b92ed619a3805aa7d586e29e0562a089381c
|
4
|
+
data.tar.gz: 519cf0c80675393e82e0c0c84162259d2e731ba0235ac5959e30ebf2cfb61e4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a795038540a8d44268fefe2bcea67aafb4a1c058a712a106436277917aa13edb2d560b0b10f4082f09f34775e621b682ce5dd36d1e129196d79a19c42790c2d
|
7
|
+
data.tar.gz: c0d28144d730e4637cf78e581cb8eae91978dc7ed1bc1e472a7a486e004a082cf8933785cd09bcae3c0db5cdc5952cc115f6486e5e2606b1ba21e27fd943fe4a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
+
### 0.3.3 / 2018-05-09
|
4
|
+
|
5
|
+
* CHANGED: Renamed file_utils helper to fileutils.
|
6
|
+
* CHANGED: Renamed doc: parameter to docs:
|
7
|
+
* FIXED: Documentation strings that begin with "-" no longer cause problems.
|
8
|
+
* ADDED: Highline helper
|
9
|
+
* ADDED: Spinner helper
|
10
|
+
* ADDED: WrappableString for descriptions and docs
|
11
|
+
* IMPROVED: Descriptions can have multiple lines
|
12
|
+
|
3
13
|
### 0.3.2 / 2018-05-07
|
4
14
|
|
5
15
|
* CHANGED: Split core engine out into separate "toys-core" gem. See the
|
data/builtins/do.rb
CHANGED
@@ -29,9 +29,9 @@
|
|
29
29
|
|
30
30
|
desc "Run multiple tools in order"
|
31
31
|
|
32
|
-
switch(:delim, "-d", "--delim=VALUE", default: ",",
|
32
|
+
switch(:delim, "-d", "--delim=VALUE", default: ",", docs: "Set the delimiter")
|
33
33
|
|
34
|
-
remaining_args(:args,
|
34
|
+
remaining_args(:args, docs: "Tools to run")
|
35
35
|
|
36
36
|
execute do
|
37
37
|
delim = self[:delim]
|
data/lib/toys/standard_cli.rb
CHANGED
@@ -30,6 +30,7 @@
|
|
30
30
|
require "logger"
|
31
31
|
|
32
32
|
require "toys/middleware/show_version"
|
33
|
+
require "toys/utils/wrappable_string"
|
33
34
|
|
34
35
|
module Toys
|
35
36
|
##
|
@@ -78,11 +79,13 @@ module Toys
|
|
78
79
|
# @return [String]
|
79
80
|
#
|
80
81
|
DEFAULT_ROOT_DESC =
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
82
|
+
Utils::WrappableString.new(
|
83
|
+
"Toys is your personal command line tool. You can add to the list of" \
|
84
|
+
" commands below by writing scripts in Ruby using a simple DSL, and" \
|
85
|
+
" toys will organize and document them, and make them available" \
|
86
|
+
" globally or scoped to specific directories that you choose." \
|
87
|
+
" For detailed information, see https://www.rubydoc.info/gems/toys"
|
88
|
+
)
|
86
89
|
|
87
90
|
##
|
88
91
|
# Create a standard CLI, configured with the appropriate paths and
|
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.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Azuma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-10 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.3.
|
19
|
+
version: 0.3.3
|
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.3.
|
26
|
+
version: 0.3.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: minitest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|