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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1b0b52b39b76fef5f6121037c8959b445e4deb29
4
- data.tar.gz: 98d16e6a817b200395bda374d1cc0a4bc948d7ae
2
+ SHA256:
3
+ metadata.gz: f5eb4944a687b83409892b6df2f1c1841383022fc70042fee18ff784a4a09702
4
+ data.tar.gz: 85cb703ba3fb49d41d0d22b8b8eb4d7518fc43442158825a5db8a5b26fcf8203
5
5
  SHA512:
6
- metadata.gz: ba80cee7df999730c99adb3d4c6367b087bbb4224c4cf1da8183de0d81c1c7615aab1a48d79686d907ed55e58dc702a26d54fab97f29488a103b18eb3daa04bb
7
- data.tar.gz: 1a9f6e5e8ab725f1e27f73c5814bb2f925adf83d89817ac0a4b2dda25595c43af6cc761af7499db3a43eb0998ea5ef3532c6aadde0e95695c18028de71e311ef
6
+ metadata.gz: 208c4022a9adef5f4d6db07085541870a70597ccf7c44f215698ef81e21873689f8cc11b4c6d697bc6449062cd0d6d514feaab806a1402c4b50cba7289bc043a
7
+ data.tar.gz: 99502e1db39fa1914f2f58f6ca0412c98cfbd1d5a2ccc716262dcb99dfa9ed92a55d610e695a61ac315be8ad1f7410d987b33d47375046592f9857d459aecdb4
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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}/]} : @a
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
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
- 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
- c3RlckBqYW1lc3JvYmVydHNvbi5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000 Z
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.7'
46
+ version: '1.8'
42
47
  - - ">="
43
48
  - !ruby/object:Gem::Version
44
- version: 1.7.22
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.7'
56
+ version: '1.8'
52
57
  - - ">="
53
58
  - !ruby/object:Gem::Version
54
- version: 1.7.22
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
- rubyforge_project:
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