lita-bacon-ipsum 0.1.6 → 0.1.7
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/bacon_ipsum.rb +4 -6
- data/lita-bacon-ipsum.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: 8c4bce58452325a2328cd4320a9c8cd96716494c
|
4
|
+
data.tar.gz: e77020a5a3271f2a2aee77176cbc01ed334be913
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f336c5c5d087a171bb91205c9edae8ea6b265be29d5b6f9ac7b805b50a572f3da6670998cfc32182acc5078d12ae05198a531d09b0361dc008f848139a289ed
|
7
|
+
data.tar.gz: 257c8ec751496048dd40b816079612941f09a8deff7f4ab62601d2fb8c1fb710eb3f531d85d98a17a5dc7e80d1184262a44384fb83881672f78549a708be7a11
|
@@ -4,7 +4,7 @@ module Lita
|
|
4
4
|
|
5
5
|
## Bacon Text
|
6
6
|
route(/give me bacon text/i, :bacon_ipsum_text, command: true, help: {
|
7
|
-
"give me bacon" => "Bacon ipsum dolor amet...
|
7
|
+
"give me bacon text" => "Gives you: Bacon ipsum dolor amet..."
|
8
8
|
})
|
9
9
|
|
10
10
|
def bacon_ipsum_text(response)
|
@@ -19,18 +19,16 @@ module Lita
|
|
19
19
|
response.reply "Sorry, I was unable to retreive bacon for you."
|
20
20
|
end
|
21
21
|
|
22
|
-
## Bacon
|
22
|
+
## Bacon Image
|
23
23
|
route(/give me bacon image ((?<width>\d+) by (?<height>\d+))?/i, :bacon_ipsum_image, command: true, help: {
|
24
|
-
"give me bacon image
|
24
|
+
"give me bacon image" => "Gives you bacon image. Alternate: `give me bacon image WIDTH and HEIGHT`"
|
25
25
|
})
|
26
26
|
|
27
27
|
def bacon_ipsum_image(response)
|
28
28
|
height = response.match_data[:height] ||= 200
|
29
29
|
width = response.match_data[:width] ||= 600
|
30
30
|
|
31
|
-
response.reply "
|
32
|
-
rescue
|
33
|
-
response.reply "Sorry, I was unable to retreive bacon for you."
|
31
|
+
response.reply "#{width} by #{height} Bacon: http://baconmockup.com/#{width}/#{height}"
|
34
32
|
end
|
35
33
|
|
36
34
|
end
|
data/lita-bacon-ipsum.gemspec
CHANGED