lita-catfacts 0.0.1 → 0.0.2

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: a3ae92ce680752ec70ccd3143734f2bd9d77d7a7
4
- data.tar.gz: 7f430673f6b7b8430d0099a44c54da9a45193dfb
3
+ metadata.gz: 622405151e75f6bb90fd6cdd7163d2c6cfdffba6
4
+ data.tar.gz: d27bae1cea4e19e9de8a048f9d2ecf58eb65c999
5
5
  SHA512:
6
- metadata.gz: f99a9b4b45edb42ecfa9cb3f1d713fc7eace4b9dd86a23d091d622a6992939d716be3a8523e221ffcbd114bf6e01cd1547a9d3cee8c7164dd71bc347137b535a
7
- data.tar.gz: 18e959b7addd9c54699a321e8d6be76b5bba14c03ea031c01c6e1cca1d0f59b9bcaa31adcc3ac7b1a2f65a9f1243c9b46377d81e6d725d2b5d789d391c8dd586
6
+ metadata.gz: 7086c41c1599f17de9b5773742f8183ae72e662e8536abc0f3a88ee92818288f00c73d3799bf434eb918bd8afe8bbede6f6e39205a78a8c4f385aa49d966a1f8
7
+ data.tar.gz: 685e4709624de924b710c990db1740b26c1384bbd7377d4d46b46a50f4dbcea135fde3f285ae5bda0eaecb6878be1b3c54456beafefdc28df279ac5ef0ff79e9
@@ -3,7 +3,7 @@ require "lita"
3
3
  module Lita
4
4
  module Handlers
5
5
  class Catfacts < Handler
6
- route %r{catfact(|s)}i, :catfacts, command: true, help: { "catfacts" => "Returns a random fact about cats." }
6
+ route %r{^catfact(|s)$}i, :catfacts, command: true, help: { "catfacts" => "Returns a random fact about cats." }
7
7
 
8
8
  def catfacts(response)
9
9
  resp = http.get('http://catfacts-api.appspot.com/api/facts?number=1')
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-catfacts"
3
- spec.version = "0.0.1"
3
+ spec.version = "0.0.2"
4
4
  spec.authors = ["Mitch Dempsey"]
5
5
  spec.email = ["mrdempsey@gmail.com"]
6
6
  spec.description = %q{A Lita handler that provides very interesting facts about cats}
@@ -3,4 +3,7 @@ require "spec_helper"
3
3
  describe Lita::Handlers::Catfacts, lita_handler: true do
4
4
  it { routes_command("catfacts").to(:catfacts) }
5
5
  it { routes_command("catfact").to(:catfacts) }
6
+
7
+
8
+ it { doesnt_route_command("basdasdcatfactsasdasd").to(:catfacts) }
6
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-catfacts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitch Dempsey