work_together 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/work_together/pair_maker.rb +1 -4
- data/lib/work_together/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: 129e086d6f80ceb1902c6dd28558576e92e3c213
|
4
|
+
data.tar.gz: 71b547fbc9c511bde3b2ed0eab86f16058c6adb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ce734a2abf7a834cc1ee427d5ceb50c0ac5978fc732fec6df1f050290d65cde747aaa8cbdc79981fa0b41447b03d342e116bc54eaa37dbe0526c751efda57a1
|
7
|
+
data.tar.gz: 51b2f31dc35912d76fd9a987a85c4403a1f3d730d390a4cbd6e44d8eb1da59ddb4892e3b63e69490a6df7df640f063a5e4eb5e01a893f13b8167d82b423caeb1
|
@@ -50,16 +50,13 @@ class PairMaker
|
|
50
50
|
|
51
51
|
def make_groups(num_of_groups, students)
|
52
52
|
num_of_groups = students.length/num_of_groups.to_i
|
53
|
-
|
54
|
-
students.each_slice(num_of_groups).each do |slice|
|
55
|
-
# binding.pry
|
53
|
+
students.shuffle.each_slice(num_of_groups).each do |slice|
|
56
54
|
if slice.length == 1
|
57
55
|
Table.all.last.students << slice.first
|
58
56
|
else
|
59
57
|
Table.new(slice)
|
60
58
|
end
|
61
59
|
end
|
62
|
-
# binding.pry
|
63
60
|
end
|
64
61
|
|
65
62
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: work_together
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sophie DeBenedetto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|