toys-core 0.9.2 → 0.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3e7a8292d7e4fb6fc31e4f308159f50050c455055a5333d89cebe448f8a2d472
4
- data.tar.gz: 9e96d5f69ca1d072e64f0e2b012479ed1602b73ec94315a13dd6902f9ac5c189
3
+ metadata.gz: 8e61131a1ea87e576b41f751b62532221d3d11db00b995e714f87f90f52b5708
4
+ data.tar.gz: da189bb3ea44c701f9997907078c9ed95b32890e7a1e8a19071e68f780e6c18f
5
5
  SHA512:
6
- metadata.gz: d8bd19a911524c3a776c947e8dfed37466c877a03f475f472c1082b7287f446e9881cbe666bee87663fcc9d966e76a6426ef9db072c07d47946d5a0a9cd2f7ce
7
- data.tar.gz: 909d606e1bb8864264ee25e175b9422b5754071788bd2dcb590d617dd00aa7041f30a788380717a18d3242230939feff69e7a167d5b45096e22d29d6ae613f2f
6
+ metadata.gz: 5f6d78364b4a006216ddc467bbc2cb61e4ccc0f87bdd78507ec150303708496b50c77788c4702b63f257bb6c80bbf2f6695f63bb7c0dbffa9371c03b099580e8
7
+ data.tar.gz: 575efed8d0a1d170a24e04cbe9a75166402b8387950dc4684cf13e3079dcfadda9d011f2430b0f7c531d551d7e3f80fb25bbf71c57b6d19c0fd3df0fcdcc48cc
@@ -1,5 +1,10 @@
1
1
  # Release History
2
2
 
3
+ ### 0.9.3 / 2020-01-05
4
+
5
+ * FIXED: `delegate_to` directive could crash if an overriding tool has already been defined.
6
+ * FIXED: A Ruby 2.7 warning when reporting a Toys file syntax error.
7
+
3
8
  ### 0.9.2 / 2020-01-03
4
9
 
5
10
  * IMPROVED: Mixins can now take real keyword arguments, and will pass them on properly to `on_initialize` and `on_include` blocks.
@@ -30,7 +30,7 @@ module Toys
30
30
  # Current version of Toys core.
31
31
  # @return [String]
32
32
  #
33
- VERSION = "0.9.2"
33
+ VERSION = "0.9.3"
34
34
  end
35
35
 
36
36
  ## @private deprecated
@@ -404,6 +404,7 @@ module Toys
404
404
  #
405
405
  def delegate_to(target)
406
406
  cur_tool = DSL::Tool.current_tool(self, true)
407
+ return self if cur_tool.nil?
407
408
  cur_tool.delegate_to(@__loader.split_path(target))
408
409
  self
409
410
  end
@@ -96,7 +96,7 @@ module Toys
96
96
  rescue ::SyntaxError => e
97
97
  if (match = /#{::Regexp.escape(path)}:(\d+)/.match(e.message))
98
98
  opts = opts.merge(config_path: path, config_line: match[1].to_i)
99
- e = ContextualError.new(e, banner, opts)
99
+ e = ContextualError.new(e, banner, **opts)
100
100
  end
101
101
  raise e
102
102
  rescue ::ScriptError, ::StandardError => e
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.9.2
4
+ version: 0.9.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-01-04 00:00:00.000000000 Z
11
+ date: 2020-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline
@@ -182,7 +182,7 @@ metadata:
182
182
  changelog_uri: https://github.com/dazuma/toys/blob/master/toys-core/CHANGELOG.md
183
183
  source_code_uri: https://github.com/dazuma/toys
184
184
  bug_tracker_uri: https://github.com/dazuma/toys/issues
185
- documentation_uri: https://dazuma.github.io/toys/gems/toys-core/v0.9.2
185
+ documentation_uri: https://dazuma.github.io/toys/gems/toys-core/v0.9.3
186
186
  post_install_message:
187
187
  rdoc_options: []
188
188
  require_paths: