dir-to-xml 0.9.2 → 0.9.3
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 +22 -23
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54d8f71f49b8e50b7d728ecd4acdfd3c5ac81321
|
4
|
+
data.tar.gz: 2f37cf87cb310ed00d0fbb748147c391014ebf17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0915415f3a3388773f6638f0527156ffbf0d8b2a89ed64875038561be6103ce8e26b7e6f643ef0823243d524610274188746c862211ee2ab11caeab98c11ab0
|
7
|
+
data.tar.gz: a4d43cb520ec183a9fb9efc6974f2783409a9a0e095e16de3ebc80defe40226cfe793894381e0581ba2bd8dd47c45aae71d9a3c7299120414e9df922fbe1f43a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dir-to-xml.rb
CHANGED
@@ -74,12 +74,16 @@ class DirToXML
|
|
74
74
|
@dx.filter &blk
|
75
75
|
end
|
76
76
|
|
77
|
-
def filter_by(pattern=/.*/, type: nil)
|
77
|
+
def filter_by(pattern=/.*/, type: nil, ext: nil)
|
78
78
|
|
79
79
|
@object = @a.select do |x|
|
80
80
|
|
81
81
|
pattern_match = x[:name] =~ pattern
|
82
|
+
|
82
83
|
type_match = type ? x[:type] == type.to_s : true
|
84
|
+
ext_match = ext ? x[:ext] == ext.to_s : true
|
85
|
+
|
86
|
+
pattern_match and type_match and ext_match
|
83
87
|
|
84
88
|
end
|
85
89
|
|
@@ -149,6 +153,8 @@ class DirToXML
|
|
149
153
|
@dx.clone
|
150
154
|
end
|
151
155
|
|
156
|
+
alias to_dx to_dynarex
|
157
|
+
|
152
158
|
private
|
153
159
|
|
154
160
|
def dxify(a)
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,28 +10,27 @@ 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
|
-
|
32
|
-
PneSyA3VrnMuNQ==
|
13
|
+
MIIDXjCCAkagAwIBAgIBATANBgkqhkiG9w0BAQUFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMTgwMTE3MTkxNTU3WhcN
|
15
|
+
MTkwMTE3MTkxNTU3WjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
|
16
|
+
cnRzb24vREM9ZXUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC61F7V
|
17
|
+
dZnw6KeDdok4UCd2kAEeRRQRDeqjbNIB0Z+1mF+nTm79LPHyRbBC/k68nVNcobfS
|
18
|
+
uZ5pjKzEeoNFZ+hloYxKkuzgf2chbLdlO0Z4ImZ8CBB9y9CIsm2y83b51Dr0wRoZ
|
19
|
+
OZJT68w/4Qt2ZWwUge9cPZ0kWSA6PJDzwPFpjapYZGckAcEpeoUjf3uijd4DMgOm
|
20
|
+
hEpkAUFm5LIcbJV+GcB6CHktLZITGysWwHt4XLocidJQoTzeGJmrpSKdwBsbDVse
|
21
|
+
LXseAEoqdB6UWbqpXHE2AnaqTRtWWrN3jtPu/TRU60H/e6t1M058VgCCXMVsT+3P
|
22
|
+
ZEB6nnSWuVh/B45FAgMBAAGjgYowgYcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
23
|
+
HQYDVR0OBBYEFIASNzbdo4501UHsZJFkFmaEQVElMCYGA1UdEQQfMB2BG2dlbW1h
|
24
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTAmBgNVHRIEHzAdgRtnZW1tYXN0ZXJAamFt
|
25
|
+
ZXNyb2JlcnRzb24uZXUwDQYJKoZIhvcNAQEFBQADggEBACNAHk9kLmkbG9KEGPu1
|
26
|
+
iYietA0FZnGEBSbo8TKqH76MOUFB6m2j1RPQBm+Lfo0gVkyMyGjxlExmLCZ5GBU6
|
27
|
+
Y/wnq8AlzU3QVSjaSPG4DIKMTxXT9+0sM99ZNjIh8FmZTk4evgfttB3v3ypxr+4b
|
28
|
+
QHFIfWFQQECrFa0ChG/FLG1jUiJhPZEcwyvjWxXq/y2anABAaNmpdCVoeER6YtM1
|
29
|
+
vq4mU9wyMV1t7hS9KA/el1ASJgc56Y0clXVIIP0Zg2W537AQhcv1x+JmbjhKVmHB
|
30
|
+
6HujQ+e2GfzNqHImdS/2E7ycYjbDf2xoR+vSALw49aP2FKxHjB/H0sXaVR9iIFk9
|
31
|
+
9KY=
|
33
32
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
33
|
+
date: 2018-01-17 00:00:00.000000000 Z
|
35
34
|
dependencies:
|
36
35
|
- !ruby/object:Gem::Dependency
|
37
36
|
name: dynarex
|
@@ -80,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
79
|
version: '0'
|
81
80
|
requirements: []
|
82
81
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.6.
|
82
|
+
rubygems_version: 2.6.13
|
84
83
|
signing_key:
|
85
84
|
specification_version: 4
|
86
85
|
summary: Dir-to-xml saves a directory listing in the Dynarex XML format
|
metadata.gz.sig
CHANGED
Binary file
|