lita-yelpme 0.1.1 → 0.1.2
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/yelpme.rb +2 -2
- data/lita-yelpme.gemspec +1 -1
- data/spec/lita/handlers/yelpme_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4acfbeb3953506c9fc2a5a13ca7e80db158c2db
|
4
|
+
data.tar.gz: 5d2fbf8c3c016286d5beaa501d5f2b3bee92b2b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f6331c4c1d032c09d9bfb42c80c8811071e8bcfbaf8ea590a6958d9bbbe1d87ca4704c6478db4f8e4c3deb4695ce8ab6dabbdcb78798784daf4eca2b58b2003
|
7
|
+
data.tar.gz: f0a4440de777693c99bcc6b9f5cfb0435a90bdf8010ea23ac387a292345b5708aac4ee91e3fd1f70f7c8957262fd34e79a190e0e5b2927d26bdd7c18354447d8
|
data/lib/lita/handlers/yelpme.rb
CHANGED
@@ -3,10 +3,10 @@ require 'yelp'
|
|
3
3
|
module Lita
|
4
4
|
module Handlers
|
5
5
|
class Yelpme < Handler
|
6
|
-
route(/^(?:yelp|y)\s+([^@]+)
|
6
|
+
route(/^(?:yelp|y)\s+([^@]+)$/iu, :yelp, command: true, help: {
|
7
7
|
"yelp QUERY" => "Return the first Yelp result with information about the first business found"
|
8
8
|
})
|
9
|
-
route(/^(?:yelp|y)\s+(.+)@\s(.*)/
|
9
|
+
route(/^(?:yelp|y)\s+(.+)@\s+(.*)/iu, :yelp_city, command: true, help: {
|
10
10
|
"yelp QUERY @ CITY" => "Return the first Yelp result with information about the first business found"
|
11
11
|
})
|
12
12
|
def self.default_config(handler_config)
|
data/lita-yelpme.gemspec
CHANGED
@@ -75,7 +75,7 @@ describe Lita::Handlers::Yelpme, lita_handler: true do
|
|
75
75
|
}
|
76
76
|
it "returns an error" do
|
77
77
|
send_command("yelp fhaskjlfhaskfhdaskjlgflaskjhdalkhflaksjhfsa")
|
78
|
-
expect(replies.last).to eq("Cannot find any businesses in San Francisco matching
|
78
|
+
expect(replies.last).to eq("Cannot find any businesses in San Francisco matching fhaskjlfhaskfhdaskjlgflaskjhdalkhflaksjhfsa")
|
79
79
|
end
|
80
80
|
end
|
81
81
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-yelpme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ted
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|