dronejob 2.0.1 → 2.0.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
  SHA1:
3
- metadata.gz: b555f9cdada7c8119f84414446fbf616e38e8ffe
4
- data.tar.gz: a3fdb6dc20761e396025ccb884b4f0164c425758
3
+ metadata.gz: 6bff9afaf42c47bfef7c92aa1bdb85ddeaea4b95
4
+ data.tar.gz: c2501b9caf0652c31961330d0a3e01d1fe4a46a1
5
5
  SHA512:
6
- metadata.gz: 56345d732edfb887ab2eb8429898cec48bb28d9cd9a6da3da4b9ff17b7ef8c20549867d3b88dedee7a5756510f13b8d8b989d292425177d6953f39917d47be81
7
- data.tar.gz: ce4181b1692c3f9c754b874e0c235ed6655eb5d1a0f63307ae781483cd0d86b465e2a68ce0974d96337b60795ab6aae0e5cec4fa8ea8cd94a92158ed21248201
6
+ metadata.gz: 9e350ca252faff036e8e0b5c12f8a9992a1fa5302bae81f920cb342f773240471ebcf08cff6c1928ba1ca73442a8d84a5dbf1e50c3d1eaa40a0e9460d0268544
7
+ data.tar.gz: ce1ed5b23071458a2269b1451cc91ca56f8338279220293a7237131beda50eb0c620a0b660413ba6aebd0767e6801bc6210548f2570e01cc231fa875b2538dca
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dronejob (2.0.1)
4
+ dronejob (2.0.2)
5
5
  actionpack (>= 4.0.2)
6
6
  activejob (>= 4.0.2)
7
7
  activejob-google_cloud_pubsub (>= 0.7)
@@ -23,7 +23,13 @@ module Dronejob
23
23
  def log_phase; end
24
24
 
25
25
  def run_phases
26
- self.class.phases.each do |phase, phase_config|
26
+ if self.respond_to?(:before)
27
+ phases = before(self.class.phases)
28
+ else
29
+ phases = self.class.phases
30
+ end
31
+
32
+ phases.each do |phase, phase_config|
27
33
  @phase = phase
28
34
  @phase_config = phase_config
29
35
 
@@ -1,3 +1,3 @@
1
1
  module Dronejob
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dronejob
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Strebitzer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-18 00:00:00.000000000 Z
11
+ date: 2019-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler