dir-to-xml 1.0.4 → 1.0.5
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.tar.gz.sig +0 -0
- data/lib/dir-to-xml.rb +7 -1
- metadata +2 -2
- 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: 001e83927dbcc6a8bbde99e4eca19b904a5344b02f5ab8ad2b1fc63a7e55a24b
|
4
|
+
data.tar.gz: 67404d3cec0b93c5c2a4fbea8ff01e3e18ea24df2176c6ac4dcaaf6495a97c69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64ed16618d5d1bdd857b1cf1739b59f9964e90ce315437cc0e5dbe995e87b258dcfbde302cdd5f47233f95b8b55324801af65884b6aef1fd6b5e72b6a62295ed
|
7
|
+
data.tar.gz: d0ab3ede67051850dada5596979063397a875f1a25655acd5242f0ffe5899fefe30a71605c26fe437bfb451dc49c7a3bff518b006392834d3885ac72bd7b62e3
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dir-to-xml.rb
CHANGED
@@ -199,9 +199,15 @@ class DirToXML
|
|
199
199
|
end
|
200
200
|
|
201
201
|
def sort_by(sym)
|
202
|
+
|
203
|
+
puts 'inside sort_by' if @debug
|
202
204
|
procs = [[:mtime, lambda{|obj| obj.sort_by{|x| x[:mtime]}}]]
|
203
205
|
proc1 = procs.assoc(sym).last
|
206
|
+
|
207
|
+
puts '@object: ' + @object.inspect if @debug
|
208
|
+
@object = @a = @dx.to_a if @object.nil?
|
204
209
|
proc1.call(@object)
|
210
|
+
|
205
211
|
end
|
206
212
|
|
207
213
|
def sort_by_last_modified()
|
@@ -232,7 +238,7 @@ class DirToXML
|
|
232
238
|
|
233
239
|
def dxify(a)
|
234
240
|
|
235
|
-
@dx.last_modified = Time.now.to_s
|
241
|
+
@dx.last_modified = Time.now.to_s if @dx.respond_to :last_modified
|
236
242
|
@dx.import a
|
237
243
|
@dx.save File.join(@path, @index)
|
238
244
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dir-to-xml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
YSREEphg3phQsU9LV4Dlc2Id4gB3W+//c1Ek6TFieKoVemKMkbtB1lgqsEpTCfwh
|
36
36
|
oNUg84DlSmZ2z9LKagBVAlDy
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2021-01
|
38
|
+
date: 2021-02-01 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: dxlite
|
metadata.gz.sig
CHANGED
Binary file
|