toys 0.15.1 → 0.15.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/core-docs/toys/core.rb +1 -1
- data/lib/toys/templates/gem_build.rb +7 -4
- data/lib/toys/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66457a8b91dca43ca890c25952839585d923a563032e7227f57fb8bb6f5ccfe5
|
4
|
+
data.tar.gz: f053d857b7441ecf0631a52322f36b2eb0f24c44e53ee0c304214f60b0433ca7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4433e7fcc39d6a8f0663541760d19439712484dfeea3a48c900d043f76dd19407079abbb96cdfbef6954d1a38c4c52de2be8a0c0c4f781e8753d2a36ee68a2a1
|
7
|
+
data.tar.gz: fa7172255d697198062c734236b968444a4fd6f344f7bffe5857f21eef5164ac3683568037c274595503868366b375839de868cddaab5755df7244044c8f8d0f
|
data/CHANGELOG.md
CHANGED
data/core-docs/toys/core.rb
CHANGED
@@ -186,13 +186,16 @@ module Toys
|
|
186
186
|
#
|
187
187
|
def gem_name(context_dir = nil)
|
188
188
|
return @gem_name if @gem_name
|
189
|
-
|
190
|
-
|
191
|
-
|
189
|
+
candidates =
|
190
|
+
if context_dir
|
191
|
+
Compat.glob_in_dir("*.gemspec", context_dir)
|
192
|
+
else
|
193
|
+
::Dir.glob("*.gemspec")
|
194
|
+
end
|
192
195
|
if candidates.empty?
|
193
196
|
raise ToolDefinitionError, "Could not find a gemspec"
|
194
197
|
end
|
195
|
-
candidates.first.
|
198
|
+
::File.basename(candidates.first, ".gemspec")
|
196
199
|
end
|
197
200
|
|
198
201
|
##
|
data/lib/toys/version.rb
CHANGED
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.15.
|
4
|
+
version: 0.15.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Azuma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-17 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.15.
|
19
|
+
version: 0.15.2
|
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.15.
|
26
|
+
version: 0.15.2
|
27
27
|
description: Toys is a configurable command line tool. Write commands in Ruby using
|
28
28
|
a simple DSL, and Toys will provide the command line executable and take care of
|
29
29
|
all the details such as argument parsing, online help, and error reporting. Toys
|
@@ -121,10 +121,10 @@ homepage: https://github.com/dazuma/toys
|
|
121
121
|
licenses:
|
122
122
|
- MIT
|
123
123
|
metadata:
|
124
|
-
changelog_uri: https://dazuma.github.io/toys/gems/toys/v0.15.
|
124
|
+
changelog_uri: https://dazuma.github.io/toys/gems/toys/v0.15.2/file.CHANGELOG.html
|
125
125
|
source_code_uri: https://github.com/dazuma/toys/tree/main/toys
|
126
126
|
bug_tracker_uri: https://github.com/dazuma/toys/issues
|
127
|
-
documentation_uri: https://dazuma.github.io/toys/gems/toys/v0.15.
|
127
|
+
documentation_uri: https://dazuma.github.io/toys/gems/toys/v0.15.2
|
128
128
|
post_install_message:
|
129
129
|
rdoc_options: []
|
130
130
|
require_paths:
|