honeycomb-beeline 2.7.0 → 2.7.1

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: 97016b5bcb57ce01fa980218fac7d8b71b3b145dec5ff30ad5ab9693d070d665
4
- data.tar.gz: df32abbd87b653800ec3ebe2693cc3008593e307ee70ef1f5ab9333f139a96ba
3
+ metadata.gz: d073f7df59bebb1a80589c302eaace2c35c2d73a8a180a66aa787efcecb6b609
4
+ data.tar.gz: d70ea8442d815282ec2942bbe11503faa9e619e3c1ada7fdb42e0a68a6f655b2
5
5
  SHA512:
6
- metadata.gz: 51757f1553274cda4c354d16f50998745c41b0f89f4d27d763d8e81f2fe9142a1f491ea3208eb73d26211a81d5c2f2f15e282b9555fd4416d3a20f8cb3373f23
7
- data.tar.gz: 0ef3666a518f2e965972967af8fb13d7597bd132026bc6ed8580b93458f0f1cf227a6ab05204dbc31f34da520f25e9f97201d3a9347173da4e7cdece0b6875b0
6
+ metadata.gz: 6d71deb49303e135bb59d852b9513d5890fb3e10413d24ed5c041624b9b572753f422862e85213c02e3085afbceefe6ef016e2b2342239aa30d674088e8be2f2
7
+ data.tar.gz: c92e6cf3fa914ee0d81ef3fdfd6104d7aa51d0e3848754982d280a76baee4acbe193a5954747d4b56fc9e6e4fd58e55f58553dc6481ebad0cac5edf4d77bd8f5
data/.circleci/config.yml CHANGED
@@ -13,7 +13,7 @@ commands:
13
13
  - checkout
14
14
  - restore_cache:
15
15
  keys:
16
- - gems-v1-<< parameters.ruby-version >>-<< parameters.gemfile >>-{{ checksum "Gemfile.lock" }}
16
+ - gems-v1-<< parameters.ruby-version >>-<< parameters.gemfile >>-{{ checksum "honeycomb-beeline.gemspec" }}
17
17
  - gems-v1-<< parameters.ruby-version >>-<< parameters.gemfile >>
18
18
  - gems-v1-<< parameters.ruby-version >>
19
19
  - run: .circleci/bundler_version.sh
@@ -24,7 +24,7 @@ commands:
24
24
  - save_cache:
25
25
  paths:
26
26
  - ./vendor/bundle
27
- key: gems-v1-<< parameters.ruby-version >>-<< parameters.gemfile >>-{{ checksum "Gemfile.lock" }}
27
+ key: gems-v1-<< parameters.ruby-version >>-<< parameters.gemfile >>-{{ checksum "honeycomb-beeline.gemspec" }}
28
28
  - run: << parameters.command >>
29
29
 
30
30
  jobs:
@@ -106,6 +106,30 @@ jobs:
106
106
  command: bundle exec rake test
107
107
  - store_test_results:
108
108
  path: test/reports
109
+ - persist_to_workspace:
110
+ root: ./
111
+ paths:
112
+ - coverage
113
+ coverage_report:
114
+ parameters:
115
+ ruby-version:
116
+ type: string
117
+ default: "2.6"
118
+ docker:
119
+ - image: circleci/ruby:<< parameters.ruby-version >>
120
+ environment:
121
+ BUNDLE_GEMFILE: ./Gemfile
122
+ steps:
123
+ - ruby:
124
+ ruby-version: << parameters.ruby-version >>
125
+ gemfile: root
126
+ command: echo "Get the project environment and cached dependencies prior to retrieving the coverage results."
127
+ - attach_workspace:
128
+ at: ./
129
+ - run: ls -l ./coverage
130
+ - run: bundle exec rake coverage:report
131
+ - store_artifacts:
132
+ path: coverage
109
133
 
110
134
  workflows:
111
135
  nightly:
@@ -124,7 +148,7 @@ workflows:
124
148
  - lint
125
149
  matrix:
126
150
  parameters:
127
- ruby-version: ["2.2", "2.3", "2.4", "2.5", "2.6", "2.7"]
151
+ ruby-version: ["2.2", "2.3", "2.4", "2.5", "2.6", "2.7", "3.0"]
128
152
  gemfile:
129
153
  - aws_2
130
154
  - aws_3
@@ -170,6 +194,19 @@ workflows:
170
194
  gemfile: rails_41
171
195
  - ruby-version: "2.7"
172
196
  gemfile: rails_42
197
+ - ruby-version: "3.0"
198
+ gemfile: rails_41
199
+ - ruby-version: "3.0"
200
+ gemfile: rails_42
201
+ - ruby-version: "3.0"
202
+ gemfile: rails_5
203
+ - ruby-version: "3.0"
204
+ gemfile: rails_51
205
+ - ruby-version: "3.0"
206
+ gemfile: rails_52
207
+ - ruby-version: "3.0"
208
+ gemfile: sequel4
209
+
173
210
  beeline:
