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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 59219ab2db1951fd62a36a833fbc4253961bbb4c
4
- data.tar.gz: 8ac53b24217951922458f98b8e903b91140058c6
3
+ metadata.gz: 54d8f71f49b8e50b7d728ecd4acdfd3c5ac81321
4
+ data.tar.gz: 2f37cf87cb310ed00d0fbb748147c391014ebf17
5
5
  SHA512:
6
- metadata.gz: ad02c21b2b1173e6511271987465625c3127961a183a07b623ef55570b907dbbb101c817cca5cb1a48d1647c6cdcc747aa360e8314ff2740fb25b449224457a0
7
- data.tar.gz: 20646cc68aa7aefe2b6e102e4ac391712d69f492eb9e20c567689b2e3143eb350e2871e8bc9884c3fe405dac036b27686515596e05095a0f6b4460337ca25ffc
6
+ metadata.gz: d0915415f3a3388773f6638f0527156ffbf0d8b2a89ed64875038561be6103ce8e26b7e6f643ef0823243d524610274188746c862211ee2ab11caeab98c11ab0
7
+ data.tar.gz: a4d43cb520ec183a9fb9efc6974f2783409a9a0e095e16de3ebc80defe40226cfe793894381e0581ba2bd8dd47c45aae71d9a3c7299120414e9df922fbe1f43a
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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.2
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
- MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
- YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTE2MDczMTE1MDg0MFoXDTE3MDczMTE1MDg0MFowSDESMBAG
16
- A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
- EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBAKe0Tx9cyuP49OURT7IiCnuCaeFllrizfGPz71cWJwRwG3tTKgyahn929V6N
19
- 8ALUq10u1g3s1ZtOxhpv0UXj8DkqrV6Y7B37ASrKgfeN8+oKOOYldFlcP0Bixyfp
20
- K7Y1O3xrd66O2qNjtTdD7uTEzOPhLw3SUkO0IkuF+Kqam81fsmAcAIWdROGiD9ax
21
- DL4j7ykZ/AYmi6R8NKrYN637w2sOnkYXufIQ8wx9qibY3HMW5+X21L6gEaFUDeSW
22
- 2m//fkHlxmFN+IICo6DFc5VZKtwQmJVK1HnpKOVtWfsVN4bll7ANy54AxvyPsz0r
23
- AO6/53uNtf6aJXGNkgAoSnRskXMCAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
24
- DwQEAwIEsDAdBgNVHQ4EFgQUaNTA8KT0NF8E1x4S7UJf8EzbHJYwJgYDVR0RBB8w
25
- HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1U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
+ 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: 2017-06-15 00:00:00.000000000 Z
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.8
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