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 +4 -4
- data/README.md +4 -2
- data/lib/gorg_service/message.rb +1 -0
- data/lib/gorg_service/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 09f612a4a57bfbcdea43409dffd7afdd6910e9dc
|
|
4
|
+
data.tar.gz: 561da5a918fe1c298acb307507870ca51fd8a73f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
|
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
|
|
data/lib/gorg_service/message.rb
CHANGED
data/lib/gorg_service/version.rb
CHANGED