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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 125540448a7c5431f6c788058f7b5b02d0d089b28def144fa673b579bd2b1bff
4
- data.tar.gz: 878c996695f10022f756b2a17459e556f29a06b1e96b8b9e2d636624e8bfc65c
3
+ metadata.gz: bd26e85c431cf630dda5d6c7f49f43a13b917880169d47ca8d2df84df94a4b90
4
+ data.tar.gz: 87338976eafafd543f1b66c83c3c675739bddcffe1db8a2c595b3353c558d716
5
5
  SHA512:
6
- metadata.gz: 5a3e9c3fe05a4ced439a842c53c6c2cb73026417f5c6707a3a1ac1e8394a003e546d8aa50a73d94749ac79bd2720148ee86a18c53b60fe52a080a8368f133098
7
- data.tar.gz: 98f82815c36fcca6b534248e98ab642762a513410f22467de12a819d32bd589d6e8a8ca1fd187b55bada01987021c9a3f8922ab0e8dec329cade1239db1f464c
6
+ metadata.gz: 3d6e67e2800287709a3a09ddff87145999e4712db5a69b96ae479c58a586ab14596e42ad52ce8c9aca08146163ff6113318d70f426c08e8e18f6f2842b679f8e
7
+ data.tar.gz: e45bda72586ad53fa0b3ed51bb7b1a1b67f0da3a91a3c83344af61d616692f3bc435911cd5ab9fd8b2d086894ca03d976617213573c50c44b85454d7a0c4728b
data/.yardopts CHANGED
@@ -1,7 +1,7 @@
1
1
  --no-private
2
2
  --title=Toys Core
3
3
  --markup=markdown
4
- --markup-provider kramdown
4
+ --markup-provider redcarpet
5
5
  --main=README.md
6
6
  ./lib/**/*.rb
7
7
  -
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History
2
2
 
3
+ ### 0.9.1 / 2019-12-22
4
+
5
+ * IMPROVED: `delegate_to` and `alias_tool` can take symbols as well as strings.
6
+
3
7
  ### 0.9.0 / 2019-12-02
4
8
 
5
9
  Functional changes:
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
- IS_JRUBY = ::RUBY_PLATFORM == "java"
34
+ def self.jruby?
35
+ ::RUBY_PLATFORM == "java"
36
+ end
35
37
 
36
38
  ## @private
37
39
  def self.allow_fork?
38
- !IS_JRUBY && RbConfig::CONFIG["host_os"] !~ /mswin/
40
+ !jruby? && RbConfig::CONFIG["host_os"] !~ /mswin/
39
41
  end
40
42
 
41
43
  ## @private
data/lib/toys/core.rb CHANGED
@@ -30,7 +30,7 @@ module Toys
30
30
  # Current version of Toys core.
31
31
  # @return [String]
32
32
  #
33
- VERSION = "0.9.0"
33
+ VERSION = "0.9.1"
34
34
  end
35
35
 
36
36
  ## @private deprecated
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
 
@@ -216,7 +216,7 @@ module Toys
216
216
  @show_source_path = show_source_path
217
217
  @stream = stream
218
218
  @styled_output = styled_output
219
- @use_less = use_less && !Compat::IS_JRUBY
219
+ @use_less = use_less && !Compat.jruby?
220
220
  end
221
221
 
222
222
  ##
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.0
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-03 00:00:00.000000000 Z
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: kramdown
28
+ name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.1'
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: '2.1'
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: '5.13'
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: '5.13'
54
+ version: '1.1'
55
55
  - !ruby/object:Gem::Dependency
56
- name: minitest-focus
56
+ name: minitest-rg
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.1'
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: '1.1'
68
+ version: '5.2'
69
69
  - !ruby/object:Gem::Dependency
70
- name: minitest-rg
70
+ name: rdoc
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '5.2'
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: '5.2'
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.77.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.77.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/latest
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: