newrelic-sidekiq-metrics 1.3.1 → 1.5.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: a27a079527d1d5a2fee926474b303b3873c731549ea9424be3c9084be0ced70f
4
- data.tar.gz: 1f21921a65d2e041ce3b9037434989d928580f2a2c3e9c5d33fa6933fc46bd82
3
+ metadata.gz: f6f829dc0a44e9ffdfed5cfda5faddd65fffcf8c1bf8eff776ec64763069a957
4
+ data.tar.gz: 3fc51b58b528e66aff5e8d44d6d22ce5dc7882bd690e7ab1ccbae2363237b158
5
5
  SHA512:
6
- metadata.gz: d2743eaced2fcc43ea9c9885d65588e39d4d2939e8068506fa4e519bebaa5b408c8275ab06a6e95940882e02925ea5cc62ba92d9af021c647b56e58b3329645d
7
- data.tar.gz: 6119743f9ca0fbba2afc47d24d5692fbee309218ff0ca5df3e88977d4285f033d3ef2c7d237004a84182380ffbc91d77a633033baba5c2b10ecbdbe351ac0635
6
+ metadata.gz: f3618396a3b7700cf3bea85eda376c5e8e580d520e8febc1f5c329ba786dcc33d15756e258012ffc5ab6f1f33de56ca1ef299631627485363cf1935438ac3768
7
+ data.tar.gz: 134fd528c730f40e2b01b568c1448a7b782b817087745e532d24924b2fd9fbba640ab8bef83a132697012ccdd41b25f6194e82119f2d30074235b70cf7ea85c8
data/.bundler-version CHANGED
@@ -1 +1 @@
1
- 2.2.22
1
+ 2.3.10
@@ -2,15 +2,13 @@
2
2
  # this will allow Dependabot to automatically merge dependency update PRs where CI passes
3
3
  # from: https://github.com/hmarr/auto-approve-action
4
4
  name: Auto approve dependency upgrades PRs
5
-
6
- on:
7
- pull_request
5
+ on: pull_request_target
8
6
 
9
7
  jobs:
10
8
  auto-approve:
11
9
  runs-on: ubuntu-latest
12
10
  steps:
13
- - uses: hmarr/auto-approve-action@v2.0.0
11
+ - uses: hmarr/auto-approve-action@v2
14
12
  if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]' || github.actor == 'renofidev'
15
13
  with:
16
14
  github-token: "${{ secrets.GITHUB_TOKEN }}"
@@ -1,4 +1,4 @@
1
- name: ci
1
+ name: Ruby CI
2
2
 
3
3
  on:
4
4
  push:
@@ -11,7 +11,7 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  strategy:
13
13
  matrix:
14
- ruby-version: ['2.7', '3.0']
14
+ ruby-version: ['3.0', 3.1]
15
15
 
16
16
  steps:
17
17
  - uses: actions/checkout@v2
@@ -19,7 +19,7 @@ jobs:
19
19
  # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
20
20
  # change this to (see https://github.com/ruby/setup-ruby#versioning):
21
21
  # uses: ruby/setup-ruby@v1
22
- uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e
22
+ uses: ruby/setup-ruby@bd94d6a504586da892a5753afdd1480096ed30df
23
23
  with:
24
24
  ruby-version: ${{ matrix.ruby-version }}
25
25
  bundler-cache: true # runs 'bundle install' and caches installed gems automatically
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- newrelic-sidekiq-metrics (1.3.1)
5
- newrelic_rpm (~> 7.0)
4
+ newrelic-sidekiq-metrics (1.5.0)
5
+ newrelic_rpm (~> 8)
6
6
  sidekiq (~> 6.2)
7
7
 
8
8
  GEM
@@ -11,59 +11,62 @@ GEM
11
11
  ast (2.4.2)
12
12
  coderay (1.1.3)
13
13
  connection_pool (2.2.5)
14
- diff-lcs (1.4.4)
14
+ diff-lcs (1.5.0)
15
15
  method_source (1.0.0)
16
- newrelic_rpm (7.2.0)
17
- parallel (1.20.1)
18
- parser (3.0.1.1)
16
+ newrelic_rpm (8.5.0)
17
+ parallel (1.22.1)
18
+ parser (3.1.1.0)
19
19
  ast (~> 2.4.1)
20
20
  pry (0.14.1)
21
21
  coderay (~> 1.1)
22
22
  method_source (~> 1.0)
23
23
  rack (2.2.3)
24
- rainbow (3.0.0)
25
- rake (13.0.4)
26
- redis (4.3.1)
27
- regexp_parser (2.1.1)
24
+ rainbow (3.1.1)
25
+ rake (13.0.6)
26
+ redis (4.6.0)
27
+ regexp_parser (2.2.1)
28
28
  rexml (3.2.5)
29
- rspec (3.10.0)
30
- rspec-core (~> 3.10.0)
31
- rspec-expectations (~> 3.10.0)
32
- rspec-mocks (~> 3.10.0)
33
- rspec-core (3.10.1)
34
- rspec-support (~> 3.10.0)
35
- rspec-expectations (3.10.1)
29
+ rspec (3.11.0)
30
+ rspec-core (~> 3.11.0)
31
+ rspec-expectations (~> 3.11.0)
32
+ rspec-mocks (~> 3.11.0)
33
+ rspec-core (3.11.0)
34
+ rspec-support (~> 3.11.0)
35
+ rspec-expectations (3.11.0)
36
36
  diff-lcs (>= 1.2.0, < 2.0)
37
- rspec-support (~> 3.10.0)
38
- rspec-mocks (3.10.2)
37
+ rspec-support (~> 3.11.0)
38
+ rspec-mocks (3.11.1)
39
39
  diff-lcs (>= 1.2.0, < 2.0)
40
- rspec-support (~> 3.10.0)
41
- rspec-support (3.10.2)
42
- rubocop (1.18.3)
40
+ rspec-support (~> 3.11.0)
41
+ rspec-support (3.11.0)
42
+ rubocop (1.26.1)
43
43
  parallel (~> 1.10)
44
- parser (>= 3.0.0.0)
44
+ parser (>= 3.1.0.0)
45
45
  rainbow (>= 2.2.2, < 4.0)
46
46
  regexp_parser (>= 1.8, < 3.0)
47
47
  rexml
48
- rubocop-ast (>= 1.7.0, < 2.0)
48
+ rubocop-ast (>= 1.16.0, < 2.0)
49
49
  ruby-progressbar (~> 1.7)
50
50
  unicode-display_width (>= 1.4.0, < 3.0)
51
- rubocop-ast (1.7.0)
52
- parser (>= 3.0.1.1)
51
+ rubocop-ast (1.16.0)
52
+ parser (>= 3.1.1.0)
53
53
  rubocop-rake (0.6.0)
54
54
  rubocop (~> 1.0)
55
- rubocop-rspec (2.4.0)
56
- rubocop (~> 1.0)
57
- rubocop-ast (>= 1.1.0)
55
+ rubocop-rspec (2.9.0)
56
+ rubocop (~> 1.19)
58
57
  ruby-progressbar (1.11.0)
59
- sidekiq (6.2.1)
58
+ sidekiq (6.4.1)
60
59
  connection_pool (>= 2.2.2)
61
60
  rack (~> 2.0)
62
61
  redis (>= 4.2.0)
63
- unicode-display_width (2.0.0)
62
+ unicode-display_width (2.1.0)
64
63
 
65
64
  PLATFORMS
66
- ruby
65
+ aarch64-linux-musl
66
+ x86_64-darwin-18
67
+ x86_64-darwin-19
68
+ x86_64-darwin-20
69
+ x86_64-darwin-21
67
70
  x86_64-linux
68
71
 
