artsy-eventservice 0.1.0 → 0.1.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/CHANGELOG.md +5 -1
- data/Gemfile.lock +1 -1
- data/README.md +9 -5
- data/lib/artsy-eventservice/artsy/event_service.rb +1 -1
- data/lib/artsy-eventservice/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d37328fbc7b4544b7211d5faa01c24074a91b90b
|
4
|
+
data.tar.gz: a10fa60d75b70e75501ba206345ae2078cb0c69f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a63d94605ffc727da9a8462c82daff47401a9cd4f4a6dbf1feb9d3a5adcec441936218ba53af150c39298cc108ce8349938d8c01a014cfe97be341cbf3ab4479
|
7
|
+
data.tar.gz: 50b3d3dd019aebf3279fdad42ecdd638c735add1caa7f6a326d36d2a6fcdb7da1fb0ca1dea39faf8eb273fa750e7c7ecf871562e717fcd98af076d6fbee1fd64
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
### 0.1.1 (1/23/2017)
|
2
|
+
|
3
|
+
* Fix typo in ENV variable - [@ashkan18](https://github.com/ashkan18).
|
4
|
+
|
1
5
|
### 0.1.0 (12/29/2016)
|
2
6
|
|
3
|
-
* Initial public release - [@ashkan18](https://github.com/
|
7
|
+
* Initial public release - [@ashkan18](https://github.com/ashkan18).
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -15,11 +15,10 @@ Create events by inheriting from `Events::BaseEvent`. Override the properties th
|
|
15
15
|
module Events
|
16
16
|
class ConversationEvent < Events::BaseEvent
|
17
17
|
def subject
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
end
|
18
|
+
{
|
19
|
+
id: @object.to_id,
|
20
|
+
display: @object.to_name
|
21
|
+
}
|
23
22
|
end
|
24
23
|
|
25
24
|
def properties
|
@@ -39,6 +38,11 @@ RABBTIMQ_CLIENT_KEY=base64 strict decoded
|
|
39
38
|
RABBITMQ_CA_CERT=base64 strict decoded
|
40
39
|
```
|
41
40
|
|
41
|
+
### Enabaling Posting Events
|
42
|
+
We have a feature flag setup for enabling/disabling EventService. Setting `EVENT_STREAM_ENABLED` env variable will enable posting events. Not having this env means event service is disabled and no events will actually be sent.
|
43
|
+
|
44
|
+
|
45
|
+
### Posting events
|
42
46
|
Call `post_event` with proper `topic` and `event`:
|
43
47
|
```ruby
|
44
48
|
Artsy::EventService.post_event(topic: 'testing', event: event_model)
|
@@ -7,7 +7,7 @@ module Artsy
|
|
7
7
|
ENV['RABBITMQ_URL'],
|
8
8
|
tls: true,
|
9
9
|
tls_cert: Base64.decode64(ENV['RABBITMQ_CLIENT_CERT'] || ''),
|
10
|
-
tls_key: Base64.decode64(ENV['
|
10
|
+
tls_key: Base64.decode64(ENV['RABBITMQ_CLIENT_KEY'] || ''),
|
11
11
|
tls_ca_certificates: [Base64.decode64(ENV['RABBITMQ_CA_CERT'] || '')],
|
12
12
|
verify_peer: true
|
13
13
|
)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: artsy-eventservice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ashkan Nasseri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|