strumbar 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/strumbar/instrumentation/redis.rb +7 -1
- data/lib/strumbar/version.rb +1 -1
- data/strumbar.gemspec +1 -1
- metadata +13 -13
@@ -6,7 +6,13 @@ module Strumbar
|
|
6
6
|
client.increment 'query.redis'
|
7
7
|
client.increment 'failure.redis' if event.payload[:failure]
|
8
8
|
|
9
|
-
|
9
|
+
command = case event.payload[:command]
|
10
|
+
when NilClass then nil
|
11
|
+
when String then event.payload[:command]
|
12
|
+
else event.payload[:command].join('_')
|
13
|
+
end
|
14
|
+
|
15
|
+
client.timing "#{command}.redis", event.duration
|
10
16
|
end
|
11
17
|
|
12
18
|
unless ::Redis::Client.instance_methods.include? :call_with_instrumentation
|
data/lib/strumbar/version.rb
CHANGED
data/strumbar.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
|
|
6
6
|
gem.email = ["anordman@majorleaguegaming.com", "mwilson@majorleaguegaming.com"]
|
7
7
|
gem.description = %q{An instrumentation utility.}
|
8
8
|
gem.summary = %q{Helper library to strum along in your application.}
|
9
|
-
gem.homepage = "
|
9
|
+
gem.homepage = "https://github.com/agoragames/strumbar"
|
10
10
|
|
11
11
|
gem.files = `git ls-files`.split($\)
|
12
12
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strumbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-08-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
17
|
-
requirement: &
|
17
|
+
requirement: &70306492564820 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70306492564820
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: statsd
|
28
|
-
requirement: &
|
28
|
+
requirement: &70306492564340 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70306492564340
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: rspec
|
39
|
-
requirement: &
|
39
|
+
requirement: &70306492563640 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: '0'
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *70306492563640
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: rake
|
50
|
-
requirement: &
|
50
|
+
requirement: &70306492563100 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ! '>='
|
@@ -55,7 +55,7 @@ dependencies:
|
|
55
55
|
version: '0'
|
56
56
|
type: :development
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *70306492563100
|
59
59
|
description: An instrumentation utility.
|
60
60
|
email:
|
61
61
|
- anordman@majorleaguegaming.com
|
@@ -83,7 +83,7 @@ files:
|
|
83
83
|
- spec/spec_helper.rb
|
84
84
|
- spec/strumbar_spec.rb
|
85
85
|
- strumbar.gemspec
|
86
|
-
homepage:
|
86
|
+
homepage: https://github.com/agoragames/strumbar
|
87
87
|
licenses: []
|
88
88
|
post_install_message:
|
89
89
|
rdoc_options: []
|
@@ -97,7 +97,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
97
97
|
version: '0'
|
98
98
|
segments:
|
99
99
|
- 0
|
100
|
-
hash:
|
100
|
+
hash: 1638928019684355864
|
101
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
102
|
none: false
|
103
103
|
requirements:
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
106
|
version: '0'
|
107
107
|
segments:
|
108
108
|
- 0
|
109
|
-
hash:
|
109
|
+
hash: 1638928019684355864
|
110
110
|
requirements: []
|
111
111
|
rubyforge_project:
|
112
112
|
rubygems_version: 1.8.17
|