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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c4bce58452325a2328cd4320a9c8cd96716494c
4
- data.tar.gz: e77020a5a3271f2a2aee77176cbc01ed334be913
3
+ metadata.gz: 7b51bdb6ad300c9bbb66792eb6f204e536327773
4
+ data.tar.gz: 3d989a040bd41ca9233eb8c68d3b7c9dfce1a2f4
5
5
  SHA512:
6
- metadata.gz: 6f336c5c5d087a171bb91205c9edae8ea6b265be29d5b6f9ac7b805b50a572f3da6670998cfc32182acc5078d12ae05198a531d09b0361dc008f848139a289ed
7
- data.tar.gz: 257c8ec751496048dd40b816079612941f09a8deff7f4ab62601d2fb8c1fb710eb3f531d85d98a17a5dc7e80d1184262a44384fb83881672f78549a708be7a11
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
- height = response.match_data[:height] ||= 200
29
- width = response.match_data[:width] ||= 600
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-bacon-ipsum"
3
- spec.version = "0.1.7"
3
+ spec.version = "0.1.8"
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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Mikelson