honeycomb-beeline 2.11.0 → 2.11.1.pre.dev

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: fb1cdd573575f99c826f6c98a20184dca3585ca9725f78373086c4b6dbac9a8a
4
- data.tar.gz: 84d8b9c5e0d3e98a86f469245b8981c74861b92c591a1b399ebbcb786f18749e
3
+ metadata.gz: 52fb2200e25db002d4e9c2570c95a786fa2b8f43990363d2ff24c3d4eff15a51
4
+ data.tar.gz: 40854a97dfc2ef9a71729c6ffc6af0a6732c877b2faacaf417a5c4b72ff87c51
5
5
  SHA512:
6
- metadata.gz: 7d9700b19010094ec5c130af68cf6d07b91d493e60b560b48ec89012680d9102c82249a16e131adec06db3463cec5113dc68977bc0b8a1dccf8a1171f412674a
7
- data.tar.gz: 25f56bc53a4debe90efb86dbc00152129fc7fe80a1e682a9d3efc33294b2d8fe87139fb87aa3e5cca0f03f76c238a41e5508208f3df0246792f841e0c265013e
6
+ metadata.gz: cca4d89088d60d01d98a3e499e0ca53f226dea09b9e9575ccac8618545a50e5fdf9fff108ccd2a24bef551aa286add0ef2a69d57d238831535bf9e95950229b5
7
+ data.tar.gz: d4f28f8de6b59d88eed5fc54a441051003c966a29ac542581dab5a937fac8d7008e9e855033e56cc87e160bc059e8cb765d4884b08ff0962b48db8575e52a977
data/.circleci/config.yml CHANGED
@@ -30,7 +30,7 @@ commands:
30
30
  jobs:
31
31
  build_artifacts:
32
32
  docker:
33
- - image: circleci/ruby:2.6
33
+ - image: cimg/ruby:2.7
34
34
  steps:
35
35
  - checkout
36
36
  - run: mkdir -p ~/artifacts
@@ -45,7 +45,7 @@ jobs:
45
45
 
46
46
  publish_rubygems:
47
47
  docker:
48
- - image: circleci/ruby:2.6
48
+ - image: cimg/ruby:2.7
49
49
  steps:
50
50
  - attach_workspace:
51
51
  at: ~/
@@ -79,9 +79,9 @@ jobs:
79
79
  parameters:
80
80
  ruby-version:
81
81
  type: string
82
- default: "2.6"
82
+ default: "2.7"
83
83
  docker:
84
- - image: circleci/ruby:<< parameters.ruby-version >>
84
+ - image: cimg/ruby:<< parameters.ruby-version >>
85
85
  environment:
86
86
  BUNDLE_GEMFILE: ./Gemfile
87
87
  steps:
@@ -89,7 +89,7 @@ jobs:
89
89
  ruby-version: << parameters.ruby-version >>
90
90
  gemfile: root
91
91
  command: bundle exec rake rubocop
92
- test:
92
+ test-older-versions: # need to use deprecated circleci/ruby images for older ruby versions
93
93
  parameters:
94
94
  gemfile:
95
95
  type: string
@@ -110,13 +110,34 @@ jobs:
110
110
  root: ./
111
111
  paths:
112
112
  - coverage
113
+ test:
114
+ parameters:
115
+ gemfile:
116
+ type: string
117
+ ruby-version:
118
+ type: string
119
+ docker:
120
+ - image: cimg/ruby:<< parameters.ruby-version >>
121
+ environment:
122
+ BUNDLE_GEMFILE: gemfiles/<< parameters.gemfile >>.gemfile
123
+ steps:
124
+ - ruby:
125
+ ruby-version: << parameters.ruby-version >>
126
+ gemfile: << parameters.gemfile >>
127
+ command: bundle exec rake test
128
+ - store_test_results:
129
+ path: test/reports
130
+ - persist_to_workspace:
131
+ root: ./
132
+ paths:
133
+ - coverage
113
134
  coverage_report:
114
135
  parameters:
115
136
  ruby-version:
116
137
  type: string
117
- default: "2.6"
138
+ default: "2.7"
118
139
  docker:
119
- - image: circleci/ruby:<< parameters.ruby-version >>
140
+ - image: cimg/ruby:<< parameters.ruby-version >>
120
141
  environment:
121
142
  BUNDLE_GEMFILE: ./Gemfile
122
143
  steps:
@@ -142,13 +163,13 @@ workflows:
142
163
  - main
143
164
  jobs:
144
165
  - lint
145
- - test: &test
166
+ - test-older-versions: &test-older-versions # need to use deprecated circleci/ruby images for older ruby versions
146
167
  name: test-<< matrix.gemfile >>-ruby_<< matrix.ruby-version >>
147
168
  requires:
148
169
  - lint
149
170
  matrix:
150
171
  parameters:
151
- ruby-version: ["2.2", "2.3", "2.4", "2.5", "2.6", "2.7", "3.0"]
172
+ ruby-version: ["2.2", "2.3", "2.4", "2.5", "2.6"]
152
173
  gemfile:
153
174
  - aws_2
154
175
  - aws_3
@@ -157,7 +178,8 @@ workflows:
157
178
  - sequel4
158
179
  - sequel5
159
180
  - sinatra
160
- - rack
181
+ - rack_2
182
+ - rack_3
161
183
  - rails_41
162
184
  - rails_42
163
185
  - rails_5
@@ -168,20 +190,22 @@ workflows:
168
190
  - redis_3
169
191
  - redis_4
170
192
  exclude:
193
+ - ruby-version: "2.2"
194
+ gemfile: faraday_0
171
195
  - ruby-version: "2.2"
172
196
  gemfile: faraday_1
173
197
  - ruby-version: "2.2"
174
198
  gemfile: rails_52
175
199
  - ruby-version: "2.2"
176
200
  gemfile: rails_6
177
- - ruby-version: "2.3"
178
- gemfile: rails_6
179
- - ruby-version: "2.4"
180
- gemfile: rails_6
181
201
  - ruby-version: "2.2"
182
202
  gemfile: rails_61
203
+ - ruby-version: "2.3"
204
+ gemfile: rails_6
183
205
  - ruby-version: "2.3"
184
206
  gemfile: rails_61
207
+ - ruby-version: "2.4"
208
+ gemfile: rails_6
185
209
  - ruby-version: "2.4"
186
210
  gemfile: rails_61
187
211
  - ruby-version: "2.4"
@@ -190,14 +214,35 @@ workflows:
190
214
  gemfile: rails_41
191
215
  - ruby-version: "2.6"
192
216
  gemfile: rails_41
193
- - ruby-version: "2.7"
194
- gemfile: rails_41
195
- - ruby-version: "2.7"
196
- gemfile: rails_42
197
- - ruby-version: "3.0"
198
- gemfile: rails_41
199
- - ruby-version: "3.0"
200
- gemfile: rails_42
217
+ - ruby-version: "2.2"
218
+ gemfile: rack_3
219
+ - ruby-version: "2.3"
220
+ gemfile: rack_3
221
+ - test: &test
222
+ name: test-<< matrix.gemfile >>-ruby_<< matrix.ruby-version >>
223
+ requires:
224
+ - lint
225
+ matrix:
226
+ parameters:
227
+ ruby-version: ["2.7", "3.0", "3.1"]
228
+ gemfile:
229
+ - aws_2
230
+ - aws_3
231
+ - faraday_0
232
+ - faraday_1
233
+ - sequel4
234
+ - sequel5
235
+ - sinatra
236
+ - rack_2
237
+ - rack_3
238
+ - rails_5
239
+ - rails_51
240
+ - rails_52
241
+ - rails_6
242
+ - rails_61
243
+ - redis_3
244
+ - redis_4
245
+ exclude:
201
246
  - ruby-version: "3.0"
202
247
  gemfile: rails_5
203
248
  - ruby-version: "3.0"
@@ -206,6 +251,14 @@ workflows:
206
251
  gemfile: rails_52
207
252
  - ruby-version: "3.0"
