lita-whatthecommit 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/handlers/whatthecommit.rb +5 -3
- data/lita-whatthecommit.gemspec +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: c57a2e7f46c360da8b61764259fade56ae4386a6
|
4
|
+
data.tar.gz: 53fe816dbaa6cc32644a7efb160aa4a031186878
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c15d3d49457ff13ee0dcda8a6647fd8b045542ac51b330fb03cdfc0560bf258f79d9d0d3c7f299ea87a553e80720f0a42ed728d791dabf135b295a8b4da0259
|
7
|
+
data.tar.gz: f3fa6bbfe8857137e483f4d851b55db293dadfafa7daa178fd5bce6e8ee8d6a861c8d3d5d2866d38a7c34d778a40e17e750e502d7f535e02fce3d2af9715c8d7
|
@@ -15,7 +15,7 @@ module Lita
|
|
15
15
|
def getCommit(response)
|
16
16
|
name = getName(response.user.name)
|
17
17
|
|
18
|
-
case rand(
|
18
|
+
case rand(6)
|
19
19
|
when 0
|
20
20
|
response.reply("How about this #{name}?")
|
21
21
|
when 1
|
@@ -25,12 +25,14 @@ module Lita
|
|
25
25
|
when 3
|
26
26
|
response.reply("The laziness you extrude to us all astounds me, #{name}")
|
27
27
|
when 4
|
28
|
-
response.reply("
|
28
|
+
response.reply("OK then...")
|
29
|
+
when 5
|
30
|
+
response.reply("OK, but this is the last time")
|
29
31
|
end
|
30
32
|
|
31
33
|
http_response = http.get("http://whatthecommit.com/index.txt")
|
32
34
|
commit = http_response.body
|
33
|
-
response.reply("
|
35
|
+
response.reply(">>>git commit -m '#{commit.gsub("\n","")}'")
|
34
36
|
|
35
37
|
if commit.include? "fuck" or commit.include? "crap" or commit.include? "shit"
|
36
38
|
arbitraryComment(response, 3)
|
data/lita-whatthecommit.gemspec
CHANGED