dir-to-xml 0.8.1 → 0.8.2

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: c718e4e10749b20081db90c763d090b2312fd2fa
4
- data.tar.gz: 0f829facfea639a3e3db7eac450527129fb4874f
3
+ metadata.gz: 8ab508aac678d73d04dfc280a8124444d2238186
4
+ data.tar.gz: 67015e70f7e481dcbe5cd17f463f01e677402c2e
5
5
  SHA512:
6
- metadata.gz: b4ee85fa24b41ea48199b7abcd610403e7f7259be98529265cb8d9c4efb3296713ec55e77fbb4ad89ec11c9908430151900481c79c33e5612046340d9b8d8913
7
- data.tar.gz: 0d42cbb31712b2c55d1329b78837e8a0d0457e706b0aa04385376d47b83dda3f70978e954a3b6a795f3493d55697ae387805f7bae3fc9feb3fc5b7d248340fb8
6
+ metadata.gz: 94d5d3f5454277ad5a8cc6a2c5e8a78afa185d2d13ae4b7d4eaa33486bab7649a1997005337e6c79528c7984659afd2961650da3eecb975b185a75af23e3305e
7
+ data.tar.gz: be19cb2cda2265b8ef25f206710fbf94f5f1b24cc15bef797eeec49dbae68c4e0e2a990f60267f6eeb8fec5e02cc7ca2739093cc7751b2792966ad6a01033047
checksums.yaml.gz.sig CHANGED
@@ -1 +1,3 @@
1
- a�����iM 1����p����:vA��K���bL�I�Ӑ(r�i�7x��Z�����Z�\s�4d�a�9u�i��<��b�Ғ^�8�"���TyU��� ��r���t�^KO LE5��gdFo{���ۄ���dUUw�lJ��TK{ԘI"����K���d�w����!�F����-.���?W��8�vE�a�^���CW�mj� ���|p�ӏ� p(�۴��1إ�_'J2���.��F���
1
+ �����}�.��҆�[���C��3e#gb�7���Mi[|E�$c''rw_̵����&�j��Ɯ:ؕ����1��G��問���#��(�=���# � �&]:��>��Rʷ#������5>�qU}���-&���
2
+ ���-o��5
3
+ vN"��Z�
data.tar.gz.sig CHANGED
Binary file
data/lib/dir-to-xml.rb CHANGED
@@ -36,6 +36,7 @@ class DirToXML
36
36
 
37
37
  x = File.join(path, filename)
38
38
 
39
+ begin
39
40
  r << {
40
41
  name: filename,
41
42
  type: File::ftype(x),
@@ -44,6 +45,9 @@ class DirToXML
44
45
  mtime: File::mtime(x),
45
46
  atime: File::atime(x)
46
47
  }
48
+ rescue
49
+ r
50
+ end
47
51
 
48
52
  end
49
53
 
@@ -56,6 +60,10 @@ class DirToXML
56
60
 
57
61
  end
58
62
 
63
+ def filter(&blk)
64
+ @dx.filter &blk
65
+ end
66
+
59
67
  def filter_by(pattern=/.*/, type: nil)
60
68
 
61
69
  @object = @a.select do |x|
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.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  KsWUx1RJXP2nrd/DuPwuyaNM0fcsnnqFnbAO7RjbYXWS96dGA0WVmxdO7PcMnJ9K
32
32
  PneSyA3VrnMuNQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2016-07-31 00:00:00.000000000 Z
34
+ date: 2017-01-02 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: dynarex
@@ -39,22 +39,22 @@ dependencies:
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: '1.6'
42
+ version: '1.7'
43
43
  - - ">="
44
44
  - !ruby/object:Gem::Version
45
- version: 1.6.2
45
+ version: 1.7.17
46
46
  type: :runtime
47
47
  prerelease: false
48
48
  version_requirements: !ruby/object:Gem::Requirement
49
49
  requirements:
50
50
  - - "~>"
51
51
  - !ruby/object:Gem::Version
52
- version: '1.6'
52
+ version: '1.7'
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: 1.6.2
55
+ version: 1.7.17
56
56
  description:
57
- email: james@r0bertson.co.uk
57
+ email: james@jamesrobertson.eu
58
58
  executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  version: '0'
81
81
  requirements: []
82
82
  rubyforge_project:
83
- rubygems_version: 2.5.1
83
+ rubygems_version: 2.6.8
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Dir-to-xml saves a directory listing in the Dynarex XML format
metadata.gz.sig CHANGED
@@ -1 +1,2 @@
1
- ����Z۰�u�|�s�j��պK_<��PuW3ug�H���z_58;>�u��e%� ����zckW!s�Ƴ��K�����V�x��7���K�k���px.-��}%������~��y���!6S��<ڀ��fėI�#g��u���Ɓ����w���a[A�4Ea�2RQQ��/�B��ƄH
1
+ C*\v�_]���<�u(I��ʧc$��4
2
+ (}