toys-core 0.10.1 → 0.10.2

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: b63889a0ce44a42d805bba363f2051c1b1f82c6c50e70138b35cab077441dcdd
4
- data.tar.gz: 0403e5af7269879d468baae34bbae1664c1f83dfef4ec91c1545079502db5c86
3
+ metadata.gz: c5ae179649a0653db765b024bf25809d9e2cac6eb97aa3f1058be9ac59e9837c
4
+ data.tar.gz: eabbdaf0d81b86ab64674fbda0728ca361d66e9d69cfcd3ce76670f44b828d9b
5
5
  SHA512:
6
- metadata.gz: 401d695bc0375db501df082733813925f229def58bea2b65f947c453b5b0f2989712b27c0a7d8f4d0f19c7e5f90293210a8c8755985a1584efae54bc35e90d2b
7
- data.tar.gz: 258f2466dab53c45d1541f4608af756d9cddf3a7af555d1c11e329ad7de3cb9ce5e52831347cb417e97bb4628a6563220d2fc486669597c38df0f0184bd6aa89
6
+ metadata.gz: e1312418f9bd568f880580faed87e55100800def6bb34cf159e26e342949fefceec6a73584af62569775a29921d923618a8cbc05f113d1797103c0133c1b7b2d
7
+ data.tar.gz: 335c0424407723fc242d9ea3ee0153bc9213b1b86e36a347106a96262aeb423c2aaa91cc71dcce72b4179eba5c40df1da112c87982c1543af337276db85bfb86
@@ -1,5 +1,9 @@
1
1
  # Release History
2
2
 
3
+ ### 0.10.2 / 2020-07-03
4
+
5
+ * FIXED: The load path no longer loses the toys and toys-core directories after a bundle install.
6
+
3
7
  ### 0.10.1 / 2020-03-07
4
8
 
5
9
  * FIXED: Setting `:exit_on_nonzero_status` explicitly to false now works as expected.
@@ -58,6 +58,9 @@ module Toys
58
58
  #
59
59
  attr_accessor :executable_path
60
60
  end
61
+
62
+ # @private
63
+ CORE_LIB_PATH = __dir__
61
64
  end
62
65
 
63
66
  require "toys/acceptor"
@@ -9,7 +9,7 @@ module Toys
9
9
  # Current version of Toys core.
10
10
  # @return [String]
11
11
  #
12
- VERSION = "0.10.1"
12
+ VERSION = "0.10.2"
13
13
  end
14
14
 
15
15
  ## @private deprecated
@@ -251,10 +251,17 @@ module Toys
251
251
  begin
252
252
  ::Bundler.setup(*groups)
253
253
  rescue ::Bundler::GemNotFound
254
+ restore_toys_libs
254
255
  install_bundle(gemfile_path)
255
256
  ::Bundler.reset!
256
257
  ::Bundler.setup(*groups)
257
258
  end
259
+ restore_toys_libs
260
+ end
261
+
262
+ def restore_toys_libs
263
+ $LOAD_PATH.unshift(::Toys::CORE_LIB_PATH)
264
+ $LOAD_PATH.unshift(::Toys::LIB_PATH) if ::Toys.const_defined?(:LIB_PATH)
258
265
  end
259
266
 
260
267
  def permission_to_bundle?
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.1
4
+ version: 0.10.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: 2020-03-08 00:00:00.000000000 Z
11
+ date: 2020-07-03 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.1
201
+ documentation_uri: https://dazuma.github.io/toys/gems/toys-core/v0.10.2
202
202
  post_install_message:
203
203
  rdoc_options: []
204
204
  require_paths: