dir_validator 0.14.1 → 0.14.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/CHANGELOG.rdoc +1 -1
  2. data/lib/dir_validator.rb +1 -0
  3. metadata +3 -3
data/CHANGELOG.rdoc CHANGED
@@ -14,6 +14,6 @@
14
14
 
15
15
  * Added bin/validate-dir and a general scripting functionality.
16
16
 
17
- == 0.14.1 (2012-08-03)
17
+ == 0.14.2 (2012-08-03)
18
18
 
19
19
  * Improved bin/validate-dir to allow passing directory on command line.
data/lib/dir_validator.rb CHANGED
@@ -42,6 +42,7 @@ module DirValidator
42
42
  # If the user did not implement the initialize_validator() method,
43
43
  # we will get the params from from args (the command line).
44
44
  init_params = initialize_validator()
45
+ init_params = [init_params] unless init_params.class == Array
45
46
  init_params = args unless init_params.first
46
47
  usage.call unless File.directory?(init_params.first.to_s)
47
48
  # Create validator and run the validation code supplied by user.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dir_validator
3
3
  version: !ruby/object:Gem::Version
4
- hash: 37
4
+ hash: 35
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 14
9
- - 1
10
- version: 0.14.1
9
+ - 2
10
+ version: 0.14.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Monty Hindman