track_method 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/lib/track_method.rb +1 -1
- data/track_method.gemspec +2 -2
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -18,7 +18,7 @@ Tracks how long a method takes, and logs with color highlighting expensive metho
|
|
18
18
|
|
19
19
|
== Result
|
20
20
|
|
21
|
-
[
|
21
|
+
[http://github.com/ktlacaelel/track_method/wiki/track_method_usage.jpg]
|
22
22
|
|
23
23
|
== Copyright
|
24
24
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.1
|
data/lib/track_method.rb
CHANGED
@@ -34,7 +34,7 @@ class Module
|
|
34
34
|
|
35
35
|
argument_mapping = {}
|
36
36
|
method_arguments.each do |method_label, method_needle|
|
37
|
-
argument_mapping[
|
37
|
+
argument_mapping[method_label] = args[method_needle]
|
38
38
|
end
|
39
39
|
|
40
40
|
benchmark_output = "#{(benchmark_at).to_s.rjust(20, ' ')} #{self.name}.#{method_name}(#{argument_mapping.inspect})"
|
data/track_method.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{track_method}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["kazuyoshi tlacaelel"]
|
12
|
-
s.date = %q{2012-11-
|
12
|
+
s.date = %q{2012-11-21}
|
13
13
|
s.description = %q{Tracks how long a method takes, and logs with color highlighting expensive method calls.}
|
14
14
|
s.email = %q{kazu.dev@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: track_method
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- kazuyoshi tlacaelel
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-11-
|
18
|
+
date: 2012-11-21 00:00:00 -06:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|