maxitest 4.0.0 → 4.2.0

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
  SHA256:
3
- metadata.gz: 19a4f4a8a01b03c0aa608f9227301b76b9d7bcf69a6058ff0baa76ee6129ea0f
4
- data.tar.gz: 6024e876a65f11c5238a3b6b850dd2d1090fc72dff2f5dde0c67e57e2e490170
3
+ metadata.gz: c6c6f38d399b9123b56cdd2973c20a677c1b0c5b9b8ca0dd22e0c3d8b2eee213
4
+ data.tar.gz: 8d6c5571e17f8f8c071893b518cccb183102944e248f58a5deac2248cf551381
5
5
  SHA512:
6
- metadata.gz: fe48c81cb680e2dc7b23ee019d6bede89e33b627edf60fa1bdb2c5b7e2bb2802e866440047733245e7b2d9d405b0782d1dc1ac9ec16bfb091daba9368d8de07c
7
- data.tar.gz: 7543e1106374bb1c3f2b93a5ea3678672211b3585ca8a14086c1cfad1c6a38e8eb2e11389017ddc7dd4ec302ac081972f5bff22a139bb602bf3c4af0a5653d34
6
+ metadata.gz: ec3bc0009be05b310115846d83c099ec5d396a7e54bf855e5151de000000da0bdb7748d3efc491a694bbd8be6b717b1675dc61ec185ce2c8390bf9f84f758976
7
+ data.tar.gz: f99985662a234bf741339a43084fa1b3460eef651331351a2e236185ff9daac2d84371f5913cd89e5ff82d30e971557f8bf87535cf8dd9fccd4a6a075906811b
data/Readme.md CHANGED
@@ -44,7 +44,7 @@ Development
44
44
  - tested via rspec to avoid messing up our own tests by accident
45
45
  - fixes should go back to the original libraries
46
46
  - restrictive minitest dependency so nothing breaks by accident
47
- - ruby >=2.2
47
+ - ruby >=2.6
48
48
  - `rake bundle` to update all vendored gems
49
49
 
50
50
  Author
@@ -5,9 +5,9 @@
5
5
  module Maxitest
6
6
  module Testrbl
7
7
  PATTERNS = [
8
- /^(\s+)(should|test|it)\s+['"](.*)['"]\s+do\s*(?:#.*)?$/,
9
- /^(\s+)(context|describe)\s+['"]?(.*?)['"]?\s+do\s*(?:#.*)?$/,
10
- /^(\s+)def\s+(test_)([a-z_\d]+)\s*(?:#.*)?$/
8
+ /^(\s+)(should|test|it)(\s+|\s*\(\s*)['"](.*)['"](\s*\))?\s+do\s*(?:#.*)?$/,
9
+ /^(\s+)(context|describe)(\s+|\s*\(\s*)['"]?(.*?)['"]?(\s*\))?\s+do\s*(?:#.*)?$/,
10
+ /^(\s+)def(\s+)(test_)([a-z_\d]+)\s*(?:#.*)?$/
11
11
  ]
12
12
 
13
13
  OPTION_WITH_ARGUMENT = ["-I", "-r", "-n", "--name", "-e", "--exclude", "-s", "--seed"]
@@ -17,6 +17,7 @@ module Maxitest
17
17
  def run_from_cli(argv)
18
18
  files, options = partition_argv(argv)
19
19
  files.concat(changed_files) if options.delete("--changed")
20
+ files = ["test"] if files.empty?
20
21
  files = files.map { |f| localize(f) }
21
22
  load_options, options = partition_options(options)
22
23
 
@@ -157,7 +158,7 @@ module Maxitest
157
158
  def test_pattern_from_line(line)
158
159
  PATTERNS.each do |r|
159
160
  next unless line =~ r
160
- whitespace, method, test_name = $1, $2, $3
161
+ whitespace, method, test_name = $1, $2, $4
161
162
  return [whitespace, test_pattern_from_match(method, test_name)]
162
163
  end
163
164
  nil
@@ -1,3 +1,3 @@
1
1
  module Maxitest
2
- VERSION = "4.0.0"
2
+ VERSION = "4.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maxitest
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-03 00:00:00.000000000 Z
11
+ date: 2022-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 5.0.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: 5.15.0
22
+ version: 5.17.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 5.0.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: 5.15.0
32
+ version: 5.17.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rake
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -101,7 +101,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
101
  requirements:
102
102
  - - ">="
103
103
  - !ruby/object:Gem::Version
104
- version: 2.2.0
104
+ version: 2.6.0
105
105
  - - "<"
106
106
  - !ruby/object:Gem::Version
107
107
  version: '4'