statsd-client 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
1
  *.gem
2
+ Gemfile.lock
data/README.md CHANGED
@@ -23,4 +23,8 @@ Example
23
23
  Statsd.timing('some_job_time', 20) # reporting job that took 20ms
24
24
  Statsd.timing('some_job_time', 20, 0.05) # reporting job that took 20ms with sampling (5% sampling)
25
25
 
26
+ # passing a block to `timing` will capture the time it takes to execute
27
+ Statsd.time('some_job_time') do
28
+ # do some job
29
+ end
26
30
 
@@ -3,7 +3,7 @@ require 'resolv'
3
3
 
4
4
  class Statsd
5
5
 
6
- Version = '0.0.5'
6
+ Version = '0.0.6'
7
7
 
8
8
  class << self
9
9
 
@@ -11,8 +11,6 @@ Gem::Specification.new do |s|
11
11
  s.summary = "Ruby client for statsd."
12
12
  s.description = "Ruby client for statsd."
13
13
 
14
- s.required_rubygems_version = ">= 1.3.6"
15
-
16
14
  s.files = `git ls-files`.split("\n")
17
15
  s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
18
16
  s.require_path = 'lib'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statsd-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-25 00:00:00.000000000Z
12
+ date: 2011-12-06 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: shoulda-context
16
- requirement: &2170356280 !ruby/object:Gem::Requirement
16
+ requirement: &2171313560 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *2170356280
24
+ version_requirements: *2171313560
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: mocha
27
- requirement: &2170355440 !ruby/object:Gem::Requirement
27
+ requirement: &2171312840 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *2170355440
35
+ version_requirements: *2171312840
36
36
  description: Ruby client for statsd.
37
37
  email:
38
38
  - bvandenbos@gmail.com
@@ -42,7 +42,6 @@ extra_rdoc_files: []
42
42
  files:
43
43
  - .gitignore
44
44
  - Gemfile
45
- - Gemfile.lock
46
45
  - README.md
47
46
  - Rakefile
48
47
  - lib/statsd.rb
@@ -63,13 +62,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
63
62
  version: '0'
64
63
  segments:
65
64
  - 0
66
- hash: 541237035708440788
65
+ hash: 3523856790933509678
67
66
  required_rubygems_version: !ruby/object:Gem::Requirement
68
67
  none: false
69
68
  requirements:
70
69
  - - ! '>='
71
70
  - !ruby/object:Gem::Version
72
- version: 1.3.6
71
+ version: '0'
72
+ segments:
73
+ - 0
74
+ hash: 3523856790933509678
73
75
  requirements: []
74
76
  rubyforge_project:
75
77
  rubygems_version: 1.8.5
@@ -1,20 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- statsd-client (0.0.5)
5
-
6
- GEM
7
- remote: http://rubygems.org/
8
- specs:
9
- mocha (0.9.12)
10
- rake (0.9.2)
11
- shoulda-context (1.0.0.beta1)
12
-
13
- PLATFORMS
14
- ruby
15
-
16
- DEPENDENCIES
17
- mocha
18
- rake
19
- shoulda-context
20
- statsd-client!