miq_dev_util 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/miq_dev_util/code.rb +1 -1
- data/lib/miq_dev_util/logger.rb +5 -5
- data/lib/miq_dev_util/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33a5c74387d9a90323882a0e7f42bfd9c5f9b6a4
|
4
|
+
data.tar.gz: ef62be82dd8cdbe7a413c8b475525601635bbbe5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52e186e3600569868cb0d81df87fca5c07ca228f7f167f1ea1678ffb51d35d10b573e313ac31ab906ecd8d685fc23177d03b4a0f149ec87793c180317bd1faa2
|
7
|
+
data.tar.gz: 7b313077919931919e36539d471fd4d783d32e33fd5e487161b30a2a153cd371aed45127b633b46939eb5f22901511a5cae93812269b1c1c543dd2b029004adc
|
data/lib/miq_dev_util/code.rb
CHANGED
data/lib/miq_dev_util/logger.rb
CHANGED
@@ -9,7 +9,7 @@ class MiqDevUtil::Logger
|
|
9
9
|
|
10
10
|
# Write message to the logging system with the given logging level.
|
11
11
|
def log(level, message)
|
12
|
-
@evm.log(level, "#{@
|
12
|
+
@evm.log(level, "#{@method_name} - #{message}")
|
13
13
|
end
|
14
14
|
|
15
15
|
# Write the attributes of the given object to the log with a prefix of
|
@@ -17,7 +17,7 @@ class MiqDevUtil::Logger
|
|
17
17
|
def dump_attributes(my_object, my_object_name)
|
18
18
|
if my_object.respond_to?("attributes")
|
19
19
|
self.log(@dump_log_level, "Begin #{my_object_name}.attributes")
|
20
|
-
my_object.attributes.sort.each { |k, v|
|
20
|
+
my_object.attributes.sort.each { |k, v| self.log(:info, "#{my_object_name} Attribute - #{k}: #{v}")}
|
21
21
|
self.log(@dump_log_level, "End #{my_object_name}.attributes")
|
22
22
|
self.log(@dump_log_level, "")
|
23
23
|
else
|
@@ -30,7 +30,7 @@ class MiqDevUtil::Logger
|
|
30
30
|
def dump_associations(my_object, my_object_name)
|
31
31
|
if my_object.respond_to?("associations")
|
32
32
|
self.log(@dump_log_level, "Begin #{my_object_name}.associations")
|
33
|
-
my_object.associations.sort.each { |a|
|
33
|
+
my_object.associations.sort.each { |a| self.log(:info, "#{my_object_name} Association - #{a}")}
|
34
34
|
self.log(@dump_log_level, "End #{my_object_name}.associations")
|
35
35
|
self.log(@dump_log_level, "")
|
36
36
|
else
|
@@ -41,9 +41,9 @@ class MiqDevUtil::Logger
|
|
41
41
|
# Write the virtual columns of the given object to the log with a prefix of
|
42
42
|
# my_object_name to make finding the entries a little easier.
|
43
43
|
def dump_virtual_columns(my_object, my_object_name)
|
44
|
-
if my_object.respond_to?("
|
44
|
+
if my_object.respond_to?("virtual_column_names")
|
45
45
|
self.log(@dump_log_level, "Begin #{my_object_name}.virtual_columns")
|
46
|
-
my_object.virtual_column_names.sort.each { |vcn|
|
46
|
+
my_object.virtual_column_names.sort.each { |vcn| self.log(:info, "#{my_object_name} Virtual Column - #{vcn}")}
|
47
47
|
self.log(@dump_log_level, "End #{my_object_name}.virtual_columns")
|
48
48
|
self.log(@dump_log_level, "")
|
49
49
|
else
|
data/lib/miq_dev_util/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: miq_dev_util
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Wannemacher
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.2.
|
98
|
+
rubygems_version: 2.2.3
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: A set of helper classes to make ManageIQ automate development easier and
|