motion_print 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/motion/motion_print/motion_print.rb +0 -16
- data/motion/motion_print/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c772e0187fe937a271a34d698929e4bca9635fb5
|
4
|
+
data.tar.gz: fdd45786552ffd36d249080f21c1f2ad07451627
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61ff97c12ed2f2e2b15fcfb4d2d31e62e381964e9f77c75bc5a67237da99fd470f7bef2a3540b5754ee3a6dc56105edd208c7f81592174b7e97da952716a0e62
|
7
|
+
data.tar.gz: 1c0f33c77c747e2750770ab463d9676fda9e38dce307d76a2c579be3fa02b1e210f3519d38f1b78946493ef699245a99d9bfc551690128862c2d0b091cb7d189
|
@@ -5,10 +5,6 @@ module MotionPrint
|
|
5
5
|
!!defined?(MotionRepl)
|
6
6
|
end
|
7
7
|
|
8
|
-
def cdq_object
|
9
|
-
return CDQManagedObject if defined? CDQManagedObject
|
10
|
-
end
|
11
|
-
|
12
8
|
def logger(object, options = {})
|
13
9
|
options = {
|
14
10
|
indent_level: 1,
|
@@ -30,23 +26,11 @@ module MotionPrint
|
|
30
26
|
# l_file object
|
31
27
|
# when Struct
|
32
28
|
# l_struct object
|
33
|
-
when cdq_object
|
34
|
-
l_cdq(object, options)
|
35
29
|
else
|
36
30
|
l_custom(object, options)
|
37
31
|
end
|
38
32
|
end
|
39
33
|
|
40
|
-
def l_cdq(c, options)
|
41
|
-
# Requires CDQ > v0.1.10
|
42
|
-
if c.respond_to? :attributes
|
43
|
-
"OID: " + colorize(c.oid.gsub('"',''), options[:force_color]) + "\n" + l_hash(c.attributes, options)
|
44
|
-
else
|
45
|
-
# old colorless method, still more informative than nothing
|
46
|
-
c.log
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
34
|
def l_array(a, options)
|
51
35
|
return "[]" if a.empty?
|
52
36
|
out = []
|