runyoufools 0.1.2 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e0f7807dfb5056bb10aedac7108259996f1fad0
4
- data.tar.gz: 77b7dea4248b310888f45cc1cab057474201c469
3
+ metadata.gz: c2e2f5859c9b626a84b93c618bf24ba9366845cb
4
+ data.tar.gz: c91bb9e7818c94a3796de9d49fe012b8deb2b116
5
5
  SHA512:
6
- metadata.gz: dc543a182695022b976f016b31eadda3fe257aafdc5b54370ea4c8f2f7c2d10d91c897284634b369d76306c18dba0b8ca6597e8f4bc712d4737d0fdaf97fab39
7
- data.tar.gz: 60468d2bbdc94ecff7248b03685403ad8899dced9f43c3f008acf9e2bc67258d48ef45d2058c16fd46097bab34b655715588904d0260381574d404a717880c7c
6
+ metadata.gz: cdf88eff06a9599e3161a034a4a44e0ab9177c95f6bd265adc50022e97357fdd79d006985d1d576009e7f28c9c9f58461287036c02b7784dea77b9b186391bd3
7
+ data.tar.gz: 661b0b03ac2434c74e793d420f7cf49aac779ebcebd752018d16f93d141a355a6785cfa5c5066f860291163c19b54b94f3b03056c7391bab2d88c7e958de471f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- runyoufools (0.1.2)
4
+ runyoufools (0.1.3)
5
5
  colorize
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -42,7 +42,8 @@ So, to run all tests in the `test/system` directory:
42
42
 
43
43
  Note that if you do not include the final `/`, RunYouFools might try to run a file called `test/system.log`.
44
44
 
45
- If left unspecified, the pattern used will be 'test/', i.e. all files int he `test` directory.
45
+ The pattern is *MANDATORY*.
46
+
46
47
 
47
48
  # What if I don't want my test files to be executable?
48
49
 
data/bin/runyoufools CHANGED
@@ -24,13 +24,13 @@ end
24
24
  end
25
25
 
26
26
  options = OpenStruct.new
27
- options.pattern = /test\//
27
+ options.pattern = nil
28
28
  options.command = nil
29
29
  options.retries = 1
30
30
 
31
31
  parser = OptionParser.new
32
32
  parser.banner = "RunYouFools! - a test runner"
33
- parser.on "--pattern=REGEX", "-p", "Pattern (regex) for looking for test files. Defaults to 'test'" do |pattern|
33
+ parser.on "--pattern=REGEX", "-p", "Pattern (regex) for looking for test files." do |pattern|
34
34
  options.pattern = Regexp.new pattern
35
35
  end
36
36
  parser.on "--command=COMMAND", "-c", "command to preceed test file if needed, e.g. if set to 'python', RunYouFools! will use 'python test.py' instead of just 'test.py'" do |command|
@@ -41,4 +41,8 @@ parser.on "--retries=NUMBER", '-r', 'number of retries (default: 1)' do |retries
41
41
  end
42
42
 
43
43
  parser.parse!
44
+ if options.pattern == nil
45
+ puts "ERROR: Must specify pattern. Please use --help"
46
+ exit false
47
+ end
44
48
  Runyoufools.main( options )
@@ -1,3 +1,3 @@
1
1
  module Runyoufools
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runyoufools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoav Kleinberger