174
211
  jobs:
175
212
  - lint:
@@ -179,6 +216,10 @@ workflows:
179
216
  - test:
180
217
  <<: *test
181
218
  filters: *regular_filters
219
+ - coverage_report:
220
+ filters: *regular_filters
221
+ requires:
222
+ - test
182
223
  - build_artifacts:
183
224
  filters: &tag_filters
184
225
  tags:
@@ -0,0 +1,26 @@
1
+ name: 'Close stale issues and PRs'
2
+ on:
3
+ schedule:
4
+ - cron: '30 1 * * *'
5
+
6
+ jobs:
7
+ stale:
8
+ name: 'Close stale issues and PRs'
9
+ runs-on: ubuntu-latest
10
+ permissions:
11
+ issues: write
12
+ pull-requests: write
13
+
14
+ steps:
15
+ - uses: actions/stale@v4
16
+ with:
17
+ start-date: '2021-09-01T00:00:00Z'
18
+ stale-issue-message: 'Marking this issue as stale because it has been open 14 days with no activity. Please add a comment if this is still an ongoing issue; otherwise this issue will be automatically closed in 7 days.'
19
+ stale-pr-message: 'Marking this PR as stale because it has been open 30 days with no activity. Please add a comment if this PR is still relevant; otherwise this PR will be automatically closed in 7 days.'
20
+ close-issue-message: 'Closing this issue due to inactivity. Please see our [Honeycomb OSS Lifecyle and Practices](https://github.com/honeycombio/home/blob/main/honeycomb-oss-lifecycle-and-practices.md).'
21
+ close-pr-message: 'Closing this PR due to inactivity. Please see our [Honeycomb OSS Lifecyle and Practices](https://github.com/honeycombio/home/blob/main/honeycomb-oss-lifecycle-and-practices.md).'
22
+ days-before-issue-stale: 14
23
+ days-before-pr-stale: 30
24
+ days-before-issue-close: 7
25
+ days-before-pr-close: 7
26
+ any-of-labels: 'status: info needed,status: revision needed'
data/Appraisals CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  appraise "aws-2" do
4
4
  gem "aws-sdk", "~> 2"
5
+ gem "webrick"
5
6
  end
6
7
 
7
8
  appraise "aws-3" do
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # beeline-ruby changelog
2
2
 
