foreman_hooks 0.3.16 → 0.3.17

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: 4dc282696356d27aa5a60add59c36a5cad8b56efff3b2d596a2d5046e9802f84
4
- data.tar.gz: b596f8a8701a4f5bc3ced2c26ffd156cf38b113040f04db031efecf726fe3a1b
3
+ metadata.gz: ada8bb38440801209fabcb38b2bea702e6364f0e9cdd0bb8e074060b3c46450a
4
+ data.tar.gz: ca37f997197dde8d000ce21d4ebd0bb938803cb7a3ff46dd2a8ee335634e396a
5
5
  SHA512:
6
- metadata.gz: db3174053c929c862debecf523943cb3f7c87dd902407579a9295f12de9f17e0d90998ad7e0d828a13303db05a9deed65181703fc4bcb40063647741561b8e51
7
- data.tar.gz: ab116e0a5052dae4a9e0f219bedf10eb217b481a7e2f00a070eca1c736dcf196ca15cd4712f814f0bbe06bd7fa4f04ce6c03d9d1aae00ee9fc3c9dd6575823a7
6
+ metadata.gz: 9da94d17eff07e19d3f02014a007f01aa5d33e113417eae10f3fcfb01edb7bb90a6d9e6f5f59ac7a8547b26b4aa1b875c7f02b4cac98c426dd44aaa47519f7dc
7
+ data.tar.gz: b97ee982a4ac00618bad1a832e48c69981bdbbafaaa806b97f1d891fcbfbb644ee04377696a77fa146eaf3935c41e0b0054eba3dae321352e951b93ae8de475a
@@ -2,6 +2,7 @@ module ForemanHooks
2
2
  module ASDependenciesHook
3
3
  def load_missing_constant(from_mod, constant_name)
4
4
  super(from_mod, constant_name).tap do |ret|
5
+ return ret unless ret.try(:name)
5
6
  ForemanHooks.hooks.each do |klass,events|
6
7
  ForemanHooks.attach_hook(ret, events) if ret.name == klass
7
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_hooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.16
4
+ version: 0.3.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominic Cleal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-17 00:00:00.000000000 Z
11
+ date: 2020-11-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Plugin engine for Foreman that enables running custom hook scripts on
14
14
  Foreman events
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  - !ruby/object:Gem::Version
58
58
  version: '0'
59
59
  requirements: []
60
- rubygems_version: 3.0.3
60
+ rubygems_version: 3.1.2
61
61
  signing_key:
62
62
  specification_version: 4
63
63
  summary: Run custom hook scripts on Foreman events