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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 244bab1a966151ca9523a0a70180cd2fa8c91589
4
- data.tar.gz: 91470c51783d0844de075dd981df3a677a7393d5
3
+ metadata.gz: d4acfbeb3953506c9fc2a5a13ca7e80db158c2db
4
+ data.tar.gz: 5d2fbf8c3c016286d5beaa501d5f2b3bee92b2b0
5
5
  SHA512:
6
- metadata.gz: 58c987372c7a75dda1d934680027dbd326a42fbd59993067537ee1621b3b1c6ba15326e19700c9acd1e0b4ce1a97217f8f481949a21592174bc66b36d1e05379
7
- data.tar.gz: 842bc3bc728244a08593483987b98dc34ffd2f718006107e9cc9f2636689256e824c45e679b73b8254a3f13d1610a45ab23943c338ed29f4c97eb11ecdc209dd
6
+ metadata.gz: 6f6331c4c1d032c09d9bfb42c80c8811071e8bcfbaf8ea590a6958d9bbbe1d87ca4704c6478db4f8e4c3deb4695ce8ab6dabbdcb78798784daf4eca2b58b2003
7
+ data.tar.gz: f0a4440de777693c99bcc6b9f5cfb0435a90bdf8010ea23ac387a292345b5708aac4ee91e3fd1f70f7c8957262fd34e79a190e0e5b2927d26bdd7c18354447d8
@@ -3,10 +3,10 @@ require 'yelp'
3
3
  module Lita
4
4
  module Handlers
5
5
  class Yelpme < Handler
6
- route(/^(?:yelp|y)\s+([^@]+)./u, :yelp, command: true, help: {
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(.*)/u, :yelp_city, command: true, help: {
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-yelpme"
3
- spec.version = "0.1.1"
3
+ spec.version = "0.1.2"
4
4
  spec.authors = ["Ted"]
5
5
  spec.email = ["ted@stuckinacan.com"]
6
6
  spec.description = %q{A yelp handler for lita}
@@ -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 fhaskjlfhaskfhdaskjlgflaskjhdalkhflaksjhfs")
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.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-06-16 00:00:00.000000000 Z
11
+ date: 2014-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita