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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54d8f71f49b8e50b7d728ecd4acdfd3c5ac81321
4
- data.tar.gz: 2f37cf87cb310ed00d0fbb748147c391014ebf17
3
+ metadata.gz: 1b0b52b39b76fef5f6121037c8959b445e4deb29
4
+ data.tar.gz: 98d16e6a817b200395bda374d1cc0a4bc948d7ae
5
5
  SHA512:
6
- metadata.gz: d0915415f3a3388773f6638f0527156ffbf0d8b2a89ed64875038561be6103ce8e26b7e6f643ef0823243d524610274188746c862211ee2ab11caeab98c11ab0
7
- data.tar.gz: a4d43cb520ec183a9fb9efc6974f2783409a9a0e095e16de3ebc80defe40226cfe793894381e0581ba2bd8dd47c45aae71d9a3c7299120414e9df922fbe1f43a
6
+ metadata.gz: ba80cee7df999730c99adb3d4c6367b087bbb4224c4cf1da8183de0d81c1c7615aab1a48d79686d907ed55e58dc702a26d54fab97f29488a103b18eb3daa04bb
7
+ data.tar.gz: 1a9f6e5e8ab725f1e27f73c5814bb2f925adf83d89817ac0a4b2dda25595c43af6cc761af7499db3a43eb0998ea5ef3532c6aadde0e95695c18028de71e311ef
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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.3
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-17 00:00:00.000000000 Z
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
- iS���B�נ�>��K�f(�R��
2
- ��u�:��ơKJ]�a�@�_x���Q
3
- �:=+�{{�PLF�V���
1
+ ��2�����0N ف�3/��a��[>b��>�.�V��\�6w���+��&2RFh]�$��b�ןD��K�gI4t�����C)
2
+ �3 2�:�#�y=����ܢU��M
3
+ �`Z ����>