commit-meat 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +3 -0
- data/lib/commit-meat/tester.rb +4 -7
- data/lib/commit-meat/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG.md
CHANGED
data/lib/commit-meat/tester.rb
CHANGED
@@ -2,8 +2,6 @@ module CommitMeat
|
|
2
2
|
|
3
3
|
class Tester
|
4
4
|
|
5
|
-
extend Tests
|
6
|
-
|
7
5
|
attr_reader :failure_messages
|
8
6
|
|
9
7
|
def initialize(message)
|
@@ -21,17 +19,15 @@ module CommitMeat
|
|
21
19
|
end
|
22
20
|
|
23
21
|
def check_if(bad_commit_test, failure_message)
|
24
|
-
|
22
|
+
if send(bad_commit_test)
|
25
23
|
@failure_messages << failure_message
|
26
24
|
end
|
27
25
|
end
|
28
26
|
|
29
|
-
|
30
|
-
|
31
|
-
module Tests
|
27
|
+
## tests
|
32
28
|
|
33
29
|
def has_only_one_word
|
34
|
-
@message.split.size
|
30
|
+
@message.split.size == 1
|
35
31
|
end
|
36
32
|
|
37
33
|
def includes_bad_words
|
@@ -46,4 +42,5 @@ module CommitMeat
|
|
46
42
|
end
|
47
43
|
|
48
44
|
end
|
45
|
+
|
49
46
|
end
|
data/lib/commit-meat/version.rb
CHANGED