artsy-eventservice 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9768b5adc5dfcc97e16ce3cbfeb432d0e383ebb
4
- data.tar.gz: 29ea4b53bdfb2a911707be6e2fa3ee71983c4efc
3
+ metadata.gz: d37328fbc7b4544b7211d5faa01c24074a91b90b
4
+ data.tar.gz: a10fa60d75b70e75501ba206345ae2078cb0c69f
5
5
  SHA512:
6
- metadata.gz: 751b9e5b2e459f028cc6ca17ca821459688cea0b028c26fa1b884b5f2a99acb6a364f90a6bffbba90e87928c43bddf06bd86989ef91237594a90476e8be39755
7
- data.tar.gz: 7adf8370810145efd73ac6e877dede30e30a5a14a473f3a68d824bae4ba0c8f7108121289e12c27164c7b7bc492b36ed45a330daeb06fcdb800de49ae9927242
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/askan18).
7
+ * Initial public release - [@ashkan18](https://github.com/ashkan18).
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- artsy-eventservice (0.1.0)
4
+ artsy-eventservice (0.1.1)
5
5
  bunny (~> 2.6.2)
6
6
 
7
7
  GEM
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
- id: @object.to_id,
20
- display: @object.to_name
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['RABBTIMQ_CLIENT_KEY'] || ''),
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
  )
@@ -1,6 +1,6 @@
1
1
  module Artsy
2
2
  module EventService
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
5
5
  end
6
6
 
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.0
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: 2016-12-29 00:00:00.000000000 Z
11
+ date: 2017-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny