koa 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/koa/measurement.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afb1e37b37f17c16b9ac37bd08d0d0de64d02260
|
4
|
+
data.tar.gz: 5a2496b92d7b6510c1491e8c0b44d0e8a4ea2f85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b10d94a9b548446d04ea726d864f05be188a7757121844c5f4ac28c6077d9fcc16d33f601614ec001c70e35b312b5a89ff98357237a841aa048d08a2ef6d325c
|
7
|
+
data.tar.gz: f104b4961ebd07fdcb8fcf9bc720f8cefaa1d1a7f3c187aca95be051fdcd494b7ee4071d34d5846f2d3d21464fb27aec56baded9a1af09afcd119b48e549b3be
|
data/lib/koa/measurement.rb
CHANGED
@@ -6,11 +6,11 @@ module Koa
|
|
6
6
|
|
7
7
|
module ClassMethods
|
8
8
|
def measurement_name(method)
|
9
|
-
self.name.gsub(/::/, '/').
|
9
|
+
(self.name.gsub(/::/, '/').
|
10
10
|
gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
|
11
11
|
gsub(/([a-z\d])([A-Z])/,'\1_\2').
|
12
12
|
tr("-", "_").
|
13
|
-
downcase + "." + method.to_s.gsub(/_/,"-")
|
13
|
+
downcase + "." + method.to_s).gsub(/_/,"-")
|
14
14
|
end
|
15
15
|
|
16
16
|
def measure_methods(*args)
|