lita-bacon-ipsum 0.1.7 → 0.1.8
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 +3 -2
- 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: 7b51bdb6ad300c9bbb66792eb6f204e536327773
|
4
|
+
data.tar.gz: 3d989a040bd41ca9233eb8c68d3b7c9dfce1a2f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c791c7c21644b6dadaa4d1c77ecfa9bf0c1bafd76d4b00dc5ae924293e8ec3ded37a3830be418687d1df1ffe3eae28995f6591e84d948d81dd400dadabc7ed9
|
7
|
+
data.tar.gz: 31147030e087493127710e0f0dfee63ffe5b4340ffd0144a653ee329dfd3e462812bcfd3dea95f8350bd85449e41ab0181ba6f8eed772d5a45dd5ecec0fe05fe
|
@@ -25,8 +25,9 @@ module Lita
|
|
25
25
|
})
|
26
26
|
|
27
27
|
def bacon_ipsum_image(response)
|
28
|
-
|
29
|
-
|
28
|
+
match = response.match_data
|
29
|
+
height = match[:height] ? !match[:height].empty? : 200
|
30
|
+
width = match[:width] ? !match[:width].empty? : 600
|
30
31
|
|
31
32
|
response.reply "#{width} by #{height} Bacon: http://baconmockup.com/#{width}/#{height}"
|
32
33
|
end
|
data/lita-bacon-ipsum.gemspec
CHANGED