spectr 0.0.3 → 0.0.4
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 +5 -3
- data/bin/spectr +3 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 432c43697a5350ca8e9b5916c684e821f8f79b00
|
4
|
+
data.tar.gz: 244db56b59867e86ebf91abaa4d0893d2ee40055
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fcfbff60eeb5d4817dcc322643894a118090e00990859905a7357af77c968fde774bf9b2d2fc4c30efdc0b0318422f7770b92513bc9526188180de0d7bb38cb
|
7
|
+
data.tar.gz: 229761453534d87722cb39757c7ed186a80d669d08e5d84cccc051e826b698b052f65cfa3aa7886b5efab9301640def7ed9f6f8cb8ba82366f4b40979706d977
|
data/README.md
CHANGED
@@ -3,6 +3,8 @@
|
|
3
3
|
## Micro unit test framework
|
4
4
|
Source: https://rubygems.org/gems/spectr
|
5
5
|
|
6
|
+
[](https://badge.fury.io/rb/spectr)
|
7
|
+
|
6
8
|
Installation:
|
7
9
|
|
8
10
|
Plain:
|
@@ -17,7 +19,8 @@ gem 'spectr' ~> '0.0.0'
|
|
17
19
|
```
|
18
20
|
|
19
21
|
|
20
|
-
Example spec:
|
22
|
+
Example spec: (examples/integer_spectr.rb)
|
23
|
+
Note: Spectr files must end with `_spectr.rb`
|
21
24
|
|
22
25
|
```
|
23
26
|
Spectr.new.test 'Test the builtin Integer class' do |test|
|
@@ -42,6 +45,5 @@ end
|
|
42
45
|
Usage `spectr PATH`:
|
43
46
|
|
44
47
|
```
|
45
|
-
spectr
|
46
|
-
spectr examples/* # Will execute all tests within all subdirectorys
|
48
|
+
spectr examples/* # Will execute all tests within examples
|
47
49
|
```
|
data/bin/spectr
CHANGED
@@ -10,17 +10,15 @@ require 'optparse'
|
|
10
10
|
options = {}
|
11
11
|
|
12
12
|
OptionParser.new do |parser|
|
13
|
-
|
14
13
|
# Whenever we see -n or --name, with an
|
15
14
|
# argument, save the argument.
|
16
|
-
parser.on(
|
15
|
+
parser.on('-ff', '--fail-fast', 'Enable fail fast') do |v|
|
17
16
|
options[:name] = v
|
18
17
|
end
|
19
|
-
|
20
18
|
end.parse!
|
21
19
|
|
22
20
|
if ARGV.length.zero?
|
23
|
-
puts
|
21
|
+
puts 'INFO: No path specified!'
|
24
22
|
exit 1
|
25
23
|
end
|
26
24
|
|
@@ -30,4 +28,4 @@ ARGV.each do |spec|
|
|
30
28
|
else
|
31
29
|
puts "INFO: Not a spectr file, skipping: #{spec}"
|
32
30
|
end
|
33
|
-
end
|
31
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spectr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Niklas Hanft
|
@@ -19,7 +19,7 @@ extra_rdoc_files: []
|
|
19
19
|
files:
|
20
20
|
- README.md
|
21
21
|
- bin/spectr
|
22
|
-
homepage:
|
22
|
+
homepage: https://github.com/ParadoXxGER/spectr
|
23
23
|
licenses:
|
24
24
|
- MIT
|
25
25
|
metadata: {}
|
@@ -31,7 +31,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
31
31
|
requirements:
|
32
32
|
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: 2.4.2
|
35
35
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - ">="
|