dir-to-xml 0.7.2 → 0.7.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: d902a0b07e4b77dc9d9ad7122a4e84186a6e5c09
4
- data.tar.gz: b9271f1ca9b93c64da56180ec9e018609f1b204f
3
+ metadata.gz: b4bee1bcaf2415070878f969ab97a2fd7138e94b
4
+ data.tar.gz: 9a7db4b07f4aae56fca9d001d65d1133c9f46e30
5
5
  SHA512:
6
- metadata.gz: b6e2869f2e12fc0570535f20986f41aba36f5cb918e3afe8bc72914c273bf82186d81c917503fcb55bfb7c952b6d5b1682d07b7b2bb65aa635f710ced38ed874
7
- data.tar.gz: 1660b3c78c97d666228f28013ed2e10b168a20daf774b5ff5e2597d9c2194592d83493c049a26adf2e96fcd815bd803d8923fd6660346941e148e33e59ca5769
6
+ metadata.gz: c2e8e7535604f25b9c206ad36870cec9dcfc92bf62ac0f2b02a468845c77e43a3bcd05cf41f0770c94ce09e9ebeb9427c08d88e8d91db293aa18d07154c87e38
7
+ data.tar.gz: 00c7c00a798906948d518b2b17b5eb9f958ca6c3956ccd900be453ea0648161e2b1cbfa18fc9d26f828b99a7dafa50a13d916d40266fa36d4038e960ff17912f
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1,3 @@
1
- 1'%�QS�*�4I�үrt$�1Ul������m�D(�f� �?�QͲ�+烸�����e{�GA�d.�"����,[���=p���e8A��znv��6�qp�h���S��EM~J~Zu
1
+ [���S!٬�Xj;��/��'��\�n��4�3`%�'����4%��,f��
2
+ mp��|H������M(��a�/4:�j�A�0��o��D/�3�3u��,(ڎ����l+��w����]�)�m^��}feS�����9���F�ߡ�C���CJ}�
3
+ 0��0޽��i�$�_*�f}�\����W�
@@ -17,13 +17,15 @@ class DirToXML
17
17
  raise "Directory not found." unless File.exists? path
18
18
 
19
19
  a = Dir.glob(File.join(path, "*")).map{|x| File.basename(x) }.sort
20
-
20
+
21
21
  a.delete index
22
22
 
23
- a2 = a.inject([]) do |r, x|
23
+ a2 = a.inject([]) do |r, filename|
24
24
 
25
+ x = File.join(path, filename)
26
+
25
27
  r << {
26
- name: x,
28
+ name: filename,
27
29
  type: File::ftype(x),
28
30
  ext: File.extname(x),
29
31
  ctime: File::ctime(x),
@@ -116,7 +118,8 @@ class DirToXML
116
118
  dx.file_path = Dir.pwd
117
119
 
118
120
  dx.import a
119
- dx.save @index
121
+
122
+ dx.save File.join(@path, @index)
120
123
 
121
124
  return dx
122
125
 
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.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file