libhoney 1.20.0 → 1.21.0

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: 20e7e4496ff85fa667c3ddfe5d0c61361a645a7e4d6fc8465e04e16c3c07a4a1
4
- data.tar.gz: bf9f628b1bd052a6dab3132c0b4626237eff10bf7334177c88478201c3d9a1d4
3
+ metadata.gz: e193211937c61bf221e8610d7324c173d90aefa2f5d08f706c0ea56dcbb1d971
4
+ data.tar.gz: d235e368e4f1dc9b11a5a489fdff04c734a7804d57925394f515ac92a11ef0bf
5
5
  SHA512:
6
- metadata.gz: 37955fccffbbec485f391f738cb64829338404becd2507fd89c684377d3261f5b1deb010eaca8de160792cb32ff29d9ce637f731efc9f1c0d75067502641da37
7
- data.tar.gz: 0a2fa105907286cc22af13af4dcd416a8c1effd4b7fafe591af2185db1f0a4bc34c39a41f188dd2024c283ef9ac848347c212c1631a7d645a37c603cce79919d
6
+ metadata.gz: 7cbf429690cb10522b488f631be5b726e6973e3b1d73b660ac28f3d8186e7b88b392c6736252dc9e2a77bb2fb78a70bf8e678653edb12c8405a45bd693ec0e28
7
+ data.tar.gz: 9b318c534cdeac671ea52e880ce9e8e047bc2b730eb9ab7e020c111dbfaedc19083cd152e8e506b3422ef36c3d9e719b87ac661d871bf8cd13d5c24d5b5d19fb
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: Bug report
3
+ about: Let us know if something is not working as expected
4
+ title: ''
5
+ labels: 'type: bug'
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ <!---
11
+ Thank you for taking the time to report bugs!
12
+
13
+ We love code snippets and links to repositories that reproduce the issue, but understand if you don't have the time to add them. We'll do our best with the info you provide, and might ask follow-up questions.
14
+
15
+ Please see our [OSS process document](https://github.com/honeycombio/home/blob/main/honeycomb-oss-lifecycle-and-practices.md#) to get an idea of how we operate.
16
+ --->
17
+
18
+ **Versions**
19
+
20
+ - Ruby:
21
+ - Libhoney:
22
+
23
+ **Steps to reproduce**
24
+
25
+ 1.
26
+
27
+ **Additional context**
@@ -0,0 +1,25 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: 'type: enhancement'
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ <!---
11
+ Thank you for contributing an idea to this project!
12
+
13
+ Please see our [OSS process document](https://github.com/honeycombio/home/blob/main/honeycomb-oss-lifecycle-and-practices.md#) to get an idea of how we operate.
14
+ --->
15
+
16
+ **Is your feature request related to a problem? Please describe.**
17
+
18
+
19
+ **Describe the solution you'd like**
20
+
21
+
22
+ **Describe alternatives you've considered**
23
+
24
+
25
+ **Additional context**
@@ -0,0 +1,14 @@
1
+ ---
2
+ name: Question/Discussion
3
+ about: General question about how things work or a discussion
4
+ title: ''
5
+ labels: 'type: discussion'
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ <!---
11
+ Thank you for taking the time to say hello!
12
+
13
+ Please see our [OSS process document](https://github.com/honeycombio/home/blob/main/honeycomb-oss-lifecycle-and-practices.md#) to get an idea of how we operate.
14
+ --->
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: Security vulnerability report
3
+ about: Let us know if you discover a security vulnerability
4
+ title: ''
5
+ labels: 'type: security'
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ <!---
11
+ Thank you for taking the time to report security vulnerabilities!
12
+
13
+ Please see our [OSS process document](https://github.com/honeycombio/home/blob/main/honeycomb-oss-lifecycle-and-practices.md#) to get an idea of how we operate.
14
+ --->
15
+ **Versions**
16
+
17
+ - Ruby:
18
+ - Libhoney:
19
+
20
+ **Description**
21
+
22
+ (Please include any relevant CVE advisory links)
@@ -0,0 +1,20 @@
1
+ <!--
2
+ Thank you for contributing to the project! 💜
3
+ Please make sure to:
4
+ - Chat with us first if this is a big change
5
+ - Open a new issue (or comment on an existing one)
6
+ - We want to make sure you don't spend time implementing something we might have to say No to
7
+ - Add unit tests
8
+ - Mention any relevant issues in the PR description (e.g. "Fixes #123")
9
+
10
+ Please see our [OSS process document](https://github.com/honeycombio/home/blob/main/honeycomb-oss-lifecycle-and-practices.md#) to get an idea of how we operate.
11
+ -->
12
+
13
+ ## Which problem is this PR solving?
14
+
15
+ -
16
+
17
+ ## Short description of the changes
18
+
19
+ -
20
+
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # libhoney-rb changelog
2
2
 
3
+ ## [1.21.0] - 2021-09-23
4
+
5
+ ### Added
6
+
7
+ - Include Ruby runtime info in user agent (#105) | [robbkidd](https://github.com/robbkidd)
8
+
9
+ ### Maintenance
10
+
11
+ - Update http requirement from >= 2.0, < 5.0 to >= 2.0, < 6.0 (#100)
12
+ - Update spy requirement to accept any 1.x release (#102)
13
+ - Update rake requirement from ~> 12.3 to ~> 13.0 (#101)
14
+ - Add issue and PR templates (#99)
15
+ - Add OSS lifecycle badge (#98)
16
+ - Add community health files (#97)
17
+
3
18
  ## 1.20.0
4
19
 
5
20
  ### Fixes
@@ -0,0 +1,5 @@
1
+ # Code of Conduct
2
+
3
+ This project has adopted the Honeycomb User Community Code of Conduct to clarify expected behavior in our community.
4
+
5
+ https://www.honeycomb.io/honeycomb-user-community-code-of-conduct/
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,3 @@
1
+ # Contributing Guide
2
+
3
+ Please see our [general guide for OSS lifecycle and practices.](https://github.com/honeycombio/home/blob/main/honeycomb-oss-lifecycle-and-practices.md)
data/OSSMETADATA ADDED
@@ -0,0 +1 @@
1
+ osslifecycle=maintenance
data/README.md CHANGED
@@ -1,4 +1,8 @@
1
- # libhoney [![CircleCI Build Status](https://circleci.com/gh/honeycombio/libhoney-rb.svg?style=svg)](https://circleci.com/gh/honeycombio/libhoney-rb) [![Gem Version](https://badge.fury.io/rb/libhoney.svg)](https://badge.fury.io/rb/libhoney)
1
+ # libhoney
2
+
3
+ [![OSS Lifecycle](https://img.shields.io/osslifecycle/honeycombio/libhoney-rb)](https://github.com/honeycombio/home/blob/main/honeycomb-oss-lifecycle-and-practices.md)
4
+ [![CircleCI Build Status](https://circleci.com/gh/honeycombio/libhoney-rb.svg?style=svg)](https://circleci.com/gh/honeycombio/libhoney-rb)
5
+ [![Gem Version](https://badge.fury.io/rb/libhoney.svg)](https://badge.fury.io/rb/libhoney)
2
6
 
3
7
  Ruby gem for sending events to [Honeycomb](https://www.honeycomb.io), a service for debugging your software in production.
4
8
 
data/RELEASING.md ADDED
@@ -0,0 +1,11 @@
1
+ # Releasing
2
+
3
+ - Update the version number in `lib/libhoney/version.rb`.
4
+ - Run `bundle lock`.
5
+ - Confirm the version number update appears in `Gemfile.lock`
6
+ - Update `CHANGELOG.md` with the changes since the last release.
7
+ - Commit changes, push, and open a release preparation pull request for review.
8
+ - Once the pull request is merged, fetch the updated `main` branch.
9
+ - Apply a tag for the new version on the merged commit: vX.Y.Z, for example v1.1.2.
10
+ - Push the new version tag up to the project repository to kick off build and artifact publishing to GitHub and the Gems registry.
11
+ - Publish the draft release in GitHub.
data/SECURITY.md ADDED
@@ -0,0 +1,3 @@
1
+ # Reporting Security Issues
2
+
3
+ If you discover a security vulnerability, please open an issue with label `type: security`.
data/SUPPORT.md ADDED
@@ -0,0 +1,3 @@
1
+ # How to Get Help
2
+
3
+ This project uses GitHub issues to track bugs, feature requests, and questions about using the project. Please search for existing issues before filing a new one.
@@ -101,9 +101,7 @@ module Libhoney
101
101
  end
102
102
 
103
103
  def build_user_agent(user_agent_addition)
104
- ua = "libhoney-rb/#{VERSION} (exp-transmission)"
105
- ua << " #{user_agent_addition}" if user_agent_addition
106
- ua
104
+ super("(exp-transmission) #{user_agent_addition}".strip)
107
105
  end
108
106
  end
109
107
  end
@@ -297,9 +297,10 @@ module Libhoney
297
297
  end
298
298
 
299
299
  def build_user_agent(user_agent_addition)
300
- ua = "libhoney-rb/#{VERSION}"
301
- ua << " #{user_agent_addition}" if user_agent_addition
302
- ua
300
+ "libhoney-rb/#{VERSION}"
301
+ .concat(" #{user_agent_addition}")
302
+ .strip # remove trailing spaces if addition was empty
303
+ .concat(" Ruby/#{RUBY_VERSION} (#{RUBY_PLATFORM})")
303
304
  end
304
305
 
305
306
  def ensure_threads_running
@@ -1,3 +1,3 @@
1
1
  module Libhoney
2
- VERSION = '1.20.0'.freeze
2
+ VERSION = '1.21.0'.freeze
3
3
  end
data/libhoney.gemspec CHANGED
@@ -27,15 +27,15 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency 'lockstep'
28
28
  spec.add_development_dependency 'minitest', '~> 5.0'
29
29
  spec.add_development_dependency 'minitest-reporters'
30
- spec.add_development_dependency 'rake', '~> 12.3'
30
+ spec.add_development_dependency 'rake', '~> 13.0'
31
31
  spec.add_development_dependency 'rubocop', '< 0.69'
32
32
  spec.add_development_dependency 'sinatra'
33
33
  spec.add_development_dependency 'sinatra-contrib'
34
- spec.add_development_dependency 'spy', '1.0.0'
34
+ spec.add_development_dependency 'spy', '~> 1.0'
35
35
  spec.add_development_dependency 'webmock', '~> 3.4'
36
36
  spec.add_development_dependency 'yard'
37
37
  spec.add_development_dependency 'yardstick', '~> 0.9'
38
38
  spec.add_dependency 'addressable', '~> 2.0'
39
39
  spec.add_dependency 'excon'
40
- spec.add_dependency 'http', '>= 2.0', '< 5.0'
40
+ spec.add_dependency 'http', '>= 2.0', '< 6.0'
41
41
  end
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.20.0
4
+ version: 1.21.0
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: 2021-08-02 00:00:00.000000000 Z
11
+ date: 2021-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bump
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '12.3'
89
+ version: '13.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '12.3'
96
+ version: '13.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rubocop
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -140,16 +140,16 @@ dependencies:
140
140
  name: spy
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '='
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 1.0.0
145
+ version: '1.0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '='
150
+ - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 1.0.0
152
+ version: '1.0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: webmock
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -229,7 +229,7 @@ dependencies:
229
229
  version: '2.0'
230
230
  - - "<"
231
231
  - !ruby/object:Gem::Version
232
- version: '5.0'
232
+ version: '6.0'
233
233
  type: :runtime
234
234
  prerelease: false
235
235
  version_requirements: !ruby/object:Gem::Requirement
@@ -239,7 +239,7 @@ dependencies:
239
239
  version: '2.0'
240
240
  - - "<"
241
241
  - !ruby/object:Gem::Version
242
- version: '5.0'
242
+ version: '6.0'
243
243
  description: Ruby gem for sending data to Honeycomb
244
244
  email: support@honeycomb.io
245
245
  executables: []
@@ -250,6 +250,11 @@ files:
250
250
  - ".circleci/setup-rubygems.sh"
251
251
  - ".editorconfig"
252
252
  - ".github/CODEOWNERS"
253
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
254
+ - ".github/ISSUE_TEMPLATE/feature_request.md"
255
+ - ".github/ISSUE_TEMPLATE/question-discussion.md"
256
+ - ".github/ISSUE_TEMPLATE/security-vulnerability-report.md"
257
+ - ".github/PULL_REQUEST_TEMPLATE.md"
253
258
  - ".github/dependabot.yml"
254
259
  - ".github/workflows/add-to-project.yml"
255
260
  - ".github/workflows/apply-labels.yml"
@@ -257,12 +262,18 @@ files:
257
262
  - ".rubocop.yml"
258
263
  - ".rubocop_todo.yml"
259
264
  - CHANGELOG.md
265
+ - CODE_OF_CONDUCT.md
266
+ - CONTRIBUTING.md
260
267
  - CONTRIBUTORS
261
268
  - Gemfile
262
269
  - LICENSE
263
270
  - NOTICE
271
+ - OSSMETADATA
264
272
  - README.md
273
+ - RELEASING.md
265
274
  - Rakefile
275
+ - SECURITY.md
276
+ - SUPPORT.md
266
277
  - example/factorial.rb
267
278
  - lib/libhoney.rb
268
279
  - lib/libhoney/builder.rb