sql-logging 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sql-logging/logged_query.rb +16 -8
- data/lib/sql-logging/version.rb +1 -1
- metadata +6 -6
@@ -20,14 +20,22 @@ class LoggedQuery
|
|
20
20
|
|
21
21
|
def [](key)
|
22
22
|
case key.to_sym
|
23
|
-
when :sql
|
24
|
-
|
25
|
-
when :
|
26
|
-
|
27
|
-
when :
|
28
|
-
|
29
|
-
when :
|
30
|
-
|
23
|
+
when :sql
|
24
|
+
@sql
|
25
|
+
when :name
|
26
|
+
@name
|
27
|
+
when :backtrace
|
28
|
+
@backtrace
|
29
|
+
when :queries
|
30
|
+
@queries
|
31
|
+
when :rows
|
32
|
+
@rows
|
33
|
+
when :bytes
|
34
|
+
@bytes
|
35
|
+
when :median_time
|
36
|
+
median_time
|
37
|
+
when :total_time
|
38
|
+
total_time
|
31
39
|
else nil
|
32
40
|
end
|
33
41
|
end
|
data/lib/sql-logging/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sql-logging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 1
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 3.0.
|
9
|
+
- 3
|
10
|
+
version: 3.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Steve Madsen
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-01-31 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
requirements: []
|
86
86
|
|
87
87
|
rubyforge_project:
|
88
|
-
rubygems_version: 1.
|
88
|
+
rubygems_version: 1.4.2
|
89
89
|
signing_key:
|
90
90
|
specification_version: 3
|
91
91
|
summary: Adds SQL analysis and debugging info to Rails 3 apps.
|