pluginator 0.12.0 → 0.12.1

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
  SHA1:
3
- metadata.gz: 1d8c056877e89594061c2e405b67949407eeb21e
4
- data.tar.gz: 2d5d6f563ce00c70ca1b580ba21e70aa6098d5d1
3
+ metadata.gz: 3a56ec0232b4b0d3bff76ca136b14b33b0d7b232
4
+ data.tar.gz: 208b160fb4e716d43afe4ed4abb7ce6fcd5efb92
5
5
  SHA512:
6
- metadata.gz: f01770108770ca11337f9c4f0eb4fcc62671ff1339c34263854b72def4a7cf99a61a89e1a5dc43f07ed2b172b51fde14b9805ef61ce94f4e554cdb0190d28665
7
- data.tar.gz: 93ba1b89cd686ee8e2db580610eb048b17648d1ec0bced4870f25b22d7c582168ccca81a0b7559adabdfc2cdaca263845dd8d95b0ff34138fcac76f6c9dfc1e9
6
+ metadata.gz: d0551d4d9f432d29e2b36912817f9b4a8a738762b3cf18ba7f1c5eb565894ce9abcfc0b1358d8b5f0f4ed75348e79e61dea0bf0f34e444367fe4926e3c366341
7
+ data.tar.gz: 3d33a4462c1c6f900470189c73c7dba418809264ba1cf1c45590dd71d08994e5bae676d2984e0df5ad7aa361a7bad319c5ab85fffbab71dc4c22c762d840da3e
@@ -1,4 +1,4 @@
1
1
  module Pluginator
2
2
  # Version of Pluginator
3
- VERSION = "0.12.0"
3
+ VERSION = "0.12.1"
4
4
  end
@@ -15,6 +15,7 @@ module Pluginator::Extensions
15
15
  def first_ask(type, method_name, *params)
16
16
  @plugins[type] or return nil
17
17
  @plugins[type].detect do |plugin|
18
+ plugin.respond_to?(method_name.to_sym) &&
18
19
  plugin.public_send(method_name.to_sym, *params)
19
20
  end
20
21
  end
@@ -24,6 +25,7 @@ module Pluginator::Extensions
24
25
  def first_ask!(type, method_name, *params)
25
26
  @plugins[type] or raise Pluginator::MissingType.new(type, @plugins.keys)
26
27
  @plugins[type].detect do |plugin|
28
+ plugin.respond_to?(method_name.to_sym) &&
27
29
  plugin.public_send(method_name, *params)
28
30
  end or
29
31
  raise Pluginator::MissingPlugin.new(type, "first_ask: #{method_name}", plugins_map(type).keys)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pluginator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Papis