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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1fccbe7fa3e03d12f0a68d31093eab3e8c27fe66
4
- data.tar.gz: 1b6fbd88c2d514b1864c72276fda4e13041f1178
3
+ metadata.gz: 129e086d6f80ceb1902c6dd28558576e92e3c213
4
+ data.tar.gz: 71b547fbc9c511bde3b2ed0eab86f16058c6adb7
5
5
  SHA512:
6
- metadata.gz: d3bfe5285318ed8f7434b87f866b129962763b99587d9fb0c53f39848155f694c4de6c242463a63035fc725db7efd7ca1bdf37440d153f9a69026690c589e5a6
7
- data.tar.gz: c05872f1546938626402ded167079dc9d927fdad1ae964d210e80292efb25ac03b48c3140c2bdee25874d912163f0f4e6b8b231da61e1428834e71facabc8b99
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
- # binding.pry
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
@@ -1,3 +1,3 @@
1
1
  module WorkTogether
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
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.3
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-14 00:00:00.000000000 Z
11
+ date: 2016-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler