rspec-parts 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/lib/rspec/parts/file_list.rb +3 -3
- data/lib/rspec/parts/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd399207cec88cde9a2c80234976e1d29c97cb1c
|
4
|
+
data.tar.gz: 7b40d81cfb42efae8559d5cc73a2a424d131395c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9de1e24ec95e8b0a34f1094d44be0df38a3be37b4929012f7bab0785e70368093422c4f79bfcf3e1b539fb81e242b6efe9d309702a7b6b3f126ac6b8decab165
|
7
|
+
data.tar.gz: a9c4a92f96610481b5e0d573620d78d866eced4b7d378ffec2dddf5e2b15cf075b70459a67aa9da35c4798539ac5c7ea3d1bf8df521b0e606139ecb16e39725f
|
data/.travis.yml
CHANGED
@@ -33,13 +33,13 @@ end
|
|
33
33
|
module Rspec
|
34
34
|
module Parts
|
35
35
|
class FileList
|
36
|
-
def self.from(
|
36
|
+
def self.from(dir_glob: glob, num_of_groups: groups, which_part: part)
|
37
37
|
total_file_list = Rake::FileList.new
|
38
38
|
|
39
|
-
Dir.glob(
|
39
|
+
Dir.glob(dir_glob).each do |spec_directory|
|
40
40
|
directory_file_list = Rake::FileList.new
|
41
41
|
directory_file_list.add("#{spec_directory}/**/*_spec.rb")
|
42
|
-
subset_of_directory_file_list = directory_file_list.to_a.in_groups(
|
42
|
+
subset_of_directory_file_list = directory_file_list.to_a.in_groups(num_of_groups, false).at(which_part)
|
43
43
|
total_file_list.add(subset_of_directory_file_list)
|
44
44
|
end
|
45
45
|
|
data/lib/rspec/parts/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-parts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Hart
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|