rspec-parallel 2.14.8.4 → 2.14.8.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2E4MWM2ZmE0OGFhOTg1MDkzMzk5MjJjZWM3ZjIxYzZlMDM5M2FkMw==
4
+ ZTUyYTI0YmVkY2NlM2NhNzlhNTA4ZjFiYWQ5OWMyOTEyZWYxNzY5Mw==
5
5
  data.tar.gz: !binary |-
6
- YmQxNGYwYmE4ZTJlNDk3YjZhNmY1OWM0YzYwOTYwNzJiZDhiMTAwZg==
6
+ YTc2NTU5NDMwNDI1MGM2NjQ5ZTY3YmE2ZDEzOWVlNTdjYWM3YWZlMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjM1N2I0NjgxNWYyN2JmOTcwY2MxNmJlZTBhNjg5M2I3OGMwZDAzYmI2YTJm
10
- ZTMzMzMzOTU1YWFhMDQ0OGI5MDk0ZTBmOTE2MTdiYWJhYjE3MWIwNjA2ZGZl
11
- MzJmNTM5M2VjY2UwMWQwY2ZmNjUzODc4MjNmNDcxYzE1NjAyOWQ=
9
+ N2Q3MDdlNjVjYzA4OGE5YTI2Y2JiMzcxYTc0ODI5N2I5YTA4NGJjN2JjNjU5
10
+ YjNhNTU4MGUwMjM2YWU4YzJlNTcyNGM0Y2Q4MzY3OGI2MjFjMGMzMDdmMTdm
11
+ YTUyOGQwY2Y4MDIwZjNjOWZkMzhiODliZmU5MTk0OGM3ODBhMTc=
12
12
  data.tar.gz: !binary |-
13
- MmZhMGQ1NzNjN2VkM2Q0NjBhNGUzNWE5Y2JhMjQ3ZjIwM2EzYWNhNGFkNGMy
14
- YmUyN2YwOTQ3OTJlNDdhOTU2MjZlM2Q3Y2YyMmFjNzhlOWZjODAwMjYwNjQ4
15
- ODZhZjJlZDMxOTE1NWZmMzY4NWRjN2FmYjU0MjUwNWI2ZDhmNDM=
13
+ YzVhNmIyMDAwZWU2OWZhM2JjNzQxZWE1NDhhNWZhN2JkNjVjYTgwNzhmZjU5
14
+ YzljMzFjNjAzMDA0MGE5OWViODllY2RmNzNiYTEyNDUyMDk1ZDY5NWYxOGI5
15
+ NDgzMDNlZmE2Mjc5MjYzNDAxZGJmYWMzZjkxOGU1MjBjMjZlMDk=
@@ -7,18 +7,26 @@ module RSpec
7
7
  convert_deprecated_args(args)
8
8
 
9
9
  options = args.delete('--tty') ? {:tty => true} : {}
10
- begin
11
- parser(options).parse(args)
12
- delete_next = false
13
- args.delete_if do |arg|
14
- if delete_next
15
- true
16
- elsif arg == '--parallel-test'
17
- delete_next = true
18
- true
19
- end
10
+ delete_next = false
11
+ removed_parallel = false
12
+ parallel_value = nil
13
+ args.delete_if do |arg|
14
+ if delete_next
15
+ parallel_value = arg
16
+ true
17
+ elsif arg == '--parallel-test'
18
+ delete_next = true
19
+ removed_parallel = true
20
+ true
20
21
  end
22
+ end
23
+ begin
21
24
  parser(options, true).parse!(args)
25
+ if removed_parallel
26
+ args.push '--parallel-test'
27
+ args.push parallel_value
28
+ parser(options).parse!(args)
29
+ end
22
30
  rescue OptionParser::InvalidOption => e
23
31
  abort "#{e.message}\n\nPlease use --help for a listing of valid options"
24
32
  end
@@ -34,17 +42,8 @@ module RSpec
34
42
  parser.banner = "\n **** Parallel Testing ****\n\n"
35
43
 
36
44
  parser.on('--parallel-test NUMBER', Integer, 'Run the tests with the specified number of parallel threads (default: 1).') do |n|
37
- puts "found --parallel-test with value of: #{n}"
38
45
  options[:thread_maximum] = n || 1
39
46
  end
40
-
41
- parser.on('-v', '--version', 'Display the version.') do
42
- puts "rspec-parallel: #{RSpec::Parallel::Version::STRING}"
43
- end
44
-
45
- parser.on_tail('-h', '--help', "You're looking at it.") do
46
- puts parser
47
- end
48
47
  end
49
48
  end
50
49
  end
@@ -3,7 +3,7 @@ module RSpec
3
3
  # Version information for RSpec Parallel.
4
4
  module Version
5
5
  # Current version of RSpec Parallel, in semantic versioning format.
6
- STRING = '2.14.8.4'
6
+ STRING = '2.14.8.5'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-parallel
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.8.4
4
+ version: 2.14.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Holt Smith