dxlite 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/dxlite.rb +16 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 250500a33175fd75751304e636127328659be1d479c69fc821eec449fc14c898
|
4
|
+
data.tar.gz: a0ec8ec56a0830de7d4eefae7dd384fa56916383cabb1cbc9ce373c822f454d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d74c9420396ec5de7c476d9a0a20eb3dc67ab43137cd2bbc3d3ed7be30cd278a976ac11640013b855c4b2a825a06e5cb2706e57eb8dee09149022415ffd8b00
|
7
|
+
data.tar.gz: 4e9cc5c15f1afac57c0818a7a90d31c132332e8c698d02c4dda649af0c45f9fc7e79d1f8ff762cd523e16ef4fbb9fb3684e77e12a14089cd278691339c12e0b2
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/dxlite.rb
CHANGED
@@ -237,7 +237,22 @@ class DxLite
|
|
237
237
|
a = if @summary[:order] == 'descending' then
|
238
238
|
|
239
239
|
records.sort_by do |x|
|
240
|
-
|
240
|
+
|
241
|
+
if @debug then
|
242
|
+
puts 'x: ' + x.inspect
|
243
|
+
puts 'created: ' + Date.parse(x[:post][:created]).inspect
|
244
|
+
end
|
245
|
+
|
246
|
+
created = DateTime.parse(x[:post][:created])
|
247
|
+
|
248
|
+
last_modified = if x[:post][:last_modified] then
|
249
|
+
DateTime.parse(x[:post][:last_modified])
|
250
|
+
else
|
251
|
+
nil
|
252
|
+
end
|
253
|
+
|
254
|
+
last_modified || created
|
255
|
+
|
241
256
|
end.reverse
|
242
257
|
|
243
258
|
else
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|