work_together 0.7.0 → 0.8.0
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/version.rb +1 -1
- data/lib/work_together.rb +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b1512ec1282ec614f31bbde8b6eef5a8917face
|
4
|
+
data.tar.gz: b34de9c464b47798336fa99b7182ae7901c4a402
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a35724ebd418ba90ee1182592de73e26b39fce6aa72605709f2bcfe2519bfb1eef29cdfc8bd612dedee05944ae1b74099ce4c3edabba289cfbadb43710847fb
|
7
|
+
data.tar.gz: dc3f0fed97e40d39f519c627332f467dc13e5e761ac5d06fca06945254a6137356920b628fecdf97b656a2d754bccce447380e43bb4fa9cc35fc4c4cd905dfc7
|
data/lib/work_together.rb
CHANGED
@@ -33,12 +33,13 @@ module WorkTogether
|
|
33
33
|
get_and_parse_csv
|
34
34
|
end
|
35
35
|
|
36
|
-
def make_groups(options, quiet)
|
36
|
+
def make_groups(options, quiet, students=nil)
|
37
|
+
students ||= Student.all
|
37
38
|
flag = options[1][2..-1]
|
38
39
|
if options.include?("pairs")
|
39
|
-
pair_maker.public_send("make_pairs_#{flag}",
|
40
|
+
pair_maker.public_send("make_pairs_#{flag}", students)
|
40
41
|
elsif options.include?("tables")
|
41
|
-
pair_maker.public_send("make_tables_#{flag}",
|
42
|
+
pair_maker.public_send("make_tables_#{flag}", students)
|
42
43
|
elsif options.include?("--help")
|
43
44
|
help
|
44
45
|
else
|