gorg_service 1.0.0 → 1.0.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: 4202710bccd62ba26cc53da5903a84e570bc3ca6
4
- data.tar.gz: 7b7a517db9b978955a768471aad1e3685b8a89bd
3
+ metadata.gz: 09f612a4a57bfbcdea43409dffd7afdd6910e9dc
4
+ data.tar.gz: 561da5a918fe1c298acb307507870ca51fd8a73f
5
5
  SHA512:
6
- metadata.gz: 36684953d4b5825695b0b2f5e970c69ea2ba9dc05158180f4db95d6d22bde0369938aa2c448157e4ac4d297eea3a3e843ff7c16487448eda9a14759031135e4b
7
- data.tar.gz: bca143a3e2bbbaa1154e92e5f2f1d26f32db5fc5044eac750038e8bdfd2e4d33db3cc4bc42513f902c73c9011322dda24c4b544afbe0ba880b2bbffc77d3ccd3
6
+ metadata.gz: c70dfb94dca2948d81d65b0de2e253194f13b5a1e1942ac9019259b75ff845f9fcb935ff365aaccb043ac9e3d3a557fc0121bcdf3fdef75f50471934b259a256
7
+ data.tar.gz: e73ff770cdb6046a15d02d5ebb085e51e737acf26b15931a05a36d0a3d9ceabfba01d167518347a58a88c1d112e0cb41fe2138e0f2dc656025600d16e6434713
data/README.md CHANGED
@@ -126,17 +126,19 @@ As showed in this example,`GorgService::MessageHandler` provides 2 helpers :
126
126
  Each one of this helpers expect two params :
127
127
 
128
128
  - `message` : The information to be displayed in message's error log
129
- - `exception` (optional) : The runtime esception causing the hardfail, for debug purpose
129
+ - `exception` (optional) : The runtime exception causing the fail, for debug purpose
130
130
 
131
131
  ### Message structure
132
132
  `GorgService::Message` is defined [here](https://github.com/Zooip/gorg_service/blob/master/lib/gorg_service/message.rb)
133
133
 
134
- It provides 4 attributes :
134
+ It provides the following attributes :
135
135
 
136
136
  - `event` : this is the same as the routing key
137
137
  - `id`: message UUID
138
138
  - `errors`: `Hash` containing the message error log with previous errors
139
139
  - `data`: `Hash` containing the data to be processed
140
+ - `creation_time`: message emission date as `DateTime`
141
+ - `sender` : message producer id
140
142
 
141
143
  ## Development
142
144
 
@@ -2,6 +2,7 @@
2
2
  # encoding: utf-8
3
3
  require 'json'
4
4
  require 'time'
5
+ require 'json-schema'
5
6
 
6
7
  require "gorg_service/message/json_schema"
7
8
 
@@ -2,5 +2,5 @@
2
2
  # encoding: utf-8
3
3
 
4
4
  class GorgService
5
- VERSION = "1.0.0"
5
+ VERSION = "1.0.1"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gorg_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandre Narbonne