toys-core 0.10.2 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/toys/compat.rb +9 -4
- data/lib/toys/core.rb +1 -1
- data/lib/toys/standard_mixins/exec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6b02cdff2a475e8868e2b657c16ced39c83f8b729552408cc09a22060f783ca5
|
|
4
|
+
data.tar.gz: 5a0d9db1a99cc425de54f12ea8b888ef8d91a15e2991fcbc782a1a1e0e85c137
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c7547679c269c0b882a82e0704d8d664b9e75872e72ca9368b673118fc3d20948fe5ab1588fea0b0e2c1def7685e4e378ea537ec1b7809e60809fee25bc0baf4
|
|
7
|
+
data.tar.gz: e6767c8ae11fd7bfbadbc0b4bb23f86ee055b5832a67577dd4d72109e7e0d9a015d7d7d92612893e292e6257d89014c86aba6fcbd769701196748822cb4b6869
|
data/CHANGELOG.md
CHANGED
|
@@ -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.
|
data/lib/toys/compat.rb
CHANGED
|
@@ -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? &&
|
|
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
|
-
|
|
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
|
data/lib/toys/core.rb
CHANGED
|
@@ -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 =
|
|
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.
|
|
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-
|
|
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.
|
|
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:
|