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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/bin/spectr +23 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa928d3be56ceba81cc8bbd614ef97628bd9fb7a
4
- data.tar.gz: ccfe5db86ebfd7362ee3df93ab9286728a82febc
3
+ metadata.gz: d5f62a597760c188242299b631bba831a17fd71f
4
+ data.tar.gz: 9763f0d986cb5d22be2dadc9b7c6c3ac4374f50a
5
5
  SHA512:
6
- metadata.gz: 889e5bfb15f59d244e95063693893502cfe69cfc58991f2d0b8f874a1c8511d73b46bd6694ee587703778eba011bb3c7ed6a1102ac4b343994900919a3a06797
7
- data.tar.gz: ee8cf877e72a92589a12ce290bdad7d0421088f7c4392586e618eabb8ee2ad5f535e20d91c753a91a922c1a095f69cc1fc095f9c07538cc831a556cd821904d7
6
+ metadata.gz: 378acda08d7f6e368055958b4300d402d315efe767ec13329bd3774a2a6b172f2e963aa50a6692d6d81a999a64adb6af9e0b629089150cef9419cad4dfec0b00
7
+ data.tar.gz: 00e4ab5b88b92d208fe709dc6df441d150eda0c0952a450428f331dee58e9060cde07200cde75f7a3c8dfed3e04e893a8004e0293507a7c3ff2e04ef7fd4b8f3
data/README.md CHANGED
@@ -20,7 +20,7 @@ gem 'spectr' ~> '0.0.0'
20
20
  Example spec:
21
21
 
22
22
  ```
23
- Spectr.test.new 'Test the builtin Integer class' do |test|
23
+ Spectr.new.test 'Test the builtin Integer class' do |test|
24
24
 
25
25
  int = 1
26
26
 
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
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.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Niklas Hanft