lita-bacon-ipsum 0.1.8 → 0.1.9
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 -4
- 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: e282a947202d2c3e8c45350c3c9fa6476965827e
|
4
|
+
data.tar.gz: ba6439ccec9ea916b1978d88565c3237e27e0084
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81ec7ec1487c8da9a354aaf94aef505707a1cf05a6a4b4fdbf3d901e8a323ad7724e51497a1bd1f52c5bb7d4f0886557083b0c509a75ae3cb5211a5857bc96d0
|
7
|
+
data.tar.gz: e5a2af82eec62bd407ea3a396c375ec08abd9c10e3161a87ba6cadd117eb5bbf6f0af445e154ed78da95f8b8b88e8e988f13d6cdf3946333cbd8e4544fc1f010
|
@@ -20,14 +20,14 @@ module Lita
|
|
20
20
|
end
|
21
21
|
|
22
22
|
## Bacon Image
|
23
|
-
route(/give me bacon image (
|
24
|
-
"give me bacon image" => "Gives you bacon image.
|
23
|
+
route(/give me bacon image (?<width>\d+) by (?<height>\d+)/i, :bacon_ipsum_image, command: true, help: {
|
24
|
+
"give me bacon image WIDTH by HEIGHT" => "Gives you a bacon image."
|
25
25
|
})
|
26
26
|
|
27
27
|
def bacon_ipsum_image(response)
|
28
28
|
match = response.match_data
|
29
|
-
height = match[:height]
|
30
|
-
width = match[:width]
|
29
|
+
height = match[:height]
|
30
|
+
width = match[:width]
|
31
31
|
|
32
32
|
response.reply "#{width} by #{height} Bacon: http://baconmockup.com/#{width}/#{height}"
|
33
33
|
end
|
data/lita-bacon-ipsum.gemspec
CHANGED