qq 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/qq.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bb271ddd001f9dee96a1584ab22c998ebf711f1
|
4
|
+
data.tar.gz: 55504f0a3cba1d9e6e5a05bf069ccbed2bc9a536
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
11
|
+
date: 2016-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|