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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6898065da7e5fbbbd2f444441347498d0675832a
4
- data.tar.gz: dccb7c7b76d0794bb1d38f36d135f51b1c86e148
3
+ metadata.gz: 66fe4f48bf415538dcda244d5f1563291f664174
4
+ data.tar.gz: 0405b981db4f9afb022bd5b378e90a294893349d
5
5
  SHA512:
6
- metadata.gz: 7f861f74a9170206ea1de002990059b8a10edd60df99d573360bf84073be44c734cf2553fcbc7de128f6cd8b667bfce74f31d2896eeab70ecf90c16f04fc767d
7
- data.tar.gz: 0eb4d070dc7c3ccfe54d88dc104f851c49f3f528bc043d0787939dd65d782f1edf96a05d5263d2e9655850115a26b6e5bcdc8314f5a35f0b56cc26ea6c01e015
6
+ metadata.gz: aeb20754c2e7ad6b9247ba9f8dcaa326740acc34078cc7b5edd88f690b02a6641230eff014274b350cd47cb16dc2c22b2ec798c9d588ff65292429df6afb20c9
7
+ data.tar.gz: a4822c0daf08349320e0ac7b90fce77539b5721ac2de8817c6661aac1ceb314f74a01c6fc8e611567d14f7a0403a2c838c16916ea3046f890da1832476cd6248
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- artsy-eventservice (0.1.2)
4
+ artsy-eventservice (0.1.3)
5
5
  bunny (~> 2.6.2)
6
6
 
7
7
  GEM
@@ -3,14 +3,17 @@ require 'bunny'
3
3
  module Artsy
4
4
  module EventService
5
5
  def self.create_conn
6
- Bunny.new(
7
- ENV['RABBITMQ_URL'],
8
- tls: true,
9
- tls_cert: Base64.decode64(ENV['RABBITMQ_CLIENT_CERT'] || ''),
10
- tls_key: Base64.decode64(ENV['RABBITMQ_CLIENT_KEY'] || ''),
11
- tls_ca_certificates: [Base64.decode64(ENV['RABBITMQ_CA_CERT'] || '')],
12
- verify_peer: true
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:)
@@ -1,6 +1,6 @@
1
1
  module Artsy
2
2
  module EventService
3
- VERSION = '0.1.2'
3
+ VERSION = '0.1.3'
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.2
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-01 00:00:00.000000000 Z
11
+ date: 2017-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bunny