dircrawl 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dircrawl.rb +3 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32190f9503af9d1449711ae6e3aab2d590751220
4
- data.tar.gz: 263a9c6a59f71f972fe444767c96a96bc86b89fb
3
+ metadata.gz: c18fd6e3bcf2c82a96a8d14a915f25f5c6259bfa
4
+ data.tar.gz: 38b9fc3619888f1304e779668c192cf63077725f
5
5
  SHA512:
6
- metadata.gz: da4fdd2b96a274ca16a42d9637ccd7cc27b39e1e923220c1ce1fc7b23a9136725dd0810235e24ccef473bbbc7c88f825f36c34200355de5a3ad1c61c11f240af
7
- data.tar.gz: 70ee956331fa08fd89cfc0595414063860114c19aca5855015c9bfb80774a237020f70849e66a49542c25cb2ad7d3e740bd09f0acca78f6b75c94dcdc00b8375
6
+ metadata.gz: 1a97e653c7c7b177c7ee598c3a7ce6232a58f5f7c104d7171c67a88531d146055d1a4a355e7ba3b435b62da3f3bb6f21c41d36967e14c69f3cf5afc3d0c538ea
7
+ data.tar.gz: e4778c1a25a72a74df0fd9cf2bbc2cfbaf12cd5c4b334be1b908f30b27ef83bea060141d7088769ed86a59c77fb2a46d49eeeec5135bebbd17ef08e7570e535b
data/lib/dircrawl.rb CHANGED
@@ -46,7 +46,9 @@ class DirCrawl
46
46
  create_write_dirs(dir.gsub(@path, @output_dir))
47
47
 
48
48
  # Process Extras
49
- extras = @extras_block.call(@output_dir+"/")
49
+ if @extras_block != ""
50
+ extras = @extras_block.call(@output_dir+"/")
51
+ end
50
52
 
51
53
  # Process Main
52
54
  processed = @process_block.call(dir+"/"+file, *args)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dircrawl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - M. C. McGrath
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-05-29 00:00:00.000000000 Z
12
+ date: 2016-08-09 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Run block on all files in dir
15
15
  email: shidash@shidash.com
@@ -18,7 +18,7 @@ extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
20
  - lib/dircrawl.rb
21
- homepage: https://github.com/TransparencyToolkit/dircrawl
21
+ homepage: https://github.com/TransparencyToolkit/DirCrawl
22
22
  licenses:
23
23
  - GPL
24
24
  metadata: {}