toys-core 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/CHANGELOG.md +5 -0
- data/README.md +3 -3
- data/lib/toys/core_version.rb +1 -1
- data/lib/toys/dsl/tool.rb +2 -2
- data/lib/toys/loader.rb +5 -1
- data/lib/toys/standard_middleware/show_help.rb +1 -1
- metadata +19 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9ea4eb80e6cbef15a8fafda59f0150f53aeb3a1a196b4749b5abe357d8fc47c
|
4
|
+
data.tar.gz: 374d30463b4eb8388674c5764a3fbcc050986ae927f3b2cb576d671bf47b3bc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 061e82b410a5640bf233bfed13f6ca15b08b16699c2c8ebee1bece2cb48a0e8af0afb5c96ad28fcbd1ab09b484a679c018a0ea26f40cedb8263fca75cf4fdba6
|
7
|
+
data.tar.gz: 123e78e35b94cb1b3e56107f379f9e63f3fe4b4151e3d790a6828457c208cbcbd5c8ac9f4ac111d0176499b4e728c600760833dc6159ad00548601d7c3837305
|
data/.yardopts
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
+
### 0.8.1 / 2019-11-19
|
4
|
+
|
5
|
+
* FIXED: Listing subtools would crash if a broken alias was present.
|
6
|
+
* DOCUMENTATION: Switched from redcarpet to kramdown, and tried to make some structural fixes.
|
7
|
+
|
3
8
|
### 0.8.0 / 2019-06-20
|
4
9
|
|
5
10
|
This is a major update with significant new features and a bunch of fixes. It also includes a significant amount of internal reorganization and cleanup, some of which resulted in backward incompatible changes. Basic use should not be affected. All signifiant features planned for beta are now implemented.
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# Toys-Core
|
2
2
|
|
3
|
-
Toys is a configurable command line tool. Write commands in
|
4
|
-
|
5
|
-
|
3
|
+
Toys is a configurable command line tool. Write commands in Ruby using a simple
|
4
|
+
DSL, and Toys will provide the command line executable and take care of all the
|
5
|
+
details such as argument parsing, online help, and error reporting.
|
6
6
|
|
7
7
|
Toys-Core is the command line tool framework underlying Toys. It can be used
|
8
8
|
to write command line executables using the Toys DSL and the power of the Toys
|
data/lib/toys/core_version.rb
CHANGED
data/lib/toys/dsl/tool.rb
CHANGED
data/lib/toys/loader.rb
CHANGED
@@ -548,7 +548,11 @@ module Toys
|
|
548
548
|
|
549
549
|
def tool_hidden?(tool, next_tool)
|
550
550
|
return true if tool.full_name.any? { |n| n.start_with?("_") }
|
551
|
-
|
551
|
+
if tool.is_a?(Alias)
|
552
|
+
original_tool = resolve_alias(tool)
|
553
|
+
return true if original_tool.nil?
|
554
|
+
return tool_hidden?(original_tool, nil)
|
555
|
+
end
|
552
556
|
!tool.runnable? && next_tool && next_tool.full_name.slice(0..-2) == tool.full_name
|
553
557
|
end
|
554
558
|
|
@@ -294,7 +294,7 @@ module Toys
|
|
294
294
|
include_hidden: context[SHOW_ALL_SUBTOOLS_KEY], show_source_path: @show_source_path,
|
295
295
|
wrap_width: terminal.width
|
296
296
|
)
|
297
|
-
if less_path
|
297
|
+
if RUBY_PLATFORM != "java" && less_path
|
298
298
|
require "toys/utils/exec"
|
299
299
|
Utils::Exec.new.exec([less_path, "-R"], in: [:string, str])
|
300
300
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toys-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.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: 2019-
|
11
|
+
date: 2019-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|
@@ -25,91 +25,91 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: kramdown
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2.1'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '2.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: minitest
|
42
|
+
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '5.11'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '5.11'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name: minitest-
|
56
|
+
name: minitest-focus
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '1.1'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '1.1'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: minitest-rg
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '5.2'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '5.2'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.74.0
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: 0.74.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: yard
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.9.
|
103
|
+
version: 0.9.20
|
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: 0.9.
|
110
|
+
version: 0.9.20
|
111
111
|
description: Toys-Core is the command line tool framework underlying Toys. It can
|
112
|
-
be used to create command line executables using the
|
112
|
+
be used to create command line executables using the Toys DSL and classes.
|
113
113
|
email:
|
114
114
|
- dazuma@gmail.com
|
115
115
|
executables: []
|