toys 0.3.2 → 0.3.3

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: 674d3b61ad2be8749dddafed99ab0ad70fbda515157024afd2fb7b3dc3c1108c
4
- data.tar.gz: 83f446e5eb534360cbc50f1f032c758d6b457b97a280661887632f1016abd1f5
3
+ metadata.gz: c8d6fa44786470e7dea559db8463b92ed619a3805aa7d586e29e0562a089381c
4
+ data.tar.gz: 519cf0c80675393e82e0c0c84162259d2e731ba0235ac5959e30ebf2cfb61e4f
5
5
  SHA512:
6
- metadata.gz: f35911821abba0a114aabf8f6e4a1a5bd1d6727edb3ec8e8eb0f035fac8cb08fecb737ff38c561a9f09caddb5f697219c5a349fa6c4ace63db879df35fb33164
7
- data.tar.gz: 6dafe20e17be9816913edd9c498856f01fc3bac19249c11e62836895fc2234aa7231d2ecd322adc825d58f8d1ab4d0c51c756110831e7ece22b0cdf8a155bff2
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: ",", doc: "Set the delimiter")
32
+ switch(:delim, "-d", "--delim=VALUE", default: ",", docs: "Set the delimiter")
33
33
 
34
- remaining_args(:args, doc: "Tools to run")
34
+ remaining_args(:args, docs: "Tools to run")
35
35
 
36
36
  execute do
37
37
  delim = self[:delim]
@@ -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
- "Toys is your personal command line tool. You can add to the list of" \
82
- " commands below by writing scripts in Ruby using a simple DSL, and" \
83
- " toys will organize and document them, and make them available" \
84
- " globally or scoped to specific directories that you choose." \
85
- " For detailed information, see https://www.rubydoc.info/gems/toys".freeze
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
@@ -32,5 +32,5 @@ module Toys
32
32
  # Current version of the Toys command line binary
33
33
  # @return [String]
34
34
  #
35
- VERSION = "0.3.2".freeze
35
+ VERSION = "0.3.3".freeze
36
36
  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.3.2
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-07 00:00:00.000000000 Z
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.2
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.2
26
+ version: 0.3.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement