dir-to-xml 1.2.4 → 1.2.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/lib/dir-to-xml.rb +9 -9
- data.tar.gz.sig +0 -0
- metadata +23 -23
- 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: 2ff68fc6315d7240661da4bdbe575dbcfbace22e40470797471bfc9716c298b7
|
4
|
+
data.tar.gz: 93dd32e1e66d28ca98505b79bc0ac83ea140528c09c9e8f21c42fdb256c27d35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 006d74654a9d85fce6f01eb6f74d04eadf8cf3b2b578741492d05c391468f3dd6962a3b1e1b610defff262f2d4769d207935478b5fcddaec5589a0da5e42ab96
|
7
|
+
data.tar.gz: a3c6ba48769eac0dfce6fcccf0900c1055f4a682998233144ab81a34c32f64755152fe62e3efe18db9ac4519f8da05a07ab7038b67db6512edacf4e00fef78a5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/dir-to-xml.rb
CHANGED
@@ -76,28 +76,28 @@ class DirToXML
|
|
76
76
|
|
77
77
|
# Returns a list of directory names
|
78
78
|
#
|
79
|
-
# note: if recursive is true then it will return a 1-dimensional Array
|
79
|
+
# note: if recursive is true then it will return a 1-dimensional Array
|
80
80
|
# object containing all directory paths including nested directories
|
81
81
|
#
|
82
82
|
def directories(recursive: false)
|
83
83
|
|
84
84
|
a = @dx.all
|
85
85
|
puts 'inside directories() a: ' + a.inspect if @debug
|
86
|
-
|
86
|
+
|
87
87
|
if recursive then
|
88
88
|
|
89
89
|
directories.flat_map do |dir_name|
|
90
|
-
|
90
|
+
|
91
91
|
#puts 'dir_name: ' + dir_name.inspect
|
92
92
|
#puts 'path+dir: ' + File.join(@path, dir_name).inspect
|
93
93
|
dtx = DirToXML.new(File.join(@path, dir_name), verbose: false, debug: false)
|
94
94
|
list = dtx.directories(recursive: true)
|
95
95
|
r = [File.join(@path, dir_name)]
|
96
96
|
r.concat list if list.any?
|
97
|
-
|
97
|
+
|
98
98
|
r
|
99
99
|
end
|
100
|
-
|
100
|
+
|
101
101
|
else
|
102
102
|
a.select {|x| x.type == 'directory'}.map(&:name)
|
103
103
|
end
|
@@ -263,14 +263,14 @@ class DirToXML
|
|
263
263
|
def getfile_info(filename)
|
264
264
|
|
265
265
|
x = File.join(@path, filename)
|
266
|
-
puts '
|
266
|
+
puts '_x: ' + x.inspect if @debug
|
267
267
|
|
268
268
|
begin
|
269
269
|
{
|
270
270
|
name: filename,
|
271
|
-
type:
|
272
|
-
ext:
|
273
|
-
mtime:
|
271
|
+
type: FileX.ftype(x),
|
272
|
+
ext: FileX.extname(x),
|
273
|
+
mtime: FileX.mtime(x),
|
274
274
|
description: ''
|
275
275
|
}
|
276
276
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
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.2.
|
4
|
+
version: 1.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -12,31 +12,31 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIEljCCAv6gAwIBAgIBATANBgkqhkiG9w0BAQsFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTI0MTExMDEwNDQyM1oXDTI1MTExMDEwNDQyM1owSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBG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uLmV1MA0GCSqGSIb3DQEBCwUAA4IBgQBAu0sNk8wZMU5N9MtP50BK4Sa6Moa7
|
30
|
+
5iQHcjfp3dGzBKPWiXT379oi8O9qoOSe2oGL+DbY0I3Zqhf2+nj9AA3bs7ixn9Sp
|
31
|
+
P9ogvtVlKJGkvbBXZGyEUtsjhN7gyc1+6waAmtrZjbnVzSlzSw3HAm9qzSDECgZq
|
32
|
+
uMVYgkGIYdl2uJmbn8tEnxKrdNguIE73ZaRIERrDaN2xg9JDmg3orUima4TMHp9S
|
33
|
+
/bnPHus686BDIW8TlWl0s4nAUxEGvhWkhAsMwHjlXlOuO86gyaPmRrYMCj7Ho2DC
|
34
|
+
cRg/QvxoQ41GSmqh8YwzhlZPVYF/hhVryKU6wQ392dNaryeMWTWMI6rJYyKaxRo2
|
35
|
+
PkyFP+Ddzv9cOSjHaVVXA4Mm+fyzQ9RfmtxZpNyRvFwqWAqDHrgvwwM6H4uRWP14
|
36
|
+
5AQpQpsoH6mHa4nvWrlt6XytO8ZgsiXXnnIQAxqkwkg06fmJsYGvIQcWaPIMDoa4
|
37
|
+
blL3utwt1rYtTLL6x5pY4hIjc/td1AKi2P0=
|
38
38
|
-----END CERTIFICATE-----
|
39
|
-
date:
|
39
|
+
date: 2024-11-10 00:00:00.000000000 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: dxlite
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
|
-
rubygems_version: 3.4.
|
87
|
+
rubygems_version: 3.4.6
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: Dir-to-xml saves a directory listing in the Dynarex XML format
|
metadata.gz.sig
CHANGED
Binary file
|