ruby_event_store-outbox 0.0.6 → 0.0.7

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
  SHA256:
3
- metadata.gz: 4bb8606ceba1dbd647b6c8716ab8a46fea986f38e8ac62c3fcd52cad1d2d0539
4
- data.tar.gz: b7053afc49a662a60e227c74677885e2d3cade60fde340d8373622bed6cb72a1
3
+ metadata.gz: c8e2e739e68444fa47e69b09357b61b1d7b7136db13663028b97eaff9c8f3375
4
+ data.tar.gz: fbf657458847ca98c43698c4b40acea4993e0a9c752f788e112490e190d2415b
5
5
  SHA512:
6
- metadata.gz: a5793ac3db528b2960a33632d726f91410ef7dba24e9ca0b4de3a61dd6fb0a5a6ca6aa07d2462caeeec1538a2de948481717f8e86453c976dc71e75b9697febf
7
- data.tar.gz: b03737a37ab5468b64dd6d167fe45116856e1bfcb45a5748cca749fd28806d259f5e51b58ee471d64f1e21449bc756c0fd560913afc7c7e6e96e74e43e2d8295
6
+ metadata.gz: a2a08df4a60ba2e339e2914c20fe4a5638f18b20a55a580e2b048758bf273d20fbff1a05fe0eb183d38d625ce6ce94a2e8cc034a1136320ade6bd0e3adeec165
7
+ data.tar.gz: 8c6114269f96e992a134b5b731a7be3ba870c4a57d75bfc74129cd385b5100c93d450a9574a53fd3d1bf0489801a0839fc9d3fc9e35237d96672dc4c62baf0da
@@ -5,7 +5,16 @@ module RubyEventStore
5
5
  module Metrics
6
6
  class Influx
7
7
  def initialize(url)
8
- @influxdb_client = InfluxDB::Client.new(url: url, async: true, time_precision: 'ns')
8
+ uri = URI.parse(url)
9
+ params = CGI.parse(uri.query || "")
10
+ options = {
11
+ url: url,
12
+ async: true,
13
+ time_precision: 'ns',
14
+ }
15
+ options[:username] = params["username"]&.first if params["username"].present?
16
+ options[:password] = params["password"]&.first if params["password"].present?
17
+ @influxdb_client = InfluxDB::Client.new(**options)
9
18
  end
10
19
 
11
20
  def write_point_queue(status:, enqueued: 0, failed: 0)
@@ -25,7 +34,6 @@ module RubyEventStore
25
34
  @influxdb_client.write_point(series, data)
26
35
  end
27
36
 
28
- private
29
37
  attr_reader :influxdb_client
30
38
  end
31
39
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RubyEventStore
4
4
  module Outbox
5
- VERSION = "0.0.6"
5
+ VERSION = "0.0.7"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_event_store-outbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arkency
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-24 00:00:00.000000000 Z
11
+ date: 2020-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby_event_store