toys-core 0.10.2 → 0.10.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: c5ae179649a0653db765b024bf25809d9e2cac6eb97aa3f1058be9ac59e9837c
4
- data.tar.gz: eabbdaf0d81b86ab64674fbda0728ca361d66e9d69cfcd3ce76670f44b828d9b
3
+ metadata.gz: 6b02cdff2a475e8868e2b657c16ced39c83f8b729552408cc09a22060f783ca5
4
+ data.tar.gz: 5a0d9db1a99cc425de54f12ea8b888ef8d91a15e2991fcbc782a1a1e0e85c137
5
5
  SHA512:
6
- metadata.gz: e1312418f9bd568f880580faed87e55100800def6bb34cf159e26e342949fefceec6a73584af62569775a29921d923618a8cbc05f113d1797103c0133c1b7b2d
7
- data.tar.gz: 335c0424407723fc242d9ea3ee0153bc9213b1b86e36a347106a96262aeb423c2aaa91cc71dcce72b4179eba5c40df1da112c87982c1543af337276db85bfb86
6
+ metadata.gz: c7547679c269c0b882a82e0704d8d664b9e75872e72ca9368b673118fc3d20948fe5ab1588fea0b0e2c1def7685e4e378ea537ec1b7809e60809fee25bc0baf4
7
+ data.tar.gz: e6767c8ae11fd7bfbadbc0b4bb23f86ee055b5832a67577dd4d72109e7e0d9a015d7d7d92612893e292e6257d89014c86aba6fcbd769701196748822cb4b6869
@@ -1,5 +1,9 @@
1
1
  # Release History
2
2
 
3
+ ### 0.10.3 / 2020-07-04
4
+
5
+ * FIXED: The `exec_separate_tool` method in the `:exec` mixin no longer throws ENOEXEC on Windows.
6
+
3
7
  ### 0.10.2 / 2020-07-03
4
8
 
5
9
  * FIXED: The load path no longer loses the toys and toys-core directories after a bundle install.
@@ -16,21 +16,26 @@ module Toys
16
16
  ::RUBY_PLATFORM == "java"
17
17
  end
18
18
 
19
+ # @private
20
+ def self.windows?
21
+ ::RbConfig::CONFIG["host_os"] =~ /mswin|msys|mingw|cygwin|bccwin|wince|emc/
22
+ end
23
+
19
24
  # @private
20
25
  def self.allow_fork?
21
- !jruby? && ::RbConfig::CONFIG["host_os"] !~ /mswin/
26
+ !jruby? && !windows?
22
27
  end
23
28
 
24
29
  # @private
25
30
  def self.supports_suggestions?
26
31
  unless defined?(@supports_suggestions)
27
- require "rubygems"
28
32
  begin
29
33
  require "did_you_mean"
30
- @supports_suggestions = defined?(::DidYouMean::SpellChecker)
31
34
  rescue ::LoadError
32
- @supports_suggestions = false
35
+ require "rubygems"
36
+ require "did_you_mean" rescue nil # rubocop:disable Style/RescueModifier
33
37
  end
38
+ @supports_suggestions = defined?(::DidYouMean::SpellChecker)
34
39
  end
35
40
  @supports_suggestions
36
41
  end
@@ -9,7 +9,7 @@ module Toys
9
9
  # Current version of Toys core.
10
10
  # @return [String]
11
11
  #
12
- VERSION = "0.10.2"
12
+ VERSION = "0.10.3"
13
13
  end
14
14
 
15
15
  ## @private deprecated
@@ -728,7 +728,7 @@ module Toys
728
728
  def self._setup_clean_process(cmd)
729
729
  raise ::ArgumentError, "Toys process is unknown" unless ::Toys.executable_path
730
730
  cmd = ::Shellwords.split(cmd) if cmd.is_a?(::String)
731
- cmd = Array(::Toys.executable_path) + cmd
731
+ cmd = [::RbConfig.ruby, "--disable=gems", ::Toys.executable_path] + cmd
732
732
  if defined?(::Bundler)
733
733
  if ::Bundler.respond_to?(:with_unbundled_env)
734
734
  ::Bundler.with_unbundled_env { yield(cmd) }
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.10.2
4
+ version: 0.10.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: 2020-07-03 00:00:00.000000000 Z
11
+ date: 2020-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: did_you_mean
@@ -198,7 +198,7 @@ metadata:
198
198
  changelog_uri: https://github.com/dazuma/toys/blob/master/toys-core/CHANGELOG.md
199
199
  source_code_uri: https://github.com/dazuma/toys
200
200
  bug_tracker_uri: https://github.com/dazuma/toys/issues
201
- documentation_uri: https://dazuma.github.io/toys/gems/toys-core/v0.10.2
201
+ documentation_uri: https://dazuma.github.io/toys/gems/toys-core/v0.10.3
202
202
  post_install_message:
203
203
  rdoc_options: []
204
204
  require_paths: