pliny-sidekiq 0.1.2 → 0.2.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
  SHA1:
3
- metadata.gz: 665e23450fc769727cc91f454f427c31c7472a47
4
- data.tar.gz: 10b04717549baf446cbe78c2adcc282ff9edf89f
3
+ metadata.gz: ab240d9f7969d7049596632f177ffad4f5a139ac
4
+ data.tar.gz: 3b0c41b7dcf5b0254ff4937e415dea0b687c84c2
5
5
  SHA512:
6
- metadata.gz: a6b48363bbcab9333b09c5c0a47f50221513b23bf90d9218684a993f13f1bed876f0f443a196e5238f6f6abcbadd66975996c9fa4623fdd23556732d4ab6e760
7
- data.tar.gz: c58a267800d1cb811e9076d38f82aadeec25a5fef79c1342a1317dfafbd01bd24b2456bdb326504e5166df6b1839d89270689d8f5f1d7edf03656ec9e351178a
6
+ metadata.gz: 1fa733fe7245f5a4f56e0b2fbd6850e1072c7a637ea20858eb632f7961613a676bef3517d7a4ea5e7ed528f0c42cd4f2e4964ba55fc17069f6458d77de04e6dc
7
+ data.tar.gz: a6d70ac9a6b31d97e8183413df4c2eab880d04078eb69e1a6e755d0bb2a8a8e1f190a979703ed50f1f26845fb87d5c1164576ebe8ed3e6922a6ec426b35b0fda
@@ -0,0 +1,17 @@
1
+ # Change Log
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
+ and this project adheres to [Semantic Versioning](http://semver.org/).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## 0.2.0
10
+
11
+ ### Changed
12
+ - Pliny `0.18.0` or greater is now required.
13
+ - Metrics reporting for job and queue counts now use the `Pliny::Metrics` API.
14
+
15
+ ### Removed
16
+ - Options for `Pliny::Sidekiq::Middleware::Server::Log` are no longer
17
+ supported, including `metric_prefix`.
@@ -1,10 +1,6 @@
1
1
  module Pliny::Sidekiq::Middleware
2
2
  module Server
3
3
  class Log
4
- def initialize(metric_prefix: nil)
5
- @metric_prefix = metric_prefix
6
- end
7
-
8
4
  def call(worker, job, queue)
9
5
  context = {
10
6
  sidekiq: true,
@@ -25,11 +21,7 @@ module Pliny::Sidekiq::Middleware
25
21
  private
26
22
 
27
23
  def count(key, value=1)
28
- Pliny.log("count##{metric_prefix}sidekiq.#{key}" => value)
29
- end
30
-
31
- def metric_prefix
32
- @metric_prefix.nil? ? '' : "#{@metric_prefix}."
24
+ Pliny::Metrics.count("sidekiq.#{key}", value)
33
25
  end
34
26
  end
35
27
  end
@@ -1,5 +1,5 @@
1
1
  module Pliny
2
2
  module Sidekiq
3
- VERSION = "0.1.2"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_dependency "pliny"
20
+ spec.add_dependency "pliny", ">= 0.18.0"
21
21
  spec.add_dependency "sidekiq"
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.10"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pliny-sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guðmundur Bjarni Ólafsson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-09 00:00:00.000000000 Z
11
+ date: 2016-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pliny
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.18.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 0.18.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sidekiq
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -117,6 +117,7 @@ extra_rdoc_files: []
117
117
  files:
118
118
  - ".gitignore"
119
119
  - ".travis.yml"
120
+ - CHANGELOG.md
120
121
  - Gemfile
121
122
  - LICENSE
122
123
  - README.md
@@ -150,9 +151,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
151
  version: '0'
151
152
  requirements: []
152
153
  rubyforge_project:
153
- rubygems_version: 2.4.5
154
+ rubygems_version: 2.5.1
154
155
  signing_key:
155
156
  specification_version: 4
156
157
  summary: Pliny logging and request_id support for Sidekiq
157
158
  test_files: []
158
- has_rdoc: