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.
- data/CHANGELOG.rdoc +1 -1
- data/lib/dir_validator.rb +1 -0
- metadata +3 -3
data/CHANGELOG.rdoc
CHANGED
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:
|
4
|
+
hash: 35
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 14
|
9
|
-
-
|
10
|
-
version: 0.14.
|
9
|
+
- 2
|
10
|
+
version: 0.14.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Monty Hindman
|