hypernova 1.2.0 → 1.3.0

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: 6fd596f52c7679e63d8ecbbcf30bd3ed2eb73995
4
- data.tar.gz: 9c299ef53f79f1fc92a63656af9f24e6caa4c8de
3
+ metadata.gz: a242f1f0f34df73e20ff8a65215dd61a8a3c4807
4
+ data.tar.gz: 7d9505ad28a0237a173f92a24b84db200802b105
5
5
  SHA512:
6
- metadata.gz: 732a397cc928541c490294987dae78fbbc8918e7d02ac233a2645c9ca2be7cae7c343837138495306c144204e89257531e8b45d7e892d076aad4b688aa967072
7
- data.tar.gz: a885eadc1a0c4a61ddc66f49f786db530f166f2bf3df46a665c1fb7e4158b3726df4bb397a90003cc5a24bde0ea2613e4b81cf93776576888fa0a79eba49851e
6
+ metadata.gz: 48bced3966b492c2e5f0c042cdf08256a43c0f99d40a0f782628d3c710b3052d159cd21cf44688a28c74e405513917a478c00f7d619a252a889579fa105a80c4
7
+ data.tar.gz: 5e6edbb066d25a1f45b47fbdb4f6b23253aafc09293585a5678b24a86f66f690219dca9fd262456a9b6ae660e84c90a97e0be939be49a8ab0d30c59ac60b9c53
@@ -5,6 +5,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.3.0] - 2017-07-28
9
+
10
+ ### Added
11
+
12
+ - `on_error` now receives the job hash as its third parameter.
13
+
8
14
  ## [1.2.0] - 2017-02-13
9
15
 
10
16
  ### Changed
@@ -88,7 +88,7 @@ module Hypernova
88
88
  result = @hypernova_batch.submit!
89
89
  on_success(result, hash)
90
90
  rescue StandardError => e
91
- on_error(e)
91
+ on_error(e, nil, hash)
92
92
  result = @hypernova_batch.submit_fallback!
93
93
  end
94
94
  else
@@ -47,8 +47,8 @@ module Hypernova::PluginHelper
47
47
  end
48
48
  end
49
49
 
50
- def on_error(error, job = {})
51
- Hypernova.plugins.each { |plugin| plugin.on_error(error, job) if plugin.respond_to?(:on_error) }
50
+ def on_error(error, job = nil, jobs_hash = nil)
51
+ Hypernova.plugins.each { |plugin| plugin.on_error(error, job, jobs_hash) if plugin.respond_to?(:on_error) }
52
52
  end
53
53
 
54
54
  def on_success(res, jobs_hash)
@@ -1,3 +1,3 @@
1
1
  module Hypernova
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hypernova
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Teton-Landis
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: exe
14
14
  cert_chain: []
15
- date: 2017-02-13 00:00:00.000000000 Z
15
+ date: 2017-07-28 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: json