sidekiq_prometheus 2.0.0 → 2.0.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: e41a25aa249fbd72437fef36b40b8ff0328a31ebb588a3e6be32b66d4af8bb37
4
- data.tar.gz: 79093b2be152a84f528a17e36866f49db59812dc3789d81dbda8fe7d7f2d6974
3
+ metadata.gz: 2714333d887725850f63e8fc1caf7d43c81186f8c2a8d7ac8aef03e6c58b18b8
4
+ data.tar.gz: f7d847ae7d35c0d082fda2b31ed5eb61c54d3f3314ed85c983bc2f05cc7cb68d
5
5
  SHA512:
6
- metadata.gz: b6018610e3dbf12324a123ad27f681771d93099a898ba454e9715cca4fa40fc9bccc96f3506ebd3df06501410ac3f4c8f838acbc207580a95f01c1e49187aa32
7
- data.tar.gz: 765360b4f3e748592828c414a95afae77c30846569e0fa4dee21aae40af530dab2caf13b119befb2c0086b39c4b3e9c9a4c8a9e8b7417c89a05f1949fbf6ede1
6
+ metadata.gz: a50d4f382cbe52c0ba351b7a6a006c2f2787d14292f8fc4d2d84af0b92b75cea7edded1e55087d56cdbc047b3f43c693745ffa0d8043bd2faee9f9e6c61e4ff8
7
+ data.tar.gz: 1dd6f7d4052529dcb35055acf4c42739bd56b19a0b44ac0e3c5985b42c45b38e034e5f7113fc01b127675ee3930a3e0202f2ddcfc8db0577575ad7034f98d49d
@@ -0,0 +1,28 @@
1
+ name: Ruby
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main" ]
6
+ pull_request:
7
+ branches: [ "main" ]
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ test:
14
+
15
+ runs-on: ubuntu-latest
16
+ strategy:
17
+ matrix:
18
+ ruby-version: ['2.7', '3.0', '3.1', '3.2']
19
+
20
+ steps:
21
+ - uses: actions/checkout@v3
22
+ - name: Set up Ruby
23
+ uses: ruby/setup-ruby@v1
24
+ with:
25
+ ruby-version: ${{ matrix.ruby-version }}
26
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
27
+ - name: Run tests
28
+ run: bundle exec rake
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  CHANGELOG
2
2
 
3
+ <a name="v2.0.0"></a>
4
+ ## [v2.0.0](https://github.com/fastly/sidekiq-prometheus/compare/v1.9.0...v2.0.0) (2023-08-23)
5
+
6
+ ## What's Changed
7
+ * Sidekiq 7 support by @leklund in https://github.com/fastly/sidekiq-prometheus/pull/37
8
+
9
+ **Full Changelog**: https://github.com/fastly/sidekiq-prometheus/compare/v1.9.0...v2.0.0
10
+
3
11
  <a name="v1.9.0"></a>
4
12
  ## [v1.9.0](https://github.com/fastly/sidekiq-prometheus/compare/v1.8.3...v1.9.0) (2023-08-23)
5
13
 
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Sidekiq Prometheus
2
2
 
3
3
 
4
- [![Status](https://travis-ci.org/fastly/sidekiq-prometheus.svg?branch=main)](https://travis-ci.org/fastly/sidekiq-prometheus)
4
+ [![Status](https://github.com/fastly/sidekiq-prometheus/actions/workflows/ruby.yml/badge.svg)](https://github.com/fastly/sidekiq-prometheus/actions/workflows/ruby.yml)
5
5
  ![Gem](https://img.shields.io/gem/v/sidekiq_prometheus.svg?color=blue)
6
6
  [![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)
7
7
 
@@ -276,7 +276,3 @@ The gem is available as open source under the terms of the [MIT License](https:/
276
276
  ## Code of Conduct
277
277
 
278
278
  Everyone interacting in the SidekiqPrometheus project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/fastly/sidekiq-prometheus/blob/main/CODE_OF_CONDUCT.md).
279
-
280
- # Metadata
281
-
282
- - Ignore
@@ -30,7 +30,7 @@ class SidekiqPrometheus::JobMetrics
30
30
 
31
31
  result
32
32
  rescue => e
33
- if e.instance_of?(::Sidekiq::Limiter::OverLimit)
33
+ if defined?(::Sidekiq::Limiter::OverLimit) && e.instance_of?(::Sidekiq::Limiter::OverLimit)
34
34
  registry[:sidekiq_job_over_limit].increment(labels: labels)
35
35
  else
36
36
  err_label = {error_class: e.class.to_s}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SidekiqPrometheus
4
- VERSION = "2.0.0"
4
+ VERSION = "2.0.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq_prometheus
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lukas Eklund
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-08-23 00:00:00.000000000 Z
12
+ date: 2023-11-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -160,9 +160,9 @@ extra_rdoc_files: []
160
160
  files:
161
161
  - ".chglog/CHANGELOG.tpl.md"
162
162
  - ".chglog/config.yml"
163
+ - ".github/workflows/ruby.yml"
163
164
  - ".gitignore"
164
165
  - ".rubocop.yml"
165
- - ".travis.yml"
166
166
  - CHANGELOG.md
167
167
  - CODE_OF_CONDUCT.md
168
168
  - Gemfile
data/.travis.yml DELETED
@@ -1,10 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 3.1
5
- - 3.0
6
- - 2.7
7
- before_install: gem install bundler -v 2.2.15
8
- gemfile:
9
- - sidekiq_6.gemfile
10
- - sidekiq_7.gemfile