mordor 0.2.3 → 0.2.4
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.
- data/lib/mordor/resource.rb +1 -1
- data/mordor.gemspec +2 -2
- metadata +4 -4
data/lib/mordor/resource.rb
CHANGED
|
@@ -71,7 +71,7 @@ module Mordor
|
|
|
71
71
|
timestamp_value = BSON::Timestamp.new(timestamp_value["seconds"], timestamp_value["increment"])
|
|
72
72
|
end
|
|
73
73
|
ordered_self_hash = BSON::OrderedHash.new
|
|
74
|
-
ordered_self_hash[timestamp_attribute] = (timestamp_value.nil?) ? BSON::Timestamp.new(0, 0) : timestamp_value
|
|
74
|
+
ordered_self_hash[timestamp_attribute] = (timestamp_value.nil? || timestamp_value.empty?) ? BSON::Timestamp.new(0, 0) : timestamp_value
|
|
75
75
|
self_hash.each do |key, value|
|
|
76
76
|
ordered_self_hash[key] = value
|
|
77
77
|
end
|
data/mordor.gemspec
CHANGED
|
@@ -2,8 +2,8 @@ Gem::Specification.new do |s|
|
|
|
2
2
|
s.name = "mordor"
|
|
3
3
|
|
|
4
4
|
# Do not set the version and date field manually, this is done by the release script
|
|
5
|
-
s.version = "0.2.
|
|
6
|
-
s.date = "2012-01-
|
|
5
|
+
s.version = "0.2.4"
|
|
6
|
+
s.date = "2012-01-03"
|
|
7
7
|
|
|
8
8
|
s.summary = "mordor"
|
|
9
9
|
s.description = <<-eos
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mordor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 31
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 0.2.
|
|
9
|
+
- 4
|
|
10
|
+
version: 0.2.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Jan-Willem Koelewijn
|
|
@@ -16,7 +16,7 @@ autorequire:
|
|
|
16
16
|
bindir: bin
|
|
17
17
|
cert_chain: []
|
|
18
18
|
|
|
19
|
-
date: 2012-01-
|
|
19
|
+
date: 2012-01-03 00:00:00 +01:00
|
|
20
20
|
default_executable:
|
|
21
21
|
dependencies:
|
|
22
22
|
- !ruby/object:Gem::Dependency
|