libhoney 1.13.3 → 1.13.6
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.
- checksums.yaml +4 -4
- data/.circleci/config.yml +14 -9
- data/.gitignore +0 -1
- data/.rubocop.yml +5 -0
- data/Gemfile.lock +2 -2
- data/lib/libhoney/transmission.rb +13 -13
- data/lib/libhoney/version.rb +1 -1
- metadata +2 -3
- data/.travis.yml +0 -18
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0be20329ad84cce8d218dfbf407b8727cc1d70a84df1c352e7b7d289fda2a31d
|
|
4
|
+
data.tar.gz: d3de4c3a13653a71293a232ddc9b3285be5a3f991767a45c50baed5b70096d63
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b4bc4d9075898cfcedc07403fd33b989c849c722580d3796a76eaab4c8417cbbc05807604dfca1699954ccfee1ad445ef32664b78439ba968fd60996e296b9b1
|
|
7
|
+
data.tar.gz: 3ab2bbeed576eefca8d9f77c36a287519b888c8ec803db220cc5b144aa5d310d39d03fbeb82b4290328eace8445b7da2ab2942ed3872fd5c01d301b0c53338d0
|
data/.circleci/config.yml
CHANGED
|
@@ -22,6 +22,11 @@ test_steps: &test_steps
|
|
|
22
22
|
name: run tests
|
|
23
23
|
command: bundle exec rake test
|
|
24
24
|
|
|
25
|
+
# required as all of the jobs need to have a tag filter for some reason
|
|
26
|
+
tag_filters: &tag_filters
|
|
27
|
+
filters:
|
|
28
|
+
tags:
|
|
29
|
+
only: /.*/
|
|
25
30
|
|
|
26
31
|
jobs:
|
|
27
32
|
ruby-2.3:
|
|
@@ -40,7 +45,7 @@ jobs:
|
|
|
40
45
|
docker:
|
|
41
46
|
- image: circleci/ruby:2.6
|
|
42
47
|
steps: *test_steps
|
|
43
|
-
publish:
|
|
48
|
+
publish:
|
|
44
49
|
docker:
|
|
45
50
|
# Just randomly pick one recent ruby version
|
|
46
51
|
- image: circleci/ruby:2.6
|
|
@@ -60,10 +65,10 @@ workflows:
|
|
|
60
65
|
version: 2
|
|
61
66
|
build:
|
|
62
67
|
jobs:
|
|
63
|
-
- ruby-2.3
|
|
64
|
-
- ruby-2.4
|
|
65
|
-
- ruby-2.5
|
|
66
|
-
- ruby-2.6
|
|
68
|
+
- ruby-2.3: *tag_filters
|
|
69
|
+
- ruby-2.4: *tag_filters
|
|
70
|
+
- ruby-2.5: *tag_filters
|
|
71
|
+
- ruby-2.6: *tag_filters
|
|
67
72
|
- publish:
|
|
68
73
|
requires:
|
|
69
74
|
- ruby-2.3
|
|
@@ -71,7 +76,7 @@ workflows:
|
|
|
71
76
|
- ruby-2.5
|
|
72
77
|
- ruby-2.6
|
|
73
78
|
filters:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
79
|
+
tags:
|
|
80
|
+
only: /^v.*/
|
|
81
|
+
branches:
|
|
82
|
+
ignore: /.*/
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
|
@@ -22,9 +22,14 @@ Metrics/MethodLength:
|
|
|
22
22
|
Max: 25
|
|
23
23
|
Exclude:
|
|
24
24
|
- lib/libhoney/transmission.rb
|
|
25
|
+
- test/*
|
|
25
26
|
|
|
26
27
|
Metrics/LineLength:
|
|
27
28
|
Max: 115
|
|
28
29
|
Exclude:
|
|
29
30
|
- lib/libhoney/client.rb
|
|
30
31
|
- lib/libhoney/builder.rb
|
|
32
|
+
|
|
33
|
+
Metrics/AbcSize:
|
|
34
|
+
Exclude:
|
|
35
|
+
- test/*
|
data/Gemfile.lock
CHANGED
|
@@ -87,10 +87,7 @@ module Libhoney
|
|
|
87
87
|
|
|
88
88
|
Response.new(error: e).tap do |error_response|
|
|
89
89
|
error_response.metadata = event.metadata
|
|
90
|
-
|
|
91
|
-
@responses.enq(error_response, !@block_on_responses)
|
|
92
|
-
rescue ThreadError
|
|
93
|
-
end
|
|
90
|
+
enqueue_response(error_response)
|
|
94
91
|
end
|
|
95
92
|
end
|
|
96
93
|
rescue ThreadError
|
|
@@ -123,7 +120,7 @@ module Libhoney
|
|
|
123
120
|
@threads.each(&:join)
|
|
124
121
|
@threads = []
|
|
125
122
|
|
|
126
|
-
|
|
123
|
+
enqueue_response(nil)
|
|
127
124
|
|
|
128
125
|
0
|
|
129
126
|
end
|
|
@@ -153,6 +150,15 @@ module Libhoney
|
|
|
153
150
|
|
|
154
151
|
private
|
|
155
152
|
|
|
153
|
+
##
|
|
154
|
+
# Enqueues a response to the responses queue suppressing ThreadError when
|
|
155
|
+
# there is no space left on the queue and we are not blocking on response
|
|
156
|
+
#
|
|
157
|
+
def enqueue_response(response)
|
|
158
|
+
@responses.enq(response, !@block_on_responses)
|
|
159
|
+
rescue ThreadError
|
|
160
|
+
end
|
|
161
|
+
|
|
156
162
|
def process_response(http_response, before, batch)
|
|
157
163
|
index = 0
|
|
158
164
|
http_response.parse.each do |event|
|
|
@@ -162,10 +168,7 @@ module Libhoney
|
|
|
162
168
|
Response.new(status_code: event['status']).tap do |response|
|
|
163
169
|
response.duration = Time.now - before
|
|
164
170
|
response.metadata = batched_event.metadata
|
|
165
|
-
|
|
166
|
-
@responses.enq(response, !@block_on_responses)
|
|
167
|
-
rescue ThreadError
|
|
168
|
-
end
|
|
171
|
+
enqueue_response(response)
|
|
169
172
|
end
|
|
170
173
|
end
|
|
171
174
|
end
|
|
@@ -185,10 +188,7 @@ module Libhoney
|
|
|
185
188
|
rescue StandardError => e
|
|
186
189
|
Response.new(error: e).tap do |response|
|
|
187
190
|
response.metadata = event.metadata
|
|
188
|
-
|
|
189
|
-
@responses.enq(response, !@block_on_responses)
|
|
190
|
-
rescue ThreadError
|
|
191
|
-
end
|
|
191
|
+
enqueue_response(response)
|
|
192
192
|
end
|
|
193
193
|
|
|
194
194
|
nil
|
data/lib/libhoney/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: libhoney
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.13.
|
|
4
|
+
version: 1.13.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- The Honeycomb.io Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-08-
|
|
11
|
+
date: 2019-08-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bump
|
|
@@ -195,7 +195,6 @@ files:
|
|
|
195
195
|
- ".gitignore"
|
|
196
196
|
- ".rubocop.yml"
|
|
197
197
|
- ".rubocop_todo.yml"
|
|
198
|
-
- ".travis.yml"
|
|
199
198
|
- CONTRIBUTORS
|
|
200
199
|
- Gemfile
|
|
201
200
|
- Gemfile.lock
|
data/.travis.yml
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
language: ruby
|
|
2
|
-
rvm:
|
|
3
|
-
- 2.2
|
|
4
|
-
- 2.3
|
|
5
|
-
- 2.4
|
|
6
|
-
- 2.5
|
|
7
|
-
script:
|
|
8
|
-
- bundle exec rake rubocop
|
|
9
|
-
- bundle exec rake test
|
|
10
|
-
deploy:
|
|
11
|
-
provider: rubygems
|
|
12
|
-
api_key:
|
|
13
|
-
secure: vtuGhZ4wujoJKVUdg5+sW6LbwWjiRQwTtA/2YFHPv+1guJNHyLcRJLAxZ9S4AVibjMqm38Qfh6GkK8rJCgur4wvO4EJoxp3qq7xOEAt02Lvg2KKtJ7ge6cQ0f5c8sIQ8emB2U5XFu4G5PARKAdtqlNxWWDwU9WbCZWxiDd9oCiX8/b8xt08GTlk7roI3tZGtpoa1Ca3u6bdJWAilGZQSwslx3mjnnZeLGTWsDEfLffjzt1aX+F2z3W1tUv7PGBPZLqfvsSh11ZnOV7o38VFbMwmAKcTcc6bYT4eUr1EYVpncGgw+zyi1X5BwBdRDXHKCJXclqhM+2q6dPpg32lzowksXS7DT8AdmwiybG05mvw7oAZM8DNCZ5Yf98MxOFKgIE5aE1XG31La7+e5llJA5SA3MKjd24FgnX1t71K0jcmAfJiHBWMEW8QnRfvM4gdlq6hViM6Adxh1htjRVtBVIE3SXwMfBiG6iLFx6BCIyK9kTKhzFWdqz0eQJkVCvjGpv18R6BOFem+cMKNrFIUGrc4nHRHstJ26kicVD8TSd1ja5mOfjHN5NXabEpx0nKtG6eFGGNyRaxh4lUKQ175wtnYyAlyoHG8g4Ya2o1NGDOHgjOCoz9SLy0BEyCl/gormwTJI7M2aDAoHtp68Yr8/oojhWxzkXr7HPSwqysbbNaDw=
|
|
14
|
-
gem: libhoney
|
|
15
|
-
on:
|
|
16
|
-
tags: true
|
|
17
|
-
repo: honeycombio/libhoney-rb
|
|
18
|
-
ruby: '2.2'
|