toys 0.15.1 → 0.15.3

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: d18a73fddd4b4c4de686cadd776da8c6a70c425863382ce8ca33d4a68b0dd1ec
4
- data.tar.gz: 5aca86d6e4a359c002b2a996ee6456ee4152bafcb7e981e315a0c26f338c49b8
3
+ metadata.gz: 57b1253240949a832b30bab7889080d57c7a756f30d2db5aa3f639c86190ea45
4
+ data.tar.gz: bf4a045fcef88634614042023c58dbb2ccc48e4992fb23935ae0c13dcd1ff695
5
5
  SHA512:
6
- metadata.gz: 4d1160317e3f7005729afef9faefe364e96cfa44afe6aaad984ab0f00369e51ad3d40bd8643a13cbb711efa23cc5b86f03f94c63ad826ffae1b790293e051027
7
- data.tar.gz: 0f913098f67b499d42376052ec24f1104d6085f388acd8dc579dbbe4e5b022a85300b6b7a7112a8e97b6e9fdd50533561fb8dd9764b41693d10440b7c17d9e36
6
+ metadata.gz: c1acf98ea97a5b08f03b703ac7caeb0a9a329f507717a516833bd60a53f8f3ae506aa3d91d23d0da4a213ceccffd67c6acf427e4cbeff37a9ce85a45bcd20587
7
+ data.tar.gz: 837994ddbe9dd840bb59499e6676b0446058a5c9598536328455d4724948ebfe5736b6842295c9519f26fba6a276f41a50391c8e4c50219ef4f957ebdff93687
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release History
2
2
 
3
+ ### v0.15.3 / 2023-10-31
4
+
5
+ * FIXED: Minitest template defers calling autorun until after tests are loaded, which should eliminate stringio warnings when running Rails tests without bundler integration
6
+
7
+ ### v0.15.2 / 2023-10-17
8
+
9
+ * FIXED: The gem_build template tried to use a badly formatted directory on Windows.
10
+
3
11
  ### v0.15.1 / 2023-10-15
4
12
 
5
13
  * FIXED: Clean up some internal requires, which may improve performance with built-in gems.
@@ -9,6 +9,6 @@ module Toys
9
9
  # Current version of Toys core.
10
10
  # @return [String]
11
11
  #
12
- VERSION = "0.15.1"
12
+ VERSION = "0.15.3"
13
13
  end
14
14
  end
@@ -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
- glob = "*.gemspec"
190
- glob = ::File.join(context_dir, glob) if context_dir
191
- candidates = ::Dir.glob(glob)
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.sub(/\.gemspec$/, "")
198
+ ::File.basename(candidates.first, ".gemspec")
196
199
  end
197
200
 
198
201
  ##
@@ -305,7 +305,7 @@ module Toys
305
305
  end
306
306
  tests.uniq!
307
307
  end
308
- code = ["require 'minitest/autorun'"] + tests.map { |file| "load '#{file}'" }
308
+ code = tests.map { |file| "load '#{file}'" } + ["require 'minitest/autorun'"]
309
309
  ruby_args << "-e" << code.join("\n")
310
310
 
311
311
  ruby_args << "--"
data/lib/toys/version.rb CHANGED
@@ -5,5 +5,5 @@ module Toys
5
5
  # Current version of the Toys command line executable.
6
6
  # @return [String]
7
7
  #
8
- VERSION = "0.15.1"
8
+ VERSION = "0.15.3"
9
9
  end
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.1
4
+ version: 0.15.3
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-15 00:00:00.000000000 Z
11
+ date: 2023-10-31 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.1
19
+ version: 0.15.3
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.1
26
+ version: 0.15.3
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.1/file.CHANGELOG.html
124
+ changelog_uri: https://dazuma.github.io/toys/gems/toys/v0.15.3/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.1
127
+ documentation_uri: https://dazuma.github.io/toys/gems/toys/v0.15.3
128
128
  post_install_message:
129
129
  rdoc_options: []
130
130
  require_paths: