newrelic-sidekiq-metrics 1.0.0 → 1.1.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: 5d1c3620fd4b64c9e68d140fc54c987818f32f44a9afdd9f429c8f2bad2bee4a
4
- data.tar.gz: c3b10f5fe5efea4a4851e2be18968a0572da35609c1abbd43c5a36da55730bf7
3
+ metadata.gz: e79240e42709d193295947a6b3ed604205ce0f5ae07ec3f5f68f1f3787101b30
4
+ data.tar.gz: 78b74fb7c189176bfa6da189102ae1748e79ad2a8379ab74fcb4b2413d083e1e
5
5
  SHA512:
6
- metadata.gz: d4eb7e7c7edd980f7a23375d26431617915ac5317d5cb270a7626f302937d67bef04a7f0b913c8d688ed2d4657ee410e94e4a1ba896640169626e40d23c80f77
7
- data.tar.gz: 937590be4cfa4a3d20f4bcf57555404af9f5ac378262950a5223c6beb5995b3a30fe3a29d7a02f965e0345809e9e95842563acaefee9dfc2f8b70fca9b396fb3
6
+ metadata.gz: e4b1fea20dae6f7a83222c912d2cfa754721b76e2b3a7e450ef79c9d15afda27c287fa0f2447f16fcfab1f591ec024ebf24774ea98b053327850bba98fc14bec
7
+ data.tar.gz: 791dafd70e8943fe96624fa172141985c2eefae203fb0d4f72945e500f6caf267dcdc003391c31820a81f7c32bceb760b6899550c231746c2e79ee72a5f578b2
@@ -0,0 +1,11 @@
1
+ version: 1
2
+
3
+ update_configs:
4
+ - package_manager: "ruby:bundler"
5
+ directory: "/"
6
+ update_schedule: "monthly"
7
+ commit_message:
8
+ prefix: "[dependabot]"
9
+ allowed_updates:
10
+ - match:
11
+ update_type: "all"
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to track an issue that has been identified
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Describe the bug**
11
+ A clear and concise description of what the bug is.
12
+
13
+ **To Reproduce**
14
+ Steps to reproduce the behavior:
15
+ 1. Go to '...'
16
+ 2. Click on '....'
17
+ 3. Scroll down to '....'
18
+ 4. See error
19
+
20
+ **Expected behavior**
21
+ A clear and concise description of what you expected to happen.
22
+
23
+ **Mutation/Query**
24
+
25
+ **URL and HTTP method (for non-GQL):**
26
+
27
+ **Sentry or Logs URL:**
28
+
29
+ **User/authentication details**
30
+ Impacted user name or service account
31
+
32
+ **Additional context**
33
+ Add any other context about the problem here.
@@ -0,0 +1 @@
1
+ blank_issues_enabled: false
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: New story
3
+ about: Add a new story for implementation
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Describe the solution**
11
+ A clear and concise description of what you want to happen.
12
+ When will this feature be done?
13
+
14
+ **Describe the users**
15
+ Who are we building this feature for?
16
+
17
+ **Additional context**
18
+ Add any other context or screenshots about the feature request here.
19
+ Link to any applicable documents describing the feature.
20
+
21
+ **Designs**
22
+ Link to any applicable designs on Invision.
@@ -0,0 +1,18 @@
1
+ ## Description
2
+ <!--- Describe your changes in detail -->
3
+
4
+ ## Related issue(s)
5
+ <!--- GH issue number -->
6
+
7
+ ## Motivation and Context
8
+ <!--- Why is this change required? What problem does it solve? -->
9
+ <!--- If it fixes an open issue, please link to the issue here. -->
10
+
11
+ ## How Has This Been Tested?
12
+ <!--- Please describe in detail how you tested your changes. -->
13
+
14
+ ## Screenshots (if appropriate):
15
+ <!--- Please add any screenshots of the feature. -->
16
+
17
+ ## Related PRs
18
+ <!--- Please add links to any related PRs (backend, component packages, etc). -->
@@ -0,0 +1,16 @@
1
+ # automatically approve PRs submitted by Dependabot
2
+ # this will allow Dependabot to automatically merge dependency update PRs where CI passes
3
+ # from: https://github.com/hmarr/auto-approve-action
4
+ name: Auto approve Dependabot PRs
5
+
6
+ on:
7
+ pull_request
8
+
9
+ jobs:
10
+ auto-approve:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: hmarr/auto-approve-action@v2.0.0
14
+ if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
15
+ with:
16
+ github-token: "${{ secrets.GITHUB_TOKEN }}"
@@ -3,11 +3,11 @@ sudo: false
3
3
  language: ruby
4
4
  cache: bundler
5
5
  rvm:
6
- - 2.5.7
7
- - 2.6.5
8
- before_install: gem install bundler -v 2.0.2
6
+ - 2.6
7
+ - 2.7
8
+ before_install: gem install bundler
9
9
  script:
10
- - bundle exec rspec
11
- - bundle exec rubocop
10
+ - bundle exec rake rubocop
11
+ - bundle exec rake spec
12
12
  services:
13
13
  - redis-server
@@ -1,61 +1,65 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- newrelic-sidekiq-metrics (1.0.0)
5
- newrelic_rpm (~> 6.7.0)
6
- sidekiq (~> 6.0.3)
4
+ newrelic-sidekiq-metrics (1.1.0)
5
+ newrelic_rpm (~> 6.8)
6
+ sidekiq (~> 6.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- ast (2.4.0)
12
- coderay (1.1.2)
13
- connection_pool (2.2.2)
14
- diff-lcs (1.3)
15
- jaro_winkler (1.5.4)
16
- method_source (0.9.2)
17
- newrelic_rpm (6.7.0.359)
18
- parallel (1.19.1)
19
- parser (2.6.5.0)
20
- ast (~> 2.4.0)
21
- pry (0.12.2)
22
- coderay (~> 1.1.0)
23
- method_source (~> 0.9.0)
24
- rack (2.0.8)
25
- rack-protection (2.0.7)
26
- rack
11
+ ast (2.4.1)
12
+ coderay (1.1.3)
13
+ connection_pool (2.2.3)
14
+ diff-lcs (1.4.4)
15
+ method_source (1.0.0)
16
+ newrelic_rpm (6.12.0.367)
17
+ parallel (1.19.2)
18
+ parser (2.7.1.4)
19
+ ast (~> 2.4.1)
20
+ pry (0.13.1)
21
+ coderay (~> 1.1)
22
+ method_source (~> 1.0)
23
+ rack (2.2.3)
27
24
  rainbow (3.0.0)
28
25
  rake (13.0.1)
29
- redis (4.1.3)
26
+ redis (4.2.1)
27
+ regexp_parser (1.7.1)
28
+ rexml (3.2.4)
30
29
  rspec (3.9.0)
31
30
  rspec-core (~> 3.9.0)
32
31
  rspec-expectations (~> 3.9.0)
33
32
  rspec-mocks (~> 3.9.0)
34
- rspec-core (3.9.0)
35
- rspec-support (~> 3.9.0)
36
- rspec-expectations (3.9.0)
33
+ rspec-core (3.9.2)
34
+ rspec-support (~> 3.9.3)
35
+ rspec-expectations (3.9.2)
37
36
  diff-lcs (>= 1.2.0, < 2.0)
38
37
  rspec-support (~> 3.9.0)
39
- rspec-mocks (3.9.0)
38
+ rspec-mocks (3.9.1)
40
39
  diff-lcs (>= 1.2.0, < 2.0)
41
40
  rspec-support (~> 3.9.0)
42
- rspec-support (3.9.0)
43
- rubocop (0.78.0)
44
- jaro_winkler (~> 1.5.1)
41
+ rspec-support (3.9.3)
42
+ rubocop (0.89.0)
45
43
  parallel (~> 1.10)
46
- parser (>= 2.6)
44
+ parser (>= 2.7.1.1)
47
45
  rainbow (>= 2.2.2, < 4.0)
46
+ regexp_parser (>= 1.7)
47
+ rexml
48
+ rubocop-ast (>= 0.1.0, < 1.0)
48
49
  ruby-progressbar (~> 1.7)
49
- unicode-display_width (>= 1.4.0, < 1.7)
50
- rubocop-performance (1.5.1)
51
- rubocop (>= 0.71.0)
50
+ unicode-display_width (>= 1.4.0, < 2.0)
51
+ rubocop-ast (0.3.0)
52
+ parser (>= 2.7.1.4)
53
+ rubocop-performance (1.7.1)
54
+ rubocop (>= 0.82.0)
55
+ rubocop-rspec (1.42.0)
56
+ rubocop (>= 0.87.0)
52
57
  ruby-progressbar (1.10.1)
53
- sidekiq (6.0.3)
58
+ sidekiq (6.1.1)
54
59
  connection_pool (>= 2.2.2)
55
- rack (>= 2.0.0)
56
- rack-protection (>= 2.0.0)
57
- redis (>= 4.1.0)
58
- unicode-display_width (1.6.0)
60
+ rack (~> 2.0)
61
+ redis (>= 4.2.0)
62
+ unicode-display_width (1.7.0)
59
63
 
60
64
  PLATFORMS
61
65
  ruby
@@ -68,6 +72,7 @@ DEPENDENCIES
68
72
  rspec
69
73
  rubocop
70
74
  rubocop-performance
75
+ rubocop-rspec
71
76
 
72
77
  BUNDLED WITH
73
- 2.0.2
78
+ 2.1.4
@@ -1,9 +1,8 @@
1
1
  module NewrelicSidekiqMetrics
2
2
  class Recorder
3
- attr_reader :stats, :metrics
3
+ attr_reader :metrics
4
4
 
5
5
  def initialize
6
- @stats = Sidekiq::Stats.new
7
6
  @metrics = NewrelicSidekiqMetrics.used_metrics
8
7
  end
9
8
 
@@ -11,6 +10,10 @@ module NewrelicSidekiqMetrics
11
10
  metrics.each { |m| record_metric(m) }
12
11
  end
13
12
 
13
+ def stats
14
+ @stats ||= Sidekiq::Stats.new
15
+ end
16
+
14
17
  private
15
18
 
16
19
  def record_metric(name)
@@ -1,3 +1,3 @@
1
1
  module NewrelicSidekiqMetrics
2
- VERSION = "1.0.0".freeze
2
+ VERSION = "1.1.0".freeze
3
3
  end
@@ -3,14 +3,14 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
  require 'newrelic_sidekiq_metrics/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
- spec.name = 'newrelic-sidekiq-metrics'
7
- spec.version = NewrelicSidekiqMetrics::VERSION
8
- spec.authors = ['Krzysztof Knapik', 'RenoFi Engineering Team']
9
- spec.email = ['knapo@knapo.net', 'engineering@renofi.com']
6
+ spec.name = 'newrelic-sidekiq-metrics'
7
+ spec.version = NewrelicSidekiqMetrics::VERSION
8
+ spec.authors = ['Krzysztof Knapik', 'RenoFi Engineering Team']
9
+ spec.email = ['knapo@knapo.net', 'engineering@renofi.com']
10
10
 
11
- spec.summary = 'Implements recording Sidekiq stats to New Relic metrics.'
11
+ spec.summary = 'Implements recording Sidekiq stats to New Relic metrics.'
12
12
  spec.homepage = 'https://github.com/RenoFi/newrelic-sidekiq-metrics'
13
- spec.license = 'MIT'
13
+ spec.license = 'MIT'
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'
@@ -18,14 +18,14 @@ Gem::Specification.new do |spec|
18
18
  spec.files = Dir.chdir(__dir__) do
19
19
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(bin/|spec/|\.rub)}) }
20
20
  end
21
- spec.bindir = 'exe'
22
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.bindir = 'exe'
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ['lib']
24
24
 
25
- spec.required_ruby_version = '>= 2.5'
25
+ spec.required_ruby_version = '>= 2.6'
26
26
 
27
- spec.add_dependency 'newrelic_rpm', '~> 6.7.0'
28
- spec.add_dependency 'sidekiq', '~> 6.0.3'
27
+ spec.add_dependency 'newrelic_rpm', '~> 6.8'
28
+ spec.add_dependency 'sidekiq', '~> 6.1'
29
29
 
30
30
  spec.add_development_dependency 'bundler'
31
31
  spec.add_development_dependency 'pry'
@@ -33,4 +33,5 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency 'rspec'
34
34
  spec.add_development_dependency 'rubocop'
35
35
  spec.add_development_dependency 'rubocop-performance'
36
+ spec.add_development_dependency 'rubocop-rspec'
36
37
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newrelic-sidekiq-metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Knapik
8
8
  - RenoFi Engineering Team
9
- autorequire:
9
+ autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-12-20 00:00:00.000000000 Z
12
+ date: 2020-08-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: newrelic_rpm
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 6.7.0
20
+ version: '6.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: 6.7.0
27
+ version: '6.8'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: sidekiq
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 6.0.3
34
+ version: '6.1'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 6.0.3
41
+ version: '6.1'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: bundler
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -123,7 +123,21 @@ dependencies:
123
123
  - - ">="
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
- description:
126
+ - !ruby/object:Gem::Dependency
127
+ name: rubocop-rspec
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ description:
127
141
  email:
128
142
  - knapo@knapo.net
129
143
  - engineering@renofi.com
@@ -131,6 +145,12 @@ executables: []
131
145
  extensions: []
132
146
  extra_rdoc_files: []
133
147
  files:
148
+ - ".dependabot/config.yml"
149
+ - ".github/ISSUE_TEMPLATE/bug_report.md"
150
+ - ".github/ISSUE_TEMPLATE/config.yml"
151
+ - ".github/ISSUE_TEMPLATE/story.md"
152
+ - ".github/PULL_REQUEST_TEMPLATE.md"
153
+ - ".github/workflows/auto-approve.yml"
134
154
  - ".gitignore"
135
155
  - ".rspec"
136
156
  - ".travis.yml"
@@ -151,7 +171,7 @@ licenses:
151
171
  metadata:
152
172
  homepage_uri: https://github.com/RenoFi/newrelic-sidekiq-metrics
153
173
  source_code_uri: https://github.com/RenoFi/newrelic-sidekiq-metrics
154
- post_install_message:
174
+ post_install_message:
155
175
  rdoc_options: []
156
176
  require_paths:
157
177
  - lib
@@ -159,15 +179,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
159
179
  requirements:
160
180
  - - ">="
161
181
  - !ruby/object:Gem::Version
162
- version: '2.5'
182
+ version: '2.6'
163
183
  required_rubygems_version: !ruby/object:Gem::Requirement
164
184
  requirements:
165
185
  - - ">="
166
186
  - !ruby/object:Gem::Version
167
187
  version: '0'
168
188
  requirements: []
169
- rubygems_version: 3.0.6
170
- signing_key:
189
+ rubygems_version: 3.1.2
190
+ signing_key:
171
191
  specification_version: 4
172
192
  summary: Implements recording Sidekiq stats to New Relic metrics.
173
193
  test_files: []