toys-core 0.9.0 → 0.9.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 +4 -0
- data/lib/toys/compat.rb +4 -2
- data/lib/toys/core.rb +1 -1
- data/lib/toys/loader.rb +3 -2
- data/lib/toys/standard_middleware/show_help.rb +1 -1
- metadata +31 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd26e85c431cf630dda5d6c7f49f43a13b917880169d47ca8d2df84df94a4b90
|
4
|
+
data.tar.gz: 87338976eafafd543f1b66c83c3c675739bddcffe1db8a2c595b3353c558d716
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d6e67e2800287709a3a09ddff87145999e4712db5a69b96ae479c58a586ab14596e42ad52ce8c9aca08146163ff6113318d70f426c08e8e18f6f2842b679f8e
|
7
|
+
data.tar.gz: e45bda72586ad53fa0b3ed51bb7b1a1b67f0da3a91a3c83344af61d616692f3bc435911cd5ab9fd8b2d086894ca03d976617213573c50c44b85454d7a0c4728b
|
data/.yardopts
CHANGED
data/CHANGELOG.md
CHANGED
data/lib/toys/compat.rb
CHANGED
@@ -31,11 +31,13 @@ module Toys
|
|
31
31
|
CURRENT_VERSION = ::Gem::Version.new(::RUBY_VERSION)
|
32
32
|
|
33
33
|
## @private
|
34
|
-
|
34
|
+
def self.jruby?
|
35
|
+
::RUBY_PLATFORM == "java"
|
36
|
+
end
|
35
37
|
|
36
38
|
## @private
|
37
39
|
def self.allow_fork?
|
38
|
-
!
|
40
|
+
!jruby? && RbConfig::CONFIG["host_os"] !~ /mswin/
|
39
41
|
end
|
40
42
|
|
41
43
|
## @private
|
data/lib/toys/core.rb
CHANGED
data/lib/toys/loader.rb
CHANGED
@@ -228,11 +228,12 @@ module Toys
|
|
228
228
|
# You may pass in either an array of strings, or a single string possibly
|
229
229
|
# delimited by path separators. Always returns an array of strings.
|
230
230
|
#
|
231
|
-
# @param str [String,Array<String>] The path to split.
|
231
|
+
# @param str [String,Symbol,Array<String,Symbol>] The path to split.
|
232
232
|
# @return [Array<String>]
|
233
233
|
#
|
234
234
|
def split_path(str)
|
235
|
-
return str if str.is_a?(::Array)
|
235
|
+
return str.map(&:to_s) if str.is_a?(::Array)
|
236
|
+
str = str.to_s
|
236
237
|
@extra_delimiters ? str.split(@extra_delimiters) : [str]
|
237
238
|
end
|
238
239
|
|
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.9.
|
4
|
+
version: 0.9.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-12-
|
11
|
+
date: 2019-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|
@@ -25,75 +25,89 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: minitest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '5.13'
|
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: '5.13'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name: minitest
|
42
|
+
name: minitest-focus
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '1.1'
|
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: '1.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name: minitest-
|
56
|
+
name: minitest-rg
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '5.2'
|
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: '5.2'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: rdoc
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '6.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: '6.2'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: redcarpet
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.5'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.5'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: rubocop
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
101
|
- - "~>"
|
88
102
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
103
|
+
version: 0.78.0
|
90
104
|
type: :development
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
108
|
- - "~>"
|
95
109
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
110
|
+
version: 0.78.0
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: yard
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -168,7 +182,7 @@ metadata:
|
|
168
182
|
changelog_uri: https://github.com/dazuma/toys/blob/master/toys-core/CHANGELOG.md
|
169
183
|
source_code_uri: https://github.com/dazuma/toys
|
170
184
|
bug_tracker_uri: https://github.com/dazuma/toys/issues
|
171
|
-
documentation_uri: https://dazuma.github.io/toys/gems/toys-core/
|
185
|
+
documentation_uri: https://dazuma.github.io/toys/gems/toys-core/v0.9.1
|
172
186
|
post_install_message:
|
173
187
|
rdoc_options: []
|
174
188
|
require_paths:
|