moab-versioning 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDdjMzY2NmM3MjIyYTIwOGI4YWFkMjQ3MGFhZmJjNDYyOGI5OThiYw==
4
+ NDlmMWQ3MmFiOGE5ZjkxYjBkMWYzZmNlMjFhMjA4MzRkOTU4ZTM4Mw==
5
5
  data.tar.gz: !binary |-
6
- MGY3ODdmMDJkYzBlZjdiOGYyYmZhZjg5YjdmMGI3YjY1YTE2M2IwMg==
6
+ OTBmYjUzZjBlYzBhMDBhODUyMzQxYWVjNjc2MTQ5YTEwZTY0MDUzYQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjhhNWIxNmVkMGQ0NjM0MzZmMzk0MDE1Y2UwZDJhN2RlMmMzMDIwNzA0YTg2
10
- Y2NlNjE0YTc0ZDEyNjc2YTA1ZDA1ZDY5MWM0YmNhNDYwMjVmNWEyODI1YmRj
11
- MzVjMTVlMmY2MWI5MWUzMzNlNGZlZTc3MDViNDEyODExYmIzYmQ=
9
+ NWU2MGE2Y2NkMTcwNzJjODczMjE1NDMyMGU4ZGNmOTAzYzkwMTBkYjQxNzQ2
10
+ MTU0ODhjZmI1YWVmYjQ5ODU4MTQyNDFmOWY1OGQzMTJhNmE2NzVmNDc4M2Qx
11
+ NmM5MmRmZDI4ZWFiNzZjNzAyMDgyNjFkZGZkYWY4NDAxNDc4ZDM=
12
12
  data.tar.gz: !binary |-
13
- ZTQ5ZjYwNzNhMDc5N2E4ODU4OWQ4OTkwZDk1MmFkZWIxYzA5ODBiYjdiYmVh
14
- YTc4YTBhMjcxZjQxYTIyYjUxYmYzMTVhMTQwOWU2ZTdlMDM2MDA0M2U1MmRl
15
- MTk2N2NmN2E5YWU4ZTg0ZWI1MTM1MjlmNTFkOWMzNjNmNDgwYjA=
13
+ MTJmMmE2ZTU2ZWYyODkxYzljMzcyMTIyNDM1NmZlOWZjYWViNzQxNjQ3NmMx
14
+ MDFiN2RkMDk1YzA1Mjk0ZmNmNWI1MmQwZGZkN2EwZDUzMjE1NWY0YjI1NDU4
15
+ ODRkZDZmYjFjM2QzYTAzNzI1NmM0ODBlODc4NDhmOTIwMDIxNzY=
@@ -30,8 +30,8 @@ module Moab
30
30
  attribute :path, String, :key => true
31
31
 
32
32
  # @attribute
33
- # @return [Time] gsub(/\n/,' ')
34
- attribute :datetime, Time, :on_save => Proc.new {|t| UtcTime.output(t)}
33
+ # @return [String] gsub(/\n/,' ')
34
+ attribute :datetime, String
35
35
 
36
36
  def datetime=(event_datetime)
37
37
  @datetime=UtcTime.input(event_datetime)
@@ -60,8 +60,8 @@ module Moab
60
60
  end
61
61
 
62
62
  # @attribute
63
- # @return [Time] The datetime at which the inventory was created
64
- attribute :inventory_datetime, Time, :tag => 'inventoryDatetime', :on_save => Proc.new {|t| UtcTime.output(t)}
63
+ # @return [String] The datetime at which the inventory was created
64
+ attribute :inventory_datetime, String, :tag => 'inventoryDatetime'
65
65
 
66
66
  def inventory_datetime=(datetime)
67
67
  @inventory_datetime=UtcTime.input(datetime)
@@ -51,8 +51,8 @@ module Moab
51
51
  attribute :other, String
52
52
 
53
53
  # @attribute
54
- # @return [Time] The datetime at which the report was run
55
- attribute :report_datetime, Time, :tag => 'reportDatetime', :on_save => Proc.new {|t| UtcTime.output(t)}
54
+ # @return [String] The datetime at which the report was run
55
+ attribute :report_datetime, String, :tag => 'reportDatetime'
56
56
 
57
57
  def report_datetime=(datetime)
58
58
  @report_datetime=UtcTime.input(datetime)
@@ -52,8 +52,8 @@ module Moab
52
52
  end
53
53
 
54
54
  # @attribute
55
- # @return [Time] The datetime at which the catalog was updated
56
- attribute :catalog_datetime, Time, :tag => 'catalogDatetime', :on_save => Proc.new {|t| UtcTime.output(t)}
55
+ # @return [String] The datetime at which the catalog was updated
56
+ attribute :catalog_datetime, Time, :tag => 'catalogDatetime'
57
57
 
58
58
  def catalog_datetime=(datetime)
59
59
  @catalog_datetime=UtcTime.input(datetime)
@@ -31,8 +31,8 @@ module Moab
31
31
 
32
32
 
33
33
  # @attribute
34
- # @return [Time] The date and time of an event
35
- attribute :datetime, Time, :on_save => Proc.new {|t| UtcTime.output(t)}
34
+ # @return [String] The date and time of an event
35
+ attribute :datetime, String
36
36
 
37
37
  def datetime=(event_datetime)
38
38
  @datetime=UtcTime.input(event_datetime)
@@ -34,8 +34,8 @@ class UtcTime
34
34
  # @return [String] Convert the datetime into a ISO 8601 formatted string
35
35
  def self.output(datetime)
36
36
  case datetime
37
- when nil
38
- nil
37
+ when nil, ""
38
+ ""
39
39
  when String
40
40
  Time.parse(datetime).utc.iso8601
41
41
  when Time
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moab-versioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Anderson
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-12-06 00:00:00.000000000 Z
13
+ date: 2014-03-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: confstruct