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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b51bdb6ad300c9bbb66792eb6f204e536327773
4
- data.tar.gz: 3d989a040bd41ca9233eb8c68d3b7c9dfce1a2f4
3
+ metadata.gz: e282a947202d2c3e8c45350c3c9fa6476965827e
4
+ data.tar.gz: ba6439ccec9ea916b1978d88565c3237e27e0084
5
5
  SHA512:
6
- metadata.gz: 9c791c7c21644b6dadaa4d1c77ecfa9bf0c1bafd76d4b00dc5ae924293e8ec3ded37a3830be418687d1df1ffe3eae28995f6591e84d948d81dd400dadabc7ed9
7
- data.tar.gz: 31147030e087493127710e0f0dfee63ffe5b4340ffd0144a653ee329dfd3e462812bcfd3dea95f8350bd85449e41ab0181ba6f8eed772d5a45dd5ecec0fe05fe
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 ((?<width>\d+) by (?<height>\d+))?/i, :bacon_ipsum_image, command: true, help: {
24
- "give me bacon image" => "Gives you bacon image. Alternate: `give me bacon image WIDTH and HEIGHT`"
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] ? !match[:height].empty? : 200
30
- width = match[:width] ? !match[:width].empty? : 600
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-bacon-ipsum"
3
- spec.version = "0.1.8"
3
+ spec.version = "0.1.9"
4
4
  spec.authors = ["Chris Mikelson"]
5
5
  spec.email = ["chrismikelson@gmail.com"]
6
6
  spec.description = "Get bacon ipsum text from Lita."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-bacon-ipsum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Mikelson