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.
@@ -20,14 +20,22 @@ class LoggedQuery
20
20
 
21
21
  def [](key)
22
22
  case key.to_sym
23
- when :sql: @sql
24
- when :name: @name
25
- when :backtrace: @backtrace
26
- when :queries: @queries
27
- when :rows: @rows
28
- when :bytes: @bytes
29
- when :median_time: median_time
30
- when :total_time: total_time
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
@@ -1,3 +1,3 @@
1
1
  module SqlLogging
2
- VERSION = '3.0.2'
2
+ VERSION = '3.0.3'
3
3
  end
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: 3
5
- prerelease: false
4
+ hash: 1
5
+ prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 2
10
- version: 3.0.2
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: 2010-11-22 00:00:00 -05:00
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.3.7
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.