dohtest 0.1.48 → 0.1.49

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99b9f55f24183813e9fbc0faf9844fd5d3342496
4
- data.tar.gz: d929f1c9c5926755c3a1da82f34041b5a0bf903d
3
+ metadata.gz: 2553b75b56da7e2f61c1e915b141fc9fc1ab64d5
4
+ data.tar.gz: dd631e9f6f19c4bafa23d69dd19b25e73f852553
5
5
  SHA512:
6
- metadata.gz: dd26f8ab42987f9a9ac0b80e25335e5da58030cf795fc0fb089ea121d7ae490934b2bffadddbab6f67026735c127ddaf3ee9f2393d94f3f5409878fea294c16c
7
- data.tar.gz: fc65707383b299945e87a45624736006bcb03a052080262760a6ec4547998a809dee90bdce9952dd498f092b7324f8ed8a2a2ab7765fb7c7e8ce1ebb9a180f2a
6
+ metadata.gz: d2d9f188d411cd08fd1f143c66b8dd3a5c5795b0937362c86d449c45d8f1b93d1bc21dfed925fb2aea6fd4642dd65840c1abcc0b5c66107050a3c42ed2d61f7b
7
+ data.tar.gz: e738221c256c5924f3f23338dbf93657f203343a82aac04d95c54cab845f2e62de6ac42bdfccf764e9aa0986f8ab07886b21495789f8f2d2d04e498494225457
data/bin/dohtest CHANGED
@@ -22,7 +22,6 @@ paths = opts.varargs
22
22
 
23
23
  DohTest.config[:config_options] = opts.config_options
24
24
  DohTest.config[:seed] = opts.seed.to_i if opts.seed
25
- DohTest.configure(paths.first)
26
25
  DohTest.config[:grep] = opts.grep if opts.grep
27
26
  DohTest.config[:glob] = opts.glob if opts.glob
28
27
  DohTest.config[:no_color] = true if opts.no_color
@@ -31,5 +30,7 @@ DohTest.config[:extra_verbose] = true if opts.extra_verbose
31
30
  DohTest.config[:quiet] = true if opts.quiet
32
31
  DohTest.config[:max_errors] = opts.max_errors
33
32
  DohTest.config[:max_failures] = opts.max_failures
33
+ DohTest.config[:paths] = paths
34
+ DohTest.configure(paths.first)
34
35
 
35
- exit DohTest::MasterRunner.new(DohTest::StreamOutput.new, DohTest.config, paths).run
36
+ exit DohTest::MasterRunner.new(DohTest::StreamOutput.new, DohTest.config).run
@@ -57,8 +57,8 @@ def add_default_config_values
57
57
  end
58
58
 
59
59
  def configure(start_path)
60
- load_configuration_files(start_path)
61
60
  add_default_config_values
61
+ load_configuration_files(start_path)
62
62
  end
63
63
 
64
64
  end
@@ -4,8 +4,11 @@ require 'dohtest/require_paths'
4
4
  module DohTest
5
5
 
6
6
  class MasterRunner
7
- def initialize(output, config, paths)
8
- @output, @config, @paths = output, config, paths
7
+ def initialize(output, config, paths = nil)
8
+ @output = output
9
+ @config = config
10
+ # temporary for ease of transition
11
+ @config[:paths] ||= paths
9
12
  end
10
13
 
11
14
  def run
@@ -13,12 +16,12 @@ class MasterRunner
13
16
  @config[:pre_test_callback].each do |callback|
14
17
  callback.call(@output)
15
18
  end
16
- if @paths.empty?
19
+ if @config[:paths].empty?
17
20
  unless DohTest.require_paths(@config[:glob], ['.'])
18
21
  DohTest.require_paths(@config[:glob], [@config[:root]])
19
22
  end
20
23
  else
21
- DohTest.require_paths(@config[:glob], @paths)
24
+ DohTest.require_paths(@config[:glob], @config[:paths])
22
25
  end
23
26
 
24
27
  srand(@config[:seed])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dohtest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.48
4
+ version: 0.1.49
5
5
  platform: ruby
6
6
  authors:
7
7
  - Makani Mason
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-08-18 00:00:00.000000000 Z
12
+ date: 2017-12-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dohroot
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  version: '0'
86
86
  requirements: []
87
87
  rubyforge_project:
88
- rubygems_version: 2.6.8
88
+ rubygems_version: 2.6.13
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: minimalist unit test framework