coralogix_fluentd_logger 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/manager.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0f070f0de45525a31f521d0f092d284d17db0cf
4
- data.tar.gz: f750b3a0b0ca2784dc444451e4195c8cfd3971ca
3
+ metadata.gz: fd4f86a5d4e0d30628228630a7cc3844c68e97ad
4
+ data.tar.gz: a4051cb7d64362218cdc75d852db49cc45f0acca
5
5
  SHA512:
6
- metadata.gz: 81b1c9cccc66450be4502e1acb9e4f272887772efd0af2430005a60bf8ccc4500937f68a3da88805df5ec7499e99bcf6f490c56dcf437a3f23a802ded924c483
7
- data.tar.gz: 48c8d736b23abfad9ec5a26648ae623b807f1c4ab18f8248a92bd2c75ab65d768f3cc24e37d8c83d0584675dfbad84db0ec2621d7a13448b6c32b07d1692af39
6
+ metadata.gz: 47fd24f7a727ac89909b9259fc02476b917e7720a20a710a161a9d833912046bc0526834aafa1ee8334725902ee93ce71141d0dde718646c168ac50fb7669672
7
+ data.tar.gz: 12661138fae93aacf61822c1e5dcff925c194548f1974b5005fd0e28b5d342ac801e0502f78102e9bb9941bd5c2096a9a5a762fc0c86aba5af69b898f50910e0
data/lib/manager.rb CHANGED
@@ -128,7 +128,7 @@ module Coralogix
128
128
 
129
129
  # If the size is bigger than the maximum allowed chunk size then split it by half.
130
130
  # Keep splitting it until the size is less than MAX_LOG_CHUNK_SIZE
131
- while (@buffer.take(size).join(",").bytesize > MAX_LOG_CHUNK_SIZE) || (size == 0)
131
+ while (@buffer.take(size).join(",").bytesize > MAX_LOG_CHUNK_SIZE) && (size > 0)
132
132
  size=size/2;
133
133
  end
134
134
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coralogix_fluentd_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Royee Goldberg
@@ -43,7 +43,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
43
43
  version: '0'
44
44
  requirements: []
45
45
  rubyforge_project:
46
- rubygems_version: 2.5.1
46
+ rubygems_version: 2.6.11
47
47
  signing_key:
48
48
  specification_version: 4
49
49
  summary: Coralogix Fluentd Logger SDK