spectr 0.0.1 → 0.0.2
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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/bin/spectr +23 -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: d5f62a597760c188242299b631bba831a17fd71f
|
4
|
+
data.tar.gz: 9763f0d986cb5d22be2dadc9b7c6c3ac4374f50a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 378acda08d7f6e368055958b4300d402d315efe767ec13329bd3774a2a6b172f2e963aa50a6692d6d81a999a64adb6af9e0b629089150cef9419cad4dfec0b00
|
7
|
+
data.tar.gz: 00e4ab5b88b92d208fe709dc6df441d150eda0c0952a450428f331dee58e9060cde07200cde75f7a3c8dfed3e04e893a8004e0293507a7c3ff2e04ef7fd4b8f3
|
data/README.md
CHANGED
data/bin/spectr
CHANGED
@@ -1,6 +1,29 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
+
require 'optparse'
|
4
|
+
|
3
5
|
# Usage: spectr .
|
4
6
|
# Usage: spectr test/**
|
5
7
|
# Usage: spectr test/*.rb
|
6
8
|
|
9
|
+
# This will hold the options we parse
|
10
|
+
options = {}
|
11
|
+
|
12
|
+
OptionParser.new do |parser|
|
13
|
+
|
14
|
+
# Whenever we see -n or --name, with an
|
15
|
+
# argument, save the argument.
|
16
|
+
parser.on("-ff", "--fail-fast", "Enable fail fast") do |v|
|
17
|
+
options[:name] = v
|
18
|
+
end
|
19
|
+
|
20
|
+
end.parse!
|
21
|
+
|
22
|
+
if ARGV.length == 0
|
23
|
+
puts "INFO: No path specified!"
|
24
|
+
exit 1
|
25
|
+
end
|
26
|
+
|
27
|
+
Dir.glob(File.join(ARGV[0])).each do |spec|
|
28
|
+
load spec
|
29
|
+
end
|