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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8b3d88949840636feffab551d1a095f802f56013
4
- data.tar.gz: fdd561de613ebce1a002eebb83e6014ee752eb39
3
+ metadata.gz: 8c4bce58452325a2328cd4320a9c8cd96716494c
4
+ data.tar.gz: e77020a5a3271f2a2aee77176cbc01ed334be913
5
5
  SHA512:
6
- metadata.gz: 7d6eb23771b1ac292f3850c88cb154503f7d4a7d4a5345a858048f3fadf28baee0bec0939a2d7482d55c0b82514e6060c9e3b6e8e32b5bd05dff616038423fe4
7
- data.tar.gz: 2b94db16208aa209cbed33a3f0c5419c2562ae452cf3e1c4508be6a42449bed6d104d37bc8a12baea958301c6d2ad0585b5eb260cda44bd87fd851c105873c0e
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... Alternate: `give me bacon text`"
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 Images
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 WIDTH by HEIGHT" => "Gives bacon image based on WIDTH and HEIGHT"
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 "<http://baconmockup.com/#{width}/#{height}|#{width} by #{height} Bacon>"
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-bacon-ipsum"
3
- spec.version = "0.1.6"
3
+ spec.version = "0.1.7"
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.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Mikelson