madhawk57-log 0.1.5 → 0.1.6

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: 8116c243e1fe140dc4c0e9b5dbef8670f80348948b37a2e836a220a3bb312045
4
- data.tar.gz: e3f5dde11180d58c95d81caff8ac5035b1e7fb0e2dc415c26c6817e6e52ba2c4
3
+ metadata.gz: 8cd9b60a60ba7fbb87c62070412d279201b52b211f8a3870dffaee347ee7f0b4
4
+ data.tar.gz: d4564ac42c84e4a41888ac175624942c2e7b8477ee59e6633b0445ecd35e94cd
5
5
  SHA512:
6
- metadata.gz: bf968426a8cc731a3cd54145de05092dfd72f2715dc514222c35c9a3bbea4970ba6b944acf42ab61180766d63ec56098e4f6851bd876c3937ff1a4e4c766269f
7
- data.tar.gz: 0d254322339258a68d30a506907bbf95866d8736e851c61420012028d87c502bc4a12789127219969659a042addd208db980ba2c4bc001cbc2b50801eb10a1e5
6
+ metadata.gz: 0745d1e22a1c418ef0912ff6224efab0f7b529e01ee9e07a2eacbed2aedf94057d9239e5c05d0e4f4197fb1572659249816fc006af768be118ad7080c10d35b1
7
+ data.tar.gz: ae5d3514c9ab871d1456731efc696b33a15ccf7092776280db685a3e5029990e4b22c9ba6bc522e0feae8e260cefcb7ec0d1bcedde959b73724654aa217cea58
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
12
12
  gem.name = "madhawk57-log"
13
13
  gem.require_paths = ["lib"]
14
- gem.version = '0.1.5'
14
+ gem.version = '0.1.6'
15
15
  gem.required_ruby_version = ">= 2.1.0"
16
16
 
17
17
  gem.add_dependency "fluentd", [">= 0.10.58", "< 2"]
@@ -79,11 +79,10 @@ module Fluent
79
79
  end
80
80
 
81
81
  def fetch
82
- =begin
82
+ puts "using following to fetch from GSM"
83
83
  puts "project id: #{@projectId}"
84
84
  puts "secret name: #{@secretName}"
85
85
  puts "version: #{@version}"
86
- =end
87
86
 
88
87
  client = Google::Cloud::SecretManager.secret_manager_service
89
88
 
@@ -102,7 +101,6 @@ module Fluent
102
101
 
103
102
  @username = s[0]
104
103
  @password = s[1]
105
- @scram_mechanism = "PLAIN"
106
104
 
107
105
  s
108
106
  end
@@ -27,7 +27,7 @@ Set brokers directly:
27
27
  config_param :use_default_for_unknown_topic, :bool, :default => false, :desc => "If true, default_topic is used when topic not found"
28
28
  config_param :client_id, :string, :default => 'fluentd'
29
29
  config_param :idempotent, :bool, :default => false, :desc => 'Enable idempotent producer'
30
- config_param :sasl_over_ssl, :bool, :default => false,
30
+ config_param :sasl_over_ssl, :bool, :default => true,
31
31
  :desc => <<-DESC
32
32
  Set to false to prevent SSL strict mode when using SASL authentication
33
33
  DESC
@@ -96,9 +96,6 @@ requires activesupport gem - records will be generated under fluent_kafka_stats.
96
96
  logger = @get_kafka_client_log ? log : nil
97
97
  if @secretName != nil && @projectId != nil
98
98
  fetch
99
- puts "project id: #{@username}"
100
- puts "secret name: #{@password}"
101
- puts "version: #{@scram_mechanism}"
102
99
  end
103
100
  if @scram_mechanism != nil && @username != nil && @password != nil
104
101
  @kafka = Kafka.new(seed_brokers: @seed_brokers, client_id: @client_id, logger: logger, connect_timeout: @connect_timeout, socket_timeout: @socket_timeout, ssl_ca_cert: read_ssl_file(@ssl_ca_cert),
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: madhawk57-log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Falk