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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9530077829996cc77123d5901f99e26be63bf3eaa4a4feb404aaa89f978a3528
4
- data.tar.gz: aefa960532c4aca5ca47358392725eeadd177f45cef699231e25688e84eaad83
3
+ metadata.gz: 2ff68fc6315d7240661da4bdbe575dbcfbace22e40470797471bfc9716c298b7
4
+ data.tar.gz: 93dd32e1e66d28ca98505b79bc0ac83ea140528c09c9e8f21c42fdb256c27d35
5
5
  SHA512:
6
- metadata.gz: 1f11a5a95d0b064f95431100d80553458e4afaba90d36a6eac5b1d2a5aaffde4cbcb5742c5f56528ce88b405e3bba93b2f6f64ac2b48c56c5464e32c1beba6ca
7
- data.tar.gz: 4582a63847e8d4b4ae36353ee7adaba8b615c603665300291c405808a071402bc0877eb1300a3b7d78b29f1c68ac96302ab4db6e9f3baeded363b0f60bd2a11d
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 'x: ' + x.inspect if @debug
266
+ puts '_x: ' + x.inspect if @debug
267
267
 
268
268
  begin
269
269
  {
270
270
  name: filename,
271
- type: File::ftype(x),
272
- ext: File.extname(x),
273
- mtime: File::mtime(x),
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
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
- 8ixkARkWAmV1MB4XDTIzMDQwMjExNDIwOVoXDTI0MDQwMTExNDIwOVowSDESMBAG
15
+ 8ixkARkWAmV1MB4XDTI0MTExMDEwNDQyM1oXDTI1MTExMDEwNDQyM1owSDESMBAG
16
16
  A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
17
  EjAQBgoJkiaJ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9MtP50BK4Sa6Moa7
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: 2023-04-02 00:00:00.000000000 Z
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.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