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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b23d75b67044ef97db93725264cbdacdd4eaf5f9
4
- data.tar.gz: 6ba5859a40cab3b6378ef6622f3c570bb5833cd3
3
+ metadata.gz: 33a5c74387d9a90323882a0e7f42bfd9c5f9b6a4
4
+ data.tar.gz: ef62be82dd8cdbe7a413c8b475525601635bbbe5
5
5
  SHA512:
6
- metadata.gz: f90fe8f16a8e3973c904af770d495d0f8a6e4ca353d27c7320789c46a06e4b09896097d92186afc4726b95bd638631b87dd32611032bd45fa73f0c287a411f53
7
- data.tar.gz: f6a08f6822e0709994576b47fb459248de002d7ba7b53a2eb5825d74656519b45ac49a30df50516352d2e7f05fcc9e6ee96229c299930ca55d12515e14111cfb
6
+ metadata.gz: 52e186e3600569868cb0d81df87fca5c07ca228f7f167f1ea1678ffb51d35d10b573e313ac31ab906ecd8d685fc23177d03b4a0f149ec87793c180317bd1faa2
7
+ data.tar.gz: 7b313077919931919e36539d471fd4d783d32e33fd5e487161b30a2a153cd371aed45127b633b46939eb5f22901511a5cae93812269b1c1c543dd2b029004adc
@@ -4,7 +4,7 @@
4
4
 
5
5
  class MiqDevUtil::Code
6
6
  # Perform a deep copy on objects that support marshalling.
7
- def deep_copy(o)
7
+ def self.deep_copy(o)
8
8
  Marshal.load(Marshal.dump(o))
9
9
  end
10
10
  end
@@ -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, "#{@_method_name} - #{message}")
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| $evm.log(:info, "#{my_object_name} Attribute - #{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| $evm.log(:info, "#{my_object_name} Association - #{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?("virtual_columns")
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| $evm.log(:info, "#{my_object_name} Virtual Column - #{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
@@ -1,3 +1,3 @@
1
1
  module MiqDevUtil
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-29 00:00:00.000000000 Z
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.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