qq 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/qq.rb +3 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a120c7adb93b82dfd4c3b979160bceafbf81e214
4
- data.tar.gz: 0588db7d6e912e78db0ee180400031c5b4e427f2
3
+ metadata.gz: 2bb271ddd001f9dee96a1584ab22c998ebf711f1
4
+ data.tar.gz: 55504f0a3cba1d9e6e5a05bf069ccbed2bc9a536
5
5
  SHA512:
6
- metadata.gz: b0e38ee6235187b5515b25c5fc0d7511d229ca73d3622a9765b16329b759bb02d76b4a197fd3af0c715987167598f96a45237022a49a06e866a83fc9a899594e
7
- data.tar.gz: f298b3cb6f378afca69638221c293211b76e539372a4749790dec96a4c02f16da30a880a1244320b0d637a9beed7e34988cf16b690f8244e1ddebad66126743a
6
+ metadata.gz: efac134cccd825b0b4951d91d58b9c84c98b64c5e134688561c424b1bb51128f9d1915f67b8188084526db99039e64474d883cb82b6231c623e254dca6822e8e
7
+ data.tar.gz: 8aa113b8c4a9c4be24fa9d8143d9d2800d2461befa42e8830629a0234db67e0cb2b0f58ad530e752441a8a9cea884cdbdebe61e7ac45003d674a966d7a1cd6cc
data/lib/qq.rb CHANGED
@@ -75,6 +75,9 @@ class QQ < Parser::AST::Processor
75
75
  end
76
76
 
77
77
  args.each do |arg, arg_source|
78
+ if defined?(ActiveRecord) && arg.is_a?(ActiveRecord::Base) && arg.respond_to?(:attributes)
79
+ arg = arg.attributes
80
+ end
78
81
  fh.write [YELLOW, "%1.3fs " % (now - @@start), NORMAL, arg_source, ' = ', CYAN].join
79
82
  PP.pp(arg, fh)
80
83
  fh.write NORMAL
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane Hanna
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-16 00:00:00.000000000 Z
11
+ date: 2016-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser