gauss 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/gauss.rb +2 -1
  2. data/lib/gauss/version.rb +1 -1
  3. metadata +3 -3
@@ -26,10 +26,11 @@ module Gauss
26
26
  self.prefix = prefix
27
27
  end
28
28
 
29
- def benchmark(&block)
29
+ def benchmark(suffix=nil, &block)
30
30
  name = ""
31
31
  name += "#{Strings::underscore(Gauss::prefix)}." if Gauss::prefix
32
32
  name += "#{Strings::underscore(self.class.name)}.#{caller[0][/`([^']*)'/, 1]}"
33
+ name += "-#{Strings::underscore(suffix)}" if suffix
33
34
  Gauss::metrics.time(name) { yield }
34
35
  end
35
36
 
@@ -1,3 +1,3 @@
1
1
  module Gauss
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gauss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -106,7 +106,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  segments:
108
108
  - 0
109
- hash: -1435463464351447859
109
+ hash: 940151412129564008
110
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  none: false
112
112
  requirements:
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  segments:
117
117
  - 0
118
- hash: -1435463464351447859
118
+ hash: 940151412129564008
119
119
  requirements: []
120
120
  rubyforge_project:
121
121
  rubygems_version: 1.8.23