artsy-eventservice 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/artsy-eventservice/artsy/event_service.rb +11 -8
- 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: 66fe4f48bf415538dcda244d5f1563291f664174
|
4
|
+
data.tar.gz: 0405b981db4f9afb022bd5b378e90a294893349d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aeb20754c2e7ad6b9247ba9f8dcaa326740acc34078cc7b5edd88f690b02a6641230eff014274b350cd47cb16dc2c22b2ec798c9d588ff65292429df6afb20c9
|
7
|
+
data.tar.gz: a4822c0daf08349320e0ac7b90fce77539b5721ac2de8817c6661aac1ceb314f74a01c6fc8e611567d14f7a0403a2c838c16916ea3046f890da1832476cd6248
|
data/Gemfile.lock
CHANGED
@@ -3,14 +3,17 @@ require 'bunny'
|
|
3
3
|
module Artsy
|
4
4
|
module EventService
|
5
5
|
def self.create_conn
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
6
|
+
tls = ENV['RABBITMQ_NO_TLS'] == 'true' ? false : true
|
7
|
+
params = { tls: tls }
|
8
|
+
if tls
|
9
|
+
params.merge!({
|
10
|
+
tls_cert: Base64.decode64(ENV['RABBITMQ_CLIENT_CERT']),
|
11
|
+
tls_key: Base64.decode64(ENV['RABBITMQ_CLIENT_KEY']),
|
12
|
+
tls_ca_certificates: [Base64.decode64(ENV['RABBITMQ_CA_CERT'])],
|
13
|
+
verify_peer: ENV['RABBITMQ_NO_VERIFY_PEER'] == 'true' ? false : true
|
14
|
+
})
|
15
|
+
end
|
16
|
+
Bunny.new(ENV['RABBITMQ_URL'], **params)
|
14
17
|
end
|
15
18
|
|
16
19
|
def self.post_event(topic:, event:)
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ashkan Nasseri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|