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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c599749b4dfa556b393f532a666455ced20062d746a8e9156aa472bdcbe5c6a2
4
- data.tar.gz: 303c5615df653c4ca0fcb7646a413630fd74db0c28518ff2d8baae9f6ba80ccb
3
+ metadata.gz: b9ea4eb80e6cbef15a8fafda59f0150f53aeb3a1a196b4749b5abe357d8fc47c
4
+ data.tar.gz: 374d30463b4eb8388674c5764a3fbcc050986ae927f3b2cb576d671bf47b3bc5
5
5
  SHA512:
6
- metadata.gz: 0b92268de87c8555a113e2e9804d4a4b3489cbe3c216dc1056e45595214297e4aaf4b19a95da9db5c024bfa41336d8d25f6df591b1861fb85c3f552a69cf3b3a
7
- data.tar.gz: 860c322590729d3a111b3e205197eb42110cc8dd455dc8c6c5ff7ba042f69dd25583f3d720e9ccc3104fe9bd021999a655639c15fcec185b9b4fdd0126052aca
6
+ metadata.gz: 061e82b410a5640bf233bfed13f6ca15b08b16699c2c8ebee1bece2cb48a0e8af0afb5c96ad28fcbd1ab09b484a679c018a0ea26f40cedb8263fca75cf4fdba6
7
+ data.tar.gz: 123e78e35b94cb1b3e56107f379f9e63f3fe4b4151e3d790a6828457c208cbcbd5c8ac9f4ac111d0176499b4e728c600760833dc6159ad00548601d7c3837305
data/.yardopts CHANGED
@@ -1,7 +1,7 @@
1
1
  --no-private
2
2
  --title=Toys Core
3
3
  --markup=markdown
4
- --markup-provider redcarpet
4
+ --markup-provider kramdown
5
5
  --main=README.md
6
6
  ./lib/**/*.rb
7
7
  -
@@ -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 config files using
4
- a simple DSL, and Toys will provide the command line executable and take care
5
- of all the details such as argument parsing, online help, and error reporting.
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
@@ -26,5 +26,5 @@ module Toys
26
26
  # Current version of Toys core.
27
27
  # @return [String]
28
28
  #
29
- CORE_VERSION = "0.8.0"
29
+ CORE_VERSION = "0.8.1"
30
30
  end
@@ -290,9 +290,9 @@ module Toys
290
290
  # puts "Building staging"
291
291
  # end
292
292
  # end
293
- # tool "staging" do
293
+ # tool "production" do
294
294
  # def run
295
- # puts "Building staging"
295
+ # puts "Building production"
296
296
  # end
297
297
  # end
298
298
  # end
@@ -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
- return tool_hidden?(resolve_alias(tool), nil) if tool.is_a?(Alias)
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.0
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-06-21 00:00:00.000000000 Z
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: minitest
28
+ name: kramdown
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '5.11'
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: '5.11'
40
+ version: '2.1'
41
41
  - !ruby/object:Gem::Dependency
42
- name: minitest-focus
42
+ name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.1'
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: '1.1'
54
+ version: '5.11'
55
55
  - !ruby/object:Gem::Dependency
56
- name: minitest-rg
56
+ name: minitest-focus
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '5.2'
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: '5.2'
68
+ version: '1.1'
69
69
  - !ruby/object:Gem::Dependency
70
- name: redcarpet
70
+ name: minitest-rg
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '3.4'
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: '3.4'
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.71.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.71.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.19
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.19
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 internal Toys APIs.
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: []