spectr 0.0.2 → 0.0.3

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/bin/spectr +7 -3
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5f62a597760c188242299b631bba831a17fd71f
4
- data.tar.gz: 9763f0d986cb5d22be2dadc9b7c6c3ac4374f50a
3
+ metadata.gz: 78309d840b9b528e1cf3c8d5b82dd4546526667a
4
+ data.tar.gz: 9b791aba5f623af286b1918d840a82ab3c591f84
5
5
  SHA512:
6
- metadata.gz: 378acda08d7f6e368055958b4300d402d315efe767ec13329bd3774a2a6b172f2e963aa50a6692d6d81a999a64adb6af9e0b629089150cef9419cad4dfec0b00
7
- data.tar.gz: 00e4ab5b88b92d208fe709dc6df441d150eda0c0952a450428f331dee58e9060cde07200cde75f7a3c8dfed3e04e893a8004e0293507a7c3ff2e04ef7fd4b8f3
6
+ metadata.gz: 9e54f010b921e9f65f7f8365399522a6186240ff6f3644bd1efbd336431f85b7ba25bbd5e869959bd2c39b3399426b1b59f6d7a009edc2a5f0285d3a7e4c42e8
7
+ data.tar.gz: acff11d34568992c8cad57bed524198fd5afe49576c57e14bfa8ab53f3ad2137557d43efc4f6f88e5ee2d3fd4f9422dc561d43354029e28ef1ff3458e52b93a0
data/README.md CHANGED
@@ -43,5 +43,5 @@ Usage `spectr PATH`:
43
43
 
44
44
  ```
45
45
  spectr . # Will execute all tests in the current dir
46
- spectr spec/** # Will execute all tests within all subdirectorys
46
+ spectr examples/* # Will execute all tests within all subdirectorys
47
47
  ```
data/bin/spectr CHANGED
@@ -19,11 +19,15 @@ OptionParser.new do |parser|
19
19
 
20
20
  end.parse!
21
21
 
22
- if ARGV.length == 0
22
+ if ARGV.length.zero?
23
23
  puts "INFO: No path specified!"
24
24
  exit 1
25
25
  end
26
26
 
27
- Dir.glob(File.join(ARGV[0])).each do |spec|
28
- load spec
27
+ ARGV.each do |spec|
28
+ if spec.include?('_spectr.rb')
29
+ load spec
30
+ else
31
+ puts "INFO: Not a spectr file, skipping: #{spec}"
32
+ end
29
33
  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.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Niklas Hanft