69
72
  DEPENDENCIES
@@ -77,4 +80,4 @@ DEPENDENCIES
77
80
  rubocop-rspec
78
81
 
79
82
  BUNDLED WITH
80
- 2.2.15
83
+ 2.3.10
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/newrelic-sidekiq-metrics.svg)](https://rubygems.org/gems/newrelic-sidekiq-metrics)
2
- [![Build Status](https://travis-ci.org/RenoFi/newrelic-sidekiq-metrics.svg?branch=master)](https://travis-ci.org/RenoFi/newrelic-sidekiq-metrics)
2
+ [![Build Status](https://github.com/RenoFi/newrelic-sidekiq-metrics/actions/workflows/ci.yml/badge.svg)](https://github.com/RenoFi/newrelic-sidekiq-metrics/actions/workflows/ci.yml?query=branch%3Amain)
3
3
 
4
4
  # newrelic-sidekiq-metrics
5
5
 
@@ -18,6 +18,7 @@ module NewrelicSidekiqMetrics
18
18
 
19
19
  def get_stat(name)
20
20
  return 0 if NewrelicSidekiqMetrics.inline_sidekiq?
21
+
21
22
  stats.public_send(name)
22
23
  end
23
24
 
@@ -1,3 +1,3 @@
1
1
  module NewrelicSidekiqMetrics
2
- VERSION = "1.3.1".freeze
2
+ VERSION = '1.5.0'.freeze
3
3
  end
@@ -14,6 +14,7 @@ Gem::Specification.new do |spec|
14
14
 
15
15
  spec.metadata['homepage_uri'] = 'https://github.com/RenoFi/newrelic-sidekiq-metrics'
16
16
  spec.metadata['source_code_uri'] = 'https://github.com/RenoFi/newrelic-sidekiq-metrics'
17
+ spec.metadata['rubygems_mfa_required'] = 'true'
17
18
 
18
19
  spec.files = Dir.chdir(__dir__) do
19
20
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin/|spec/|\.rub)}) }
@@ -22,9 +23,9 @@ Gem::Specification.new do |spec|
22
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
24
  spec.require_paths = ['lib']
24
25
 
25
- spec.required_ruby_version = '>= 2.6'
26
+ spec.required_ruby_version = '>= 3.0'
26
27
 
27
- spec.add_dependency 'newrelic_rpm', '~> 7.0'
28
+ spec.add_dependency 'newrelic_rpm', '~> 8'
28
29
  spec.add_dependency 'sidekiq', '~> 6.2'
29
30
 
30
31
  spec.add_development_dependency 'bundler'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newrelic-sidekiq-metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Knapik
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-07-09 00:00:00.000000000 Z
12
+ date: 2022-04-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: newrelic_rpm
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '7.0'
20
+ version: '8'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '7.0'
27
+ version: '8'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: sidekiq
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -173,6 +173,7 @@ licenses:
173
173
  metadata:
174
174
  homepage_uri: https://github.com/RenoFi/newrelic-sidekiq-metrics
175
175
  source_code_uri: https://github.com/RenoFi/newrelic-sidekiq-metrics
176
+ rubygems_mfa_required: 'true'
176
177
  post_install_message:
177
178
  rdoc_options: []
178
179
  require_paths:
@@ -181,14 +182,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
181
182
  requirements:
182
183
  - - ">="
183
184
  - !ruby/object:Gem::Version
184
- version: '2.6'
185
+ version: '3.0'
185
186
  required_rubygems_version: !ruby/object:Gem::Requirement
186
187
  requirements:
187
188
  - - ">="
188
189
  - !ruby/object:Gem::Version
189
190
  version: '0'
190
191
  requirements: []
191
- rubygems_version: 3.2.15
192
+ rubygems_version: 3.2.32
192
193
  signing_key:
193
194
  specification_version: 4
194
195
  summary: Implements recording Sidekiq stats to New Relic metrics.