query_tracer 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,6 +30,10 @@ Add following code to config/initializers/query_tracer.rb:
30
30
 
31
31
  `exclude_queries` will contain default expressions list for currently selected DB.
32
32
 
33
+ To set up `tracer.colorize` according to value of `config.colorize_logging` in your environment settings (`config/development.rb`) you could write
34
+
35
+ tracer.colorize = ActiveSupport::LogSubscriber.colorize_logging
36
+
33
37
  ## Example
34
38
 
35
39
  Let's say we have model
@@ -1,3 +1,4 @@
1
+ require 'ostruct'
1
2
  require 'query_tracer/tracer'
2
3
  require 'query_tracer/logger'
3
4
  require 'query_tracer/db'
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "query_tracer"
5
- s.version = "0.0.3"
5
+ s.version = "0.0.4"
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ["Dmitry Shaposhnik", "Dmytro Shteflyuk"]
8
8
  s.email = ["dmitry@shaposhnik.name", "kpumuk@kpumuk.info"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query_tracer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dmitry Shaposhnik
@@ -16,8 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-04-20 00:00:00 +03:00
20
- default_executable:
19
+ date: 2011-09-19 00:00:00 Z
21
20
  dependencies: []
22
21
 
23
22
  description: ""
@@ -44,7 +43,6 @@ files:
44
43
  - lib/query_tracer/tracer/revision.rb
45
44
  - query_tracer.gemspec
46
45
  - test/test_helper.rb
47
- has_rdoc: true
48
46
  homepage: http://github.com/daemon/query_tracer
49
47
  licenses: []
50
48
 
@@ -76,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
74
  requirements: []
77
75
 
78
76
  rubyforge_project:
79
- rubygems_version: 1.5.3
77
+ rubygems_version: 1.8.6
80
78
  signing_key:
81
79
  specification_version: 3
82
80
  summary: Query tracer and logger for Rails3