208
253
  gemfile: sequel4
254
+ - ruby-version: "3.1"
255
+ gemfile: rails_5
256
+ - ruby-version: "3.1"
257
+ gemfile: rails_51
258
+ - ruby-version: "3.1"
259
+ gemfile: rails_52
260
+ - ruby-version: "3.1"
261
+ gemfile: sequel4
209
262
 
210
263
  beeline:
211
264
  jobs:
@@ -213,6 +266,9 @@ workflows:
213
266
  filters: &regular_filters
214
267
  tags:
215
268
  only: /.*/
269
+ - test-older-versions: # need to use deprecated circleci/ruby images for older ruby versions
270
+ <<: *test-older-versions
271
+ filters: *regular_filters
216
272
  - test:
217
273
  <<: *test
218
274
  filters: *regular_filters
@@ -220,6 +276,7 @@ workflows:
220
276
  filters: *regular_filters
221
277
  requires:
222
278
  - test
279
+ - test-older-versions
223
280
  - build_artifacts:
224
281
  filters: &tag_filters
225
282
  tags:
@@ -229,10 +286,11 @@ workflows:
229
286
  requires:
230
287
  - lint
231
288
  - test
289
+ - test-older-versions
232
290
  - publish_rubygems: &publish
233
291
  filters: *tag_filters
234
292
  requires:
235
293
  - build_artifacts
294
+ context: Honeycomb Secrets for Public Repos
236
295
  - publish_github:
237
296
  <<: *publish
238
- context: Honeycomb Secrets for Public Repos
@@ -1,3 +1,3 @@
1
1
  mkdir ~/.gem
2
- echo -e "---\r\n:rubygems_api_key: $GEM_HOST_API_KEY" > ~/.gem/credentials
2
+ echo -e "---\r\n:rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials
3
3
  chmod 0600 /home/circleci/.gem/credentials
data/.github/CODEOWNERS CHANGED
@@ -2,4 +2,4 @@
2
2
  # This file controls who is tagged for review for any given pull request.
3
3
 
4
4
  # For anything not explicitly taken by someone else:
5
- * @honeycombio/telemetry-team @martin308
5
+ * @honeycombio/telemetry-team
@@ -13,3 +13,6 @@ updates:
13
13
  - "type: dependencies"
14
14
  reviewers:
15
15
  - "honeycombio/telemetry-team"
