eventhub-processor 0.6 → 0.6.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: d9bb6c162c4ebc0445584a6f5c512fb3408a75b5
4
- data.tar.gz: c2a1f92ccebbfe20ff1b50b5db9c90902a052f4d
3
+ metadata.gz: 44d5ed69e279c131ded4155a7c9a0826762da15c
4
+ data.tar.gz: 7556d0b5b5eff063fb0de917bd94117528ab24e6
5
5
  SHA512:
6
- metadata.gz: d739f7c4124c33dad5f60b1aebd84287bfd23636198b04de9fcdaee8ce14b31dd1de3e224600293b8f30b6ada1b47eaf75d3b77cc36ff3835c79e292465a2498
7
- data.tar.gz: e2421acb39afc5899bc016367842bfa02c972de3baf789df28a9f905189ca8706f49fcae8ff3a84273d963cacb9a8566dd5a95fda4677429bf36c0c49d112b47
6
+ metadata.gz: d37aa987c7421fb2b80a6f8fc91b2027f0b505021d7a9156597e9a2431ef4f7878e5219d964689b33b5e54038fbbabb4de5d39a5c93ebddf28ab0abd07019a43
7
+ data.tar.gz: b9b818b214bad270aebec1922ac719e1aa9241ba542f2978dd438c6cfc9fd8b75ee13ca74b9045eabb9ea95612f85fec24c9304d682a86db06ddaf6588786d1f
@@ -13,4 +13,6 @@ module EventHub
13
13
  STATUS_DEADLETTER = 500 # To be set by dispatcher, processor or channel adapters to indicate
14
14
  # that message needs to be dead-lettered. Rejected messages could miss the
15
15
  # status.code = STATUS_DEADLETTER due to the RabbitMQ deadletter exchange mechanism.
16
+ STATUS_SCHEDULE = 600 # To be set to trigger scheduler based on schedule block
17
+ STATUS_SCHEDULE_PENDING = 601 # Set and used by the dispatcher only
16
18
  end
@@ -124,12 +124,14 @@ module EventHub
124
124
 
125
125
  def self.translate_status_code(code)
126
126
  case code
127
- when EventHub::STATUS_INITIAL then return 'STATUS_INITIAL'
128
- when EventHub::STATUS_SUCCESS then return 'STATUS_SUCCESS'
129
- when EventHub::STATUS_RETRY then return 'STATUS_RETRY'
130
- when EventHub::STATUS_RETRY_PENDING then return 'STATUS_RETRY_PENDING'
131
- when EventHub::STATUS_INVALID then return 'STATUS_INVALID'
132
- when EventHub::STATUS_DEADLETTER then return 'STATUS_DEADLETTER'
127
+ when EventHub::STATUS_INITIAL then return 'STATUS_INITIAL'
128
+ when EventHub::STATUS_SUCCESS then return 'STATUS_SUCCESS'
129
+ when EventHub::STATUS_RETRY then return 'STATUS_RETRY'
130
+ when EventHub::STATUS_RETRY_PENDING then return 'STATUS_RETRY_PENDING'
131
+ when EventHub::STATUS_INVALID then return 'STATUS_INVALID'
132
+ when EventHub::STATUS_DEADLETTER then return 'STATUS_DEADLETTER'
133
+ when EventHub::STATUS_SCHEDULE then return 'STATUS_SCHEDULE'
134
+ when EventHub::STATUS_SCHEDULE_PENDING then return 'STATUS_SCHEDULE_PENDING'
133
135
  end
134
136
  end
135
137
 
@@ -1,3 +1,3 @@
1
1
  module EventHub
2
- VERSION = '0.6'
2
+ VERSION = '0.6.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eventhub-processor
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.6'
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Steiner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-14 00:00:00.000000000 Z
11
+ date: 2016-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler