databasedotcom_additions 0.5.7 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -61,6 +61,8 @@ module Databasedotcom
61
61
 
62
62
  def query_raw(soql)
63
63
 
64
+ start_time = Time.now
65
+
64
66
  if query_result_cache_enabled
65
67
  cache_key = "#{self.username}:#{soql}"
66
68
  if cache[cache_key]
@@ -84,6 +86,10 @@ module Databasedotcom
84
86
  puts "cache put - #{cache_key}"
85
87
  cache[cache_key] = resp
86
88
  end
89
+
90
+ elapsed_time = Time.now - start_time
91
+ resp['meta'] = {'elapsed_time' => elapsed_time}
92
+
87
93
  resp
88
94
  end
89
95
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: databasedotcom_additions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-15 00:00:00.000000000 Z
12
+ date: 2013-06-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: databasedotcom