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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f01e71eb6492777d8d892c3ba33c662de229a26adb5141aa946355a7202c0a0
4
- data.tar.gz: f84b22c52e8decf1a0cf870e322463d1de725523ed02acf0d545c52ea5a167c2
3
+ metadata.gz: 250500a33175fd75751304e636127328659be1d479c69fc821eec449fc14c898
4
+ data.tar.gz: a0ec8ec56a0830de7d4eefae7dd384fa56916383cabb1cbc9ce373c822f454d7
5
5
  SHA512:
6
- metadata.gz: ee41e2b9acd447bb03536592dce815cbd7c803805bcefd9676392fde951446aab689748614031d1e5405d263f5429b91767cc72f1b39924b728b141f4bcd2fcb
7
- data.tar.gz: 51d67cc2d50bcd0111ef60571cf2421d2854245f3408e287f375502aaf49ef824d6ec2bc34e0c3b61612b47206ea807965780b1fc3c0a42ea6da8241c22f4442
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
- x[:last_modified] || x[:created]
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dxlite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file