3
+ ## 2.7.1 2021-10-22
4
+
5
+ ### Maintenance
6
+
7
+ - Change maintenance badge to maintained (#174) | [@JamieDanielson](https://github.com/JamieDanielson)
8
+ - Adds Stalebot (#175) | [@JamieDanielson](https://github.com/JamieDanielson)
9
+ - gather up the matrix'd code coverage and save a report (#173) | [@robbkidd](https://github.com/robbkidd)
10
+ - add Ruby 3.0 to CI matrix (#171) | [@robbkidd](https://github.com/robbkidd)
11
+ - remove CodeCov from test suite (#172) | [@robbkidd](https://github.com/robbkidd)
12
+ - Add NOTICE (#169) | [@cartermp](https://github.com/cartermp)
13
+
3
14
  ## 2.7.0 2021-09-03
4
15
 
5
16
  ### Improvements
data/NOTICE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright (c) 2016-Present Honeycomb, Hound Technology, Inc. All Rights Reserved.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
data/OSSMETADATA CHANGED
@@ -1 +1 @@
1
- osslifecycle=maintenance
1
+ osslifecycle=maintained
data/README.md CHANGED
@@ -1,9 +1,8 @@
1
1
  # Honeycomb Beeline for Ruby
2
2
 
3
- [![OSS Lifecycle](https://img.shields.io/osslifecycle/honeycombio/beeline-ruby)](https://github.com/honeycombio/home/blob/main/honeycomb-oss-lifecycle-and-practices.md)
3
+ [![OSS Lifecycle](https://img.shields.io/osslifecycle/honeycombio/beeline-ruby?color=success)](https://github.com/honeycombio/home/blob/main/honeycomb-oss-lifecycle-and-practices.md)
4
4
  [![Build Status](https://circleci.com/gh/honeycombio/beeline-ruby.svg?style=svg)](https://circleci.com/gh/honeycombio/beeline-ruby)
5
5
  [![Gem Version](https://badge.fury.io/rb/honeycomb-beeline.svg)](https://badge.fury.io/rb/honeycomb-beeline)
6
- [![codecov](https://codecov.io/gh/honeycombio/beeline-ruby/branch/main/graph/badge.svg)](https://codecov.io/gh/honeycombio/beeline-ruby)
7
6
 
8
7
  This package makes it easy to instrument your Ruby web app to send useful events to [Honeycomb](https://www.honeycomb.io), a service for debugging your software in production.
9
8
  - [Usage and Examples](https://docs.honeycomb.io/getting-data-in/beelines/ruby-beeline/)
data/RELEASING.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Releasing
2
2
 
3
3
  - Update the version number in `lib/honeycomb/beeline/version`.
4
- - Run `bundle lock`.
5
- - Confirm the version number update appears in `Gemfile.lock`
6
4
  - Update `CHANGELOG.md` with the changes since the last release.
7
5
  - Commit changes, push, and open a release preparation pull request for review.
8
6
  - Once the pull request is merged, fetch the updated `main` branch.
data/Rakefile CHANGED
@@ -14,3 +14,15 @@ task test: :spec
14
14
  task default: %i[rubocop test]
15
15
 
16
16
  !ENV["APPRAISAL_INITIALIZED"] && !ENV["TRAVIS"] && task(default: :appraisal)
17
+
18
+ namespace :coverage do
19
+ desc "Collates all result sets generated by the different test runners"
20
+ task :report do
21
+ require "simplecov"
22
+
23
+ SimpleCov.collate Dir["coverage/**/.resultset.json"] do
24
+ add_group "Integrations", "lib/honeycomb/integrations"
25
+ add_group "Propagation", "lib/honeycomb/propagation"
26
+ end
27
+ end
28
+ end
@@ -42,7 +42,6 @@ Gem::Specification.new do |spec|
42
42
  spec.add_development_dependency "appraisal"
43
43
  spec.add_development_dependency "bump"
44
44
  spec.add_development_dependency "bundler"
45
- spec.add_development_dependency "codecov"
46
45
  spec.add_development_dependency "overcommit", "~> 0.46.0"
47
46
  spec.add_development_dependency "pry", "< 0.13.0"
48
47
  spec.add_development_dependency "pry-byebug", "~> 3.6.0"
@@ -3,7 +3,7 @@
3
3
  module Honeycomb
4
4
  module Beeline
5
5
  NAME = "honeycomb-beeline".freeze
6
- VERSION = "2.7.0".freeze
6
+ VERSION = "2.7.1".freeze
7
7
  USER_AGENT_SUFFIX = "#{NAME}/#{VERSION}".freeze
8
8
  end
9
9
  end
@@ -5,9 +5,9 @@ require "faraday"
5
5
  module Honeycomb
6
6
  # Faraday middleware to create spans around outgoing http requests
7
7
  class Faraday < ::Faraday::Middleware
8
- def initialize(app, client:)
8
+ def initialize(app, options)
9
9
  super(app)
10
- @client = client
10
+ @client = options[:client]
11
11
  end
12
12
 
13
13
  def call(env)
@@ -26,9 +26,9 @@ module Honeycomb
26
26
 
27
27
  attr_reader :app, :client
28
28
 
29
- def initialize(app, client:)
29
+ def initialize(app, options)
30
30
  @app = app
31
- @client = client
31
+ @client = options[:client]
32
32
  end
33
33
 
34
34
  def call(env)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: honeycomb-beeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Holman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-07 00:00:00.000000000 Z
11
+ date: 2021-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: libhoney
@@ -72,20 +72,6 @@ dependencies:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
- - !ruby/object:Gem::Dependency
76
- name: codecov
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- version: '0'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- version: '0'
89
75
  - !ruby/object:Gem::Dependency
90
76
  name: overcommit
91
77
  requirement: !ruby/object:Gem::Requirement
@@ -260,6 +246,7 @@ files:
260
246
  - ".github/dependabot.yml"
261
247
  - ".github/workflows/add-to-project.yml"
262
248
  - ".github/workflows/apply-labels.yml"
249
+ - ".github/workflows/stale.yml"
263
250
  - ".gitignore"
264
251
  - ".overcommit.yml"
265
252
  - ".rspec"
@@ -272,8 +259,8 @@ files:
272
259
  - CONTRIBUTING.md
273
260
  - CONTRIBUTORS.md
274
261
  - Gemfile
275
- - Gemfile.lock
276
262
  - LICENSE
263
+ - NOTICE
277
264
  - OSSMETADATA
278
265
  - README.md
279
266
  - RELEASING.md
data/Gemfile.lock DELETED
@@ -1,139 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- honeycomb-beeline (2.7.0)
5
- libhoney (~> 1.14, >= 1.14.2)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- addressable (2.7.0)
11
- public_suffix (>= 2.0.2, < 5.0)
12
- ansi (1.5.0)
13
- appraisal (2.2.0)
14
- bundler
15
- rake
16
- thor (>= 0.14.0)
17
- ast (2.4.0)
18
- bump (0.9.0)
19
- byebug (10.0.2)
20
- childprocess (0.9.0)
21
- ffi (~> 1.0, >= 1.0.11)
22
- codecov (0.2.8)
23
- json
24
- simplecov
25
- coderay (1.1.2)
26
- crack (0.4.3)
27
- safe_yaml (~> 1.0.0)
28
- diff-lcs (1.3)
29
- docile (1.3.2)
30
- domain_name (0.5.20190701)
31
- unf (>= 0.0.5, < 1.0.0)
32
- excon (0.82.0)
33
- ffi (1.12.2)
34
- ffi-compiler (1.0.1)
35
- ffi (>= 1.0.0)
36
- rake
37
- hashdiff (1.0.1)
38
- http (4.4.1)
39
- addressable (~> 2.3)
40
- http-cookie (~> 1.0)
41
- http-form_data (~> 2.2)
42
- http-parser (~> 1.2.0)
43
- http-cookie (1.0.4)
44
- domain_name (~> 0.5)
45
- http-form_data (2.3.0)
46
- http-parser (1.2.3)
47
- ffi-compiler (>= 1.0, < 2.0)
48
- iniparse (1.5.0)
49
- jaro_winkler (1.5.4)
50
- json (2.3.1)
51
- libhoney (1.18.0)
52
- addressable (~> 2.0)
53
- excon
54
- http (>= 2.0, < 5.0)
55
- method_source (0.9.2)
56
- overcommit (0.46.0)
57
- childprocess (~> 0.6, >= 0.6.3)
58
- iniparse (~> 1.4)
59
- parallel (1.19.1)
60
- parser (2.7.1.2)
61
- ast (~> 2.4.0)
62
- pry (0.12.2)
63
- coderay (~> 1.1.0)
64
- method_source (~> 0.9.0)
65
- pry-byebug (3.6.0)
66
- byebug (~> 10.0)
67
- pry (~> 0.10)
68
- public_suffix (4.0.4)
69
- rainbow (3.0.0)
70
- rake (13.0.1)
71
- rspec (3.9.0)
72
- rspec-core (~> 3.9.0)
73
- rspec-expectations (~> 3.9.0)
74
- rspec-mocks (~> 3.9.0)
75
- rspec-core (3.9.2)
76
- rspec-support (~> 3.9.3)
77
- rspec-expectations (3.9.2)
78
- diff-lcs (>= 1.2.0, < 2.0)
79
- rspec-support (~> 3.9.0)
80
- rspec-mocks (3.9.1)
81
- diff-lcs (>= 1.2.0, < 2.0)
82
- rspec-support (~> 3.9.0)
83
- rspec-support (3.9.3)
84
- rspec_junit_formatter (0.4.1)
85
- rspec-core (>= 2, < 4, != 2.12.0)
86
- rubocop (0.68.1)
87
- jaro_winkler (~> 1.5.1)
88
- parallel (~> 1.10)
89
- parser (>= 2.5, != 2.5.1.1)
90
- rainbow (>= 2.2.2, < 4.0)
91
- ruby-progressbar (~> 1.7)
92
- unicode-display_width (>= 1.4.0, < 1.6)
93
- rubocop-performance (1.2.0)
94
- rubocop (>= 0.68.0)
95
- ruby-progressbar (1.10.1)
96
- safe_yaml (1.0.5)
97
- simplecov (0.18.5)
98
- docile (~> 1.1)
99
- simplecov-html (~> 0.11)
100
- simplecov-console (0.7.2)
101
- ansi
102
- simplecov
103
- terminal-table
104
- simplecov-html (0.12.2)
105
- terminal-table (1.8.0)
106
- unicode-display_width (~> 1.1, >= 1.1.1)
107
- thor (1.0.1)
108
- unf (0.1.4)
109
- unf_ext
110
- unf_ext (0.0.7.7)
111
- unicode-display_width (1.5.0)
112
- webmock (3.8.3)
113
- addressable (>= 2.3.6)
114
- crack (>= 0.3.2)
115
- hashdiff (>= 0.4.0, < 2.0.0)
116
-
117
- PLATFORMS
118
- ruby
119
-
120
- DEPENDENCIES
121
- appraisal
122
- bump
123
- bundler
124
- codecov
125
- honeycomb-beeline!
126
- overcommit (~> 0.46.0)
127
- pry (< 0.13.0)
128
- pry-byebug (~> 3.6.0)
129
- rake
130
- rspec (~> 3.0)
131
- rspec_junit_formatter
132
- rubocop (< 0.69)
133
- rubocop-performance (< 1.3.0)
134
- simplecov
135
- simplecov-console
136
- webmock
137
-
138
- BUNDLED WITH
139
- 2.2.21