dir-to-xml 0.9.3 → 0.9.4
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 +5 -3
- metadata +2 -2
- metadata.gz.sig +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b0b52b39b76fef5f6121037c8959b445e4deb29
|
4
|
+
data.tar.gz: 98d16e6a817b200395bda374d1cc0a4bc948d7ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba80cee7df999730c99adb3d4c6367b087bbb4224c4cf1da8183de0d81c1c7615aab1a48d79686d907ed55e58dc702a26d54fab97f29488a103b18eb3daa04bb
|
7
|
+
data.tar.gz: 1a9f6e5e8ab725f1e27f73c5814bb2f925adf83d89817ac0a4b2dda25595c43af6cc761af7499db3a43eb0998ea5ef3532c6aadde0e95695c18028de71e311ef
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dir-to-xml.rb
CHANGED
@@ -82,11 +82,11 @@ class DirToXML
|
|
82
82
|
|
83
83
|
type_match = type ? x[:type] == type.to_s : true
|
84
84
|
ext_match = ext ? x[:ext] == ext.to_s : true
|
85
|
-
|
85
|
+
|
86
86
|
pattern_match and type_match and ext_match
|
87
87
|
|
88
88
|
end
|
89
|
-
|
89
|
+
|
90
90
|
self
|
91
91
|
end
|
92
92
|
|
@@ -120,6 +120,8 @@ class DirToXML
|
|
120
120
|
def select_by_ext(ext)
|
121
121
|
|
122
122
|
@object = ext != '*' ? @a.select{|x| x[:ext][/#{ext}/]} : @a
|
123
|
+
return if @object.empty?
|
124
|
+
|
123
125
|
dx = Dynarex.new json_out: false
|
124
126
|
dx.import @object
|
125
127
|
DirToXML.new(dx)
|
@@ -191,4 +193,4 @@ class DirToXML
|
|
191
193
|
|
192
194
|
end
|
193
195
|
|
194
|
-
end
|
196
|
+
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
6HujQ+e2GfzNqHImdS/2E7ycYjbDf2xoR+vSALw49aP2FKxHjB/H0sXaVR9iIFk9
|
31
31
|
9KY=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2018-01-
|
33
|
+
date: 2018-01-19 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: dynarex
|
metadata.gz.sig
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
��
|
3
|
-
|
1
|
+
��2�����0N�ف�3/��a��[>b��>�.�V��\�6w���+��&2RFh]�$��b�ןD��K�gI4�t�����C)
|
2
|
+
�32�:�#�y=����ܢU��M�
|
3
|
+
�`Z� ����>
|