test_bench-run 2.0.0.4 → 2.1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/test_bench/run/get_files.rb +2 -4
- data/lib/test_bench/run/run.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f86789849939cac7ca7d67385058748f8e44655b7099caa24ef3e6d18e31a2f3
|
4
|
+
data.tar.gz: 3db57846d485feb8aee9eac44335d60916b74eb9ae70bae7530450b61aa27b8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92c0cf6a5a3604038d2e5ab391b523196bb28e4273439b0e80da573cd9b290faa672cfcdcea932edf021b86f8005b8dd48504988fd2bb207f67d06c20247522e
|
7
|
+
data.tar.gz: 54e52ced3ea8aef27b7f5e881c25586d3df4da6a740910f7b4985b64e06d850cf05de731bc69de867e1088105df788101772385eccedcb70f2068ee404067d09
|
@@ -33,9 +33,7 @@ module TestBench
|
|
33
33
|
def call(path, *paths, &block)
|
34
34
|
paths = [path, *paths]
|
35
35
|
|
36
|
-
exclude_file_pattern = ::File.join('
|
37
|
-
|
38
|
-
fnmatch_flags = ::File::FNM_PATHNAME | ::File::FNM_EXTGLOB | ::File::FNM_SYSCASE
|
36
|
+
exclude_file_pattern = ::File.join('*/', self.exclude_file_pattern)
|
39
37
|
|
40
38
|
paths.each do |path|
|
41
39
|
if ::File.extname(path).empty?
|
@@ -47,7 +45,7 @@ module TestBench
|
|
47
45
|
assure_extant(path)
|
48
46
|
|
49
47
|
Dir.glob(pattern).each do |file|
|
50
|
-
if ::File.fnmatch?(exclude_file_pattern, file,
|
48
|
+
if ::File.fnmatch?(exclude_file_pattern, file, ::File::FNM_EXTGLOB)
|
51
49
|
next
|
52
50
|
end
|
53
51
|
|
data/lib/test_bench/run/run.rb
CHANGED
@@ -34,10 +34,10 @@ module TestBench
|
|
34
34
|
end
|
35
35
|
attr_writer :path_sequence
|
36
36
|
|
37
|
-
def self.build(
|
37
|
+
def self.build(exclude: nil)
|
38
38
|
instance = new
|
39
39
|
|
40
|
-
GetFiles.configure(instance, exclude_file_pattern:)
|
40
|
+
GetFiles.configure(instance, exclude_file_pattern: exclude)
|
41
41
|
|
42
42
|
Executor::Serial.configure(instance)
|
43
43
|
|
@@ -56,20 +56,20 @@ module TestBench
|
|
56
56
|
instance
|
57
57
|
end
|
58
58
|
|
59
|
-
def self.call(path, session_store: nil,
|
59
|
+
def self.call(path, session_store: nil, exclude: nil)
|
60
60
|
session_store ||= Session::Store.instance
|
61
61
|
|
62
|
-
instance = build(
|
62
|
+
instance = build(exclude:)
|
63
63
|
|
64
64
|
session_store.reset(instance.session)
|
65
65
|
|
66
66
|
instance.(path)
|
67
67
|
end
|
68
68
|
|
69
|
-
def self.configure(receiver,
|
69
|
+
def self.configure(receiver, exclude: nil, attr_name: nil)
|
70
70
|
attr_name ||= :run
|
71
71
|
|
72
|
-
instance = build(
|
72
|
+
instance = build(exclude:)
|
73
73
|
receiver.public_send(:"#{attr_name}=", instance)
|
74
74
|
end
|
75
75
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test_bench-run
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0
|
4
|
+
version: 2.1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Ladd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test_bench-fixture
|