toys 0.10.1 → 0.10.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b9680e33121b0f7653b49cfa1874674c33ea6af2d34bfca9fa14e40e55065ca
4
- data.tar.gz: fa000c3965f1ba070930de7ea503c599d9a5e246f058b14b3582560ab69ac37c
3
+ metadata.gz: 82fdaa52273dc684b712f6912d6819fb04fe0d6318b5850c91afe4a2f731b8c4
4
+ data.tar.gz: 9993d58721d8c289a6d0c5897a6abbb0184268ea306d5ca560320897c6da0c79
5
5
  SHA512:
6
- metadata.gz: 06d8b3ceaba74f29da61dfc40d5cb5ca310c24759ba711636bfeffa85df643a60c5fe93675b7240dda002e1788536e25169a7a1362945f697ac9d4e052403cf2
7
- data.tar.gz: b5d4dd1c365c2807a920a09ab669e3a17684cd3c29a6683039814f269a364229f997c8310b2380e2a015812eef4fe05aed1e6da2016b3c34503be100c8a058a9
6
+ metadata.gz: 9bbc65bd24e1e76607768d70e2361527113db9e5b0d4edef00185230ac81d23048ca698f36ed6569f3037d9888c4d7629a871dd483146fbc0a1b3649257ef60f
7
+ data.tar.gz: 02e66995d3e2b2f05dea4646163e7a44cca3408c5700f05769db23d7147392e1b0e69c83ddcdc54bbf127bc73e601fb1aa75a6e3c9133e1133195978150a7eeb
@@ -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.
data/bin/toys CHANGED
@@ -2,8 +2,10 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  ::ENV["TOYS_BIN_PATH"] ||= ::File.absolute_path(__FILE__)
5
+ ::ENV["TOYS_LIB_PATH"] ||= ::File.absolute_path(::File.join(::File.dirname(__dir__), "lib"))
5
6
 
6
- $LOAD_PATH.unshift(::File.absolute_path(::File.join(::File.dirname(__dir__), "lib")))
7
+ $LOAD_PATH.delete(::ENV["TOYS_LIB_PATH"])
8
+ $LOAD_PATH.unshift(::ENV["TOYS_LIB_PATH"])
7
9
  require "toys"
8
10
 
9
11
  exit(::Toys::StandardCLI.new.run(::ARGV))
@@ -16,8 +16,9 @@ require "toys/version"
16
16
  abort "Unable to find toys-core gem!" unless path && ::File.directory?(path)
17
17
  path
18
18
  end
19
- $LOAD_PATH.unshift(::ENV["TOYS_CORE_LIB_PATH"])
20
19
 
20
+ $LOAD_PATH.delete(::ENV["TOYS_CORE_LIB_PATH"])
21
+ $LOAD_PATH.unshift(::ENV["TOYS_CORE_LIB_PATH"])
21
22
  require "toys-core"
22
23
 
23
24
  ##
@@ -38,6 +39,9 @@ module Toys
38
39
  #
39
40
  EXECUTABLE_PATH = ::ENV["TOYS_BIN_PATH"]
40
41
 
42
+ # @private
43
+ LIB_PATH = __dir__
44
+
41
45
  ##
42
46
  # Namespace for standard template classes.
43
47
  #
@@ -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.10.1"
8
+ VERSION = "0.10.2"
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.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: toys-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.10.1
19
+ version: 0.10.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.10.1
26
+ version: 0.10.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: did_you_mean
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -220,7 +220,7 @@ metadata:
220
220
  changelog_uri: https://github.com/dazuma/toys/blob/master/toys/CHANGELOG.md
221
221
  source_code_uri: https://github.com/dazuma/toys
222
222
  bug_tracker_uri: https://github.com/dazuma/toys/issues
223
- documentation_uri: https://dazuma.github.io/toys/gems/toys/v0.10.1
223
+ documentation_uri: https://dazuma.github.io/toys/gems/toys/v0.10.2
224
224
  post_install_message:
225
225
  rdoc_options: []
226
226
  require_paths: