dir-to-xml 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/dir-to-xml.rb +5 -4
- metadata +31 -27
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f5eb4944a687b83409892b6df2f1c1841383022fc70042fee18ff784a4a09702
|
4
|
+
data.tar.gz: 85cb703ba3fb49d41d0d22b8b8eb4d7518fc43442158825a5db8a5b26fcf8203
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 208c4022a9adef5f4d6db07085541870a70597ccf7c44f215698ef81e21873689f8cc11b4c6d697bc6449062cd0d6d514feaab806a1402c4b50cba7289bc043a
|
7
|
+
data.tar.gz: 99502e1db39fa1914f2f58f6ca0412c98cfbd1d5a2ccc716262dcb99dfa9ed92a55d610e695a61ac315be8ad1f7410d987b33d47375046592f9857d459aecdb4
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dir-to-xml.rb
CHANGED
@@ -117,14 +117,15 @@ class DirToXML
|
|
117
117
|
@dx.save File.join(@path, @index)
|
118
118
|
end
|
119
119
|
|
120
|
-
def select_by_ext(ext)
|
120
|
+
def select_by_ext(ext, &blk)
|
121
121
|
|
122
|
-
@object = ext != '*' ? @a.select{|x| x[:ext][/#{ext}
|
122
|
+
@object = ext != '*' ? @a.select{|x| x[:ext][/#{ext}$/]} : @a
|
123
123
|
return if @object.empty?
|
124
124
|
|
125
125
|
dx = Dynarex.new json_out: false
|
126
126
|
dx.import @object
|
127
|
-
DirToXML.new(dx)
|
127
|
+
dtx = DirToXML.new(dx)
|
128
|
+
block_given? ? dtx.dx.all.map(&:name).each(&blk) : dtx
|
128
129
|
end
|
129
130
|
|
130
131
|
def sort_by(sym)
|
@@ -193,4 +194,4 @@ class DirToXML
|
|
193
194
|
|
194
195
|
end
|
195
196
|
|
196
|
-
end
|
197
|
+
end
|
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: 0.9.
|
4
|
+
version: 0.9.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,27 +10,32 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
13
|
+
MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMTkwMjA5MTI1MDQ2WhcN
|
15
|
+
MjAwMjA5MTI1MDQ2WjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
|
16
|
+
cnRzb24vREM9ZXUwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQDZ4t3Z
|
17
|
+
RMbb5Rq5td/W9rc8g40wxGUMWbpbTgAakq6En2t4tDg06Cp6VkW7fJQXh4lz5cB3
|
18
|
+
2IsgRuQ3rI5dBWWbWzoBV4stsk2Cbr5LZfL0jriAE9Itxz0+9EUaEN/BSak6tjS7
|
19
|
+
HxW9nqwqgHigpr55BJV1VuiNUWcYvWxMv2FYSpb9x6Txi5InjLSBuG+4VLkjYq6W
|
20
|
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QsdUgsTm9K5HfwwJ7DOvMrBNTlUT3TYIH
|
35
|
+
BTVk165yWnQB2Yq2v52HPRkRaeuOLH66MVgEX6wMvIP14S1JM1GrbyBSQDzKAuVb
|
36
|
+
+a4LimR9d0PX4VBzCShRiadP
|
32
37
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
38
|
+
date: 2019-02-09 00:00:00.000000000 Z
|
34
39
|
dependencies:
|
35
40
|
- !ruby/object:Gem::Dependency
|
36
41
|
name: dynarex
|
@@ -38,20 +43,20 @@ dependencies:
|
|
38
43
|
requirements:
|
39
44
|
- - "~>"
|
40
45
|
- !ruby/object:Gem::Version
|
41
|
-
version: '1.
|
46
|
+
version: '1.8'
|
42
47
|
- - ">="
|
43
48
|
- !ruby/object:Gem::Version
|
44
|
-
version: 1.
|
49
|
+
version: 1.8.15
|
45
50
|
type: :runtime
|
46
51
|
prerelease: false
|
47
52
|
version_requirements: !ruby/object:Gem::Requirement
|
48
53
|
requirements:
|
49
54
|
- - "~>"
|
50
55
|
- !ruby/object:Gem::Version
|
51
|
-
version: '1.
|
56
|
+
version: '1.8'
|
52
57
|
- - ">="
|
53
58
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
59
|
+
version: 1.8.15
|
55
60
|
description:
|
56
61
|
email: james@jamesrobertson.eu
|
57
62
|
executables: []
|
@@ -78,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
83
|
- !ruby/object:Gem::Version
|
79
84
|
version: '0'
|
80
85
|
requirements: []
|
81
|
-
|
82
|
-
rubygems_version: 2.6.13
|
86
|
+
rubygems_version: 3.0.2
|
83
87
|
signing_key:
|
84
88
|
specification_version: 4
|
85
89
|
summary: Dir-to-xml saves a directory listing in the Dynarex XML format
|
metadata.gz.sig
CHANGED
Binary file
|