dir-to-xml 1.1.1 → 1.1.2
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/dir-to-xml.rb +7 -4
- 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: 3abbbcbec98ad9435fd8032a23da267df6e9009e50f854e6ec0dc2b5eadeb35d
|
4
|
+
data.tar.gz: cb0d28da749982e7dae85ce547eaed51b39b63ef12e2bab57352a32a051389af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5c672578f47b4ef23b2b9fd1a2ea7359e78f1c0084c168128ee4dfbb706bdecc0f0a2f813e851cb4965bf00669fa4dfd751644fff2401c64f1e3f61e86c67c9
|
7
|
+
data.tar.gz: 57e2f7d63483f4c601c35a2d69d5e53e69bb25c6119995e1a88faa41596c6d02e541ac87317d6faa5dc3d9f39ca8c558bf5eb378e12482e683b73414571cf4b9
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/dir-to-xml.rb
CHANGED
@@ -127,10 +127,13 @@ class DirToXML
|
|
127
127
|
dtx_last_modified = Time.parse(@dx.last_modified)
|
128
128
|
|
129
129
|
select_records = records.select do |file|
|
130
|
-
|
130
|
+
|
131
|
+
file[:mtime] > dtx_last_modified or file[:type] == 'directory'
|
132
|
+
|
131
133
|
end
|
132
134
|
|
133
|
-
|
135
|
+
puts 'select_records: ' + select_records.inspect if @debug
|
136
|
+
find_latest(select_records) if select_records.any?
|
134
137
|
|
135
138
|
# Add any new files
|
136
139
|
#
|
@@ -202,12 +205,12 @@ class DirToXML
|
|
202
205
|
or latest_file.nil? \
|
203
206
|
or latest_file[:type] == 'directory') then
|
204
207
|
|
205
|
-
dir_latest.last[:path] = File.join(@path, dir_latest.first)
|
208
|
+
dir_latest.last[:path] = File.expand_path(File.join(@path, dir_latest.first))
|
206
209
|
dir_latest.last
|
207
210
|
|
208
211
|
elsif latest_file and latest_file[:type] == 'file'
|
209
212
|
|
210
|
-
latest_file[:path] = @path
|
213
|
+
latest_file[:path] = File.expand_path(@path)
|
211
214
|
latest_file
|
212
215
|
|
213
216
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|