file_crawler 0.5.2 → 0.5.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
  SHA256:
3
- metadata.gz: d0cf4802046c8f20e6894a29dfd011ce84a2dece4f6ab37adc5f392a9e205327
4
- data.tar.gz: f1623a36d3fe5c0c3a2bb0cf28941959bc8e8b250072d8d6e1d38b0497ff3478
3
+ metadata.gz: e5bb09fde1ddd815e076da3ab5031cbaa2f9ab2ee7952c5a0dd189d2d6c268b2
4
+ data.tar.gz: 36865575d2eb400fa0b90ae819febb9f77baf8a76169576a66e311974eb4f699
5
5
  SHA512:
6
- metadata.gz: d70ffcce7209c70fcc001458ae9f62a12b94df634f5058a00239ee347d185f7f26b9e882a0b2bb454b913dc3d3b06d4feda7ceb446c13cb18701001c21ecade0
7
- data.tar.gz: 57b1c4866d11e4dad350a43e8c7c6458a583a52fc9b1322d262d35e0de0a2ea44ab0eed618667b1ead89e1c269d62334ba410eecdfb0310b780581a5af01493c
6
+ metadata.gz: e02161fb2a9700933e390ae80d4f1c24c5d0319a4b4654511c15f33e7b10d08eb5e1adaf3177517597003bf52ee848d5259335facbcae3f338f5461d761d8537
7
+ data.tar.gz: 747ff1abe077f5777d3be178b54374bd8dc0f5d6ae9a0047944ff44cd87a91aa8d052dd025f58da20f4c111ab903995883ee43dce05133dd7bc1df3e4fc37a98
@@ -15,6 +15,9 @@ module FileCrawler::Finder::Command
15
15
  if options[:maxdepth] && options[:maxdepth] > 0
16
16
  cmd = "find #{path} -maxdepth #{options[:maxdepth]} -type d"
17
17
  end
18
+ if options[:grep]
19
+ cmd += "| grep #{options[:grep]}"
20
+ end
18
21
 
19
22
  exec(cmd).each_line {|item|
20
23
  item.chomp!
@@ -1,3 +1,3 @@
1
1
  module FileCrawler
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: file_crawler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hirohisa Kawasaki