adispec 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/adispec +11 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0a303b2b8563b4f35799e2be6492d662cc8f26c
|
4
|
+
data.tar.gz: ec756ce3e84f04eed17349bea278f571e503a458
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c7e3cc73fc1edaf6e591128488260d8987357cb98898180c08f23f4babe945776d83c846c7578ff39fc21a7e94b86f7292b423be541cb48de3714c8054faa94
|
7
|
+
data.tar.gz: f8e19715bf12f6155438edcc9d5fc74b675c187b8e36628ca518ade8bf0b6b1789e42a6824aa69df1e79c4c119e584cb413b4b39b6aeddee352d3880c9f0e379
|
data/bin/adispec
CHANGED
@@ -2,6 +2,17 @@
|
|
2
2
|
|
3
3
|
require 'adispec'
|
4
4
|
|
5
|
+
begin
|
6
|
+
raise "help" if (!ARGV.empty? && (ARGV[0] == "--help" || ARGV[0] == "-h" || ARGV[0] == "help" || ARGV.length > 1))
|
7
|
+
rescue
|
8
|
+
puts <<EOM
|
9
|
+
Usage:
|
10
|
+
adispec <PATH_TO_SPECS_DIRECTORY>
|
11
|
+
adispec (assumes that all specs are located in the specs directory)
|
12
|
+
EOM
|
13
|
+
exit 1
|
14
|
+
end
|
15
|
+
|
5
16
|
dirname = ARGV.empty? ? "specs" : ARGV[0]
|
6
17
|
raise "Could not find #{dirname}: No such file or directory" unless Dir.exist?(dirname)
|
7
18
|
|