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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4395d6f7fd17e9876bdfe98481a9bbecc7d2f323
4
- data.tar.gz: 5dd2911a1f6aa3dea4ea2bac5950ae67f6d53043
3
+ metadata.gz: 0b1512ec1282ec614f31bbde8b6eef5a8917face
4
+ data.tar.gz: b34de9c464b47798336fa99b7182ae7901c4a402
5
5
  SHA512:
6
- metadata.gz: 941027bf9b07dd5c4d0a53d44b55159691d1e2b8cce6abb2f4ed91f2c5a47fa52235724a6f2d0767d030e1ff67a8b2d2149eaf2b8705b716b8dfd5bb3636f33d
7
- data.tar.gz: 9154b8d6d39d82a4050f2627152f1fd5b50412e4b68cb021aa915904b820e9756a6a92d52cec9234473ce805bba703826afa8dc95a6432108d64b11354b5212f
6
+ metadata.gz: 6a35724ebd418ba90ee1182592de73e26b39fce6aa72605709f2bcfe2519bfb1eef29cdfc8bd612dedee05944ae1b74099ce4c3edabba289cfbadb43710847fb
7
+ data.tar.gz: dc3f0fed97e40d39f519c627332f467dc13e5e761ac5d06fca06945254a6137356920b628fecdf97b656a2d754bccce447380e43bb4fa9cc35fc4c4cd905dfc7
@@ -1,3 +1,3 @@
1
1
  module WorkTogether
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  end
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}", Student.all)
40
+ pair_maker.public_send("make_pairs_#{flag}", students)
40
41
  elsif options.include?("tables")
41
- pair_maker.public_send("make_tables_#{flag}", Student.all)
42
+ pair_maker.public_send("make_tables_#{flag}", students)
42
43
  elsif options.include?("--help")
43
44
  help
44
45
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: work_together
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sophie DeBenedetto