learn_together 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/learn_together.rb +2 -6
- data/lib/learn_together/generator.rb +1 -1
- data/lib/learn_together/version.rb +1 -1
- 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: 61c22aaf47300c6a06074d18153f0eec8d67d83b
|
|
4
|
+
data.tar.gz: 67ef13137cb2bf9e727fe40f66694bf0d2c6c6f8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 775c7c4b7207f869cd6bd22797c00966c96fc39fd58d659fa85cbc3064446a51639150b9b9f5185642edf8b0fa07db0ebded3fa9333f243b90c2e00ab2a5d310
|
|
7
|
+
data.tar.gz: 74bc64f91437ae56e4960815f319631aaaf207928ebcffdee30b4d8b1b5a06b14b703cf4b4d1d6f27b60d858486463b7f017467cfc980eceb0de99b98ac57d00
|
data/lib/learn_together.rb
CHANGED
|
@@ -21,17 +21,13 @@ module LearnTogether
|
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
def validate_args
|
|
24
|
-
(has_valid_keys? && has_valid_values?
|
|
24
|
+
(has_valid_keys? && has_valid_values?) ? true : (raise GroupMakerArgError.new)
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
def has_valid_keys?
|
|
28
28
|
options.keys.all? {|key| VALID_ARGS[:valid_keys].include?(key)}
|
|
29
29
|
end
|
|
30
|
-
|
|
31
|
-
def has_valid_key_combination?
|
|
32
|
-
!(options.keys.include?("groups_of") && options.keys.include?("number_of_groups"))
|
|
33
|
-
end
|
|
34
|
-
|
|
30
|
+
|
|
35
31
|
def has_valid_values?
|
|
36
32
|
if options["sort_type"]
|
|
37
33
|
if VALID_ARGS[:sort_type].include?(options["sort_type"])
|