16
+ commit-message:
17
+ prefix: "maint"
18
+ include: "scope"
@@ -0,0 +1,23 @@
1
+ # .github/release.yml
2
+
3
+ changelog:
4
+ exclude:
5
+ labels:
6
+ - no-changelog
7
+ categories:
8
+ - title: 💥 Breaking Changes 💥
9
+ labels:
10
+ - "version: bump major"
11
+ - breaking-change
12
+ - title: 💡 Enhancements
13
+ labels:
14
+ - "type: enhancement"
15
+ - title: 🐛 Fixes
16
+ labels:
17
+ - "type: bug"
18
+ - title: 🛠 Maintenance
19
+ labels:
20
+ - "type: maintenance"
21
+ - title: 🤷 Other Changes
22
+ labels:
23
+ - "*"
@@ -0,0 +1,15 @@
1
+ name: Add to project
2
+ on:
3
+ issues:
4
+ types: [opened]
5
+ pull_request_target:
6
+ types: [opened]
7
+ jobs:
8
+ add-to-project:
9
+ runs-on: ubuntu-latest
10
+ name: Add issues and PRs to project
11
+ steps:
12
+ - uses: actions/add-to-project@main
13
+ with:
14
+ project-url: https://github.com/orgs/honeycombio/projects/11
15
+ github-token: ${{ secrets.GHPROJECTS_TOKEN }}
@@ -0,0 +1,64 @@
1
+ name: "Validate PR Title"
2
+
3
+ on:
4
+ pull_request:
5
+ types:
6
+ - opened
7
+ - edited
8
+ - synchronize
9
+
10
+ jobs:
11
+ main:
12
+ name: Validate PR title
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: amannn/action-semantic-pull-request@v5
16
+ id: lint_pr_title
17
+ name: "🤖 Check PR title follows conventional commit spec"
18
+ env:
19
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20
+ with:
21
+ # Have to specify all types because `maint` and `rel` aren't defaults
22
+ types: |
23
+ maint
24
+ rel
25
+ fix
26
+ feat
27
+ chore
28
+ ci
29
+ docs
30
+ style
31
+ refactor
32
+ perf
33
+ test
34
+ ignoreLabels: |
35
+ "type: dependencies"
36
+ # When the previous steps fails, the workflow would stop. By adding this
37
+ # condition you can continue the execution with the populated error message.
38
+ - if: always() && (steps.lint_pr_title.outputs.error_message != null)
39
+ name: "📝 Add PR comment about using conventional commit spec"
40
+ uses: marocchino/sticky-pull-request-comment@v2
41
+ with:
42
+ header: pr-title-lint-error
43
+ message: |
44
+ Thank you for contributing to the project! 🎉
45
+
46
+ We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted.
47
+
48
+ Make sure to prepend with `feat:`, `fix:`, or another option in the list below.
49
+
50
+ Once you update the title, this workflow will re-run automatically and validate the updated title.
51
+
52
+ Details:
53
+
54
+ ```
55
+ ${{ steps.lint_pr_title.outputs.error_message }}
56
+ ```
57
+
58
+ # Delete a previous comment when the issue has been resolved
59
+ - if: ${{ steps.lint_pr_title.outputs.error_message == null }}
60
+ name: "❌ Delete PR comment after title has been updated"
61
+ uses: marocchino/sticky-pull-request-comment@v2
62
+ with:
63
+ header: pr-title-lint-error
64
+ delete: true
data/Appraisals CHANGED
@@ -31,8 +31,15 @@ appraise "sinatra" do
31
31
  gem "warden"
32
32
  end
33
33
 
34
- appraise "rack" do
35
- gem "rack"
34
+ appraise "rack-2" do
35
+ gem "rack", "~>2.0"
36
+ gem "rack-test"
37
+ gem "warden"
38
+ end
39
+
40
+ appraise "rack-3" do
41
+ gem "rack", "~>3.0"
42
+ gem "rack-session"
36
43
  gem "rack-test"
37
44
  gem "warden"
38
45
  end
@@ -7,8 +7,8 @@ require "honeycomb/beeline/version"
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = Honeycomb::Beeline::NAME
9
9
  spec.version = Honeycomb::Beeline::VERSION
10
- spec.authors = ["Martin Holman"]
11
- spec.email = ["martin@honeycomb.io"]
10
+ spec.authors = ["The Honeycomb.io Team"]
11
+ spec.email = ["support@honeycomb.io"]
12
12
 
13
13
  spec.summary = "Instrument your Ruby apps with Honeycomb"
14
14
  spec.homepage = "https://honeycomb.io"
@@ -48,9 +48,13 @@ Gem::Specification.new do |spec|
48
48
  spec.add_development_dependency "rake"
49
49
  spec.add_development_dependency "rspec", "~> 3.0"
50
50
  spec.add_development_dependency "rspec_junit_formatter", ">= 0.5.1"
51
- spec.add_development_dependency "rubocop", "< 0.69"
51
+ spec.add_development_dependency "rubocop", [">= 0.60.0", "< 0.69"]
52
52
  spec.add_development_dependency "rubocop-performance", "< 1.3.0"
53
53
  spec.add_development_dependency "simplecov"
54
54
  spec.add_development_dependency "simplecov-console"
55
- spec.add_development_dependency "webmock"
55
+ if RUBY_VERSION < "2.3.0"
56
+ spec.add_development_dependency "webmock", "< 3.15.0"
57
+ else
58
+ spec.add_development_dependency "webmock"
59
+ end
56
60
  end
@@ -3,7 +3,7 @@
3
3
  module Honeycomb
4
4
  module Beeline
5
5
  NAME = "honeycomb-beeline".freeze
6
- VERSION = "2.11.0".freeze
6
+ VERSION = "2.11.1-dev".freeze
7
7
  USER_AGENT_SUFFIX = "#{NAME}/#{VERSION}".freeze
8
8
  end
9
9
  end
@@ -65,7 +65,7 @@ module Honeycomb
65
65
 
66
66
  def add_package_information(_env)
67
67
  yield "meta.package", "rack"
68
- yield "meta.package_version", ::Rack::VERSION.join(".")
68
+ yield "meta.package_version", ::Rack.release
69
69
  end
70
70
 
71
71
  def extract_fields(env, fields)
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.11.0
4
+ version: 2.11.1.pre.dev
5
5
  platform: ruby
6
6
  authors:
7
- - Martin Holman
7
+ - The Honeycomb.io Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-01 00:00:00.000000000 Z
11
+ date: 2023-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: libhoney
@@ -154,6 +154,9 @@ dependencies:
154
154
  name: rubocop
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: 0.60.0
157
160
  - - "<"
158
161
  - !ruby/object:Gem::Version
159
162
  version: '0.69'
@@ -161,6 +164,9 @@ dependencies:
161
164
  prerelease: false
162
165
  version_requirements: !ruby/object:Gem::Requirement
163
166
  requirements:
167
+ - - ">="
168
+ - !ruby/object:Gem::Version
169
+ version: 0.60.0
164
170
  - - "<"
165
171
  - !ruby/object:Gem::Version
166
172
  version: '0.69'
@@ -222,7 +228,7 @@ dependencies:
222
228
  version: '0'
223
229
  description:
224
230
  email:
225
- - martin@honeycomb.io
231
+ - support@honeycomb.io
226
232
  executables: []
227
233
  extensions: []
228
234
  extra_rdoc_files: []
@@ -238,10 +244,11 @@ files:
238
244
  - ".github/ISSUE_TEMPLATE/security-vulnerability-report.md"
239
245
  - ".github/PULL_REQUEST_TEMPLATE.md"
240
246
  - ".github/dependabot.yml"
241
- - ".github/workflows/add-to-project.yml"
247
+ - ".github/release.yml"
248
+ - ".github/workflows/add-to-project-v2.yml"
242
249
  - ".github/workflows/apply-labels.yml"
243
- - ".github/workflows/re-triage.yml"
244
250
  - ".github/workflows/stale.yml"
251
+ - ".github/workflows/validate-pr-title.yml"
245
252
  - ".gitignore"
246
253
  - ".overcommit.yml"
247
254
  - ".rspec"
@@ -313,11 +320,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
313
320
  version: 2.2.0
314
321
  required_rubygems_version: !ruby/object:Gem::Requirement
315
322
  requirements:
316
- - - ">="
323
+ - - ">"
317
324
  - !ruby/object:Gem::Version
318
- version: '0'
325
+ version: 1.3.1
319
326
  requirements: []
320
- rubygems_version: 3.0.3.1
327
+ rubygems_version: 3.3.26
321
328
  signing_key:
322
329
  specification_version: 4
323
330
  summary: Instrument your Ruby apps with Honeycomb
@@ -1,14 +0,0 @@
1
- name: Apply project management flow
2
- on:
3
- issues:
4
- types: [opened]
5
- pull_request_target:
6
- types: [opened]
7
- jobs:
8
- project-management:
9
- runs-on: ubuntu-latest
10
- name: Apply project management flow
11
- steps:
12
- - uses: honeycombio/oss-management-actions/projects@v1
13
- with:
14
- ghprojects-token: ${{ secrets.GHPROJECTS_TOKEN }}
@@ -1,12 +0,0 @@
1
- name: Re-triage issues with new comments
2
- on:
3
- issue_comment:
4
- types: [created]
5
- jobs:
6
- re-triage:
7
- runs-on: ubuntu-latest
8
- name: Re-triage issues with new comments
9
- steps:
10
- - uses: honeycombio/oss-management-actions/re-triage@v1
11
- with:
12
- ghprojects-token: ${{ secrets.GHPROJECTS_TOKEN }}