lita-directions 1.0 → 1.0.1

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: f560d509022a9267fb9ad2f1cc0a6d64f228baab
4
- data.tar.gz: 64d8e90ee0f91147f59effd62e88eb6292577385
3
+ metadata.gz: 473f1cd0c55976f5e1126d337afc5eb1687c624c
4
+ data.tar.gz: a2cb67bf7ce7a920bfc14776f675fdd8f6e18c2c
5
5
  SHA512:
6
- metadata.gz: bdae0b3b2f3effb3037815b1d85046cc928f989eaba0d5cb0a7fd7a00a7593f91140e2bd38bf3002bedd35338783a2e981647645ed50b3c339a030f14d1aec37
7
- data.tar.gz: f2acb89e69c037b04bb8e584e9329e9b43d7e0b870bb21d52e3b34d05cb261a917587a8bfedef2bb4d53881fe2a45698bfd89834f9ef46133039466a84fad752
6
+ metadata.gz: 8323f92c5b95b0ac255697c8f1a2a9b261b0ec4dc0c97415c7758f986f82446c2d56c40fe2bb4cf8213a6ae4c6a7f9b966d2105aea8bf931a5057c3d0f5fdeae
7
+ data.tar.gz: 73d02f6faa622fb54384319c74ce9e694fb30090a59df6b8977103fc27e26cf1f900036aa58d45f34149743b70a102463941156fc08c360703cc3d3b31201425
@@ -5,8 +5,7 @@ module Lita
5
5
 
6
6
  config :google_api_key
7
7
 
8
- route(/^(?:how\s+do\s+I\s+you\s+get\s+far\s+is\s+it\s+from\s+)?(.+)\s+to(.+)/i, :get_directions, command: true)
9
-
8
+ route(/^(?:(?:how|do|I|you|get|far|is|it|from)\s+)*(.+)\s+to\s+(.+)/i, :get_directions, command: true)
10
9
  def get_directions(response)
11
10
  if Lita.config.handlers.directions.google_api_key.nil?
12
11
  response.reply("Please get an API key from https://console.developers.google.com, and follow the instructions on https://github.com/cashman04/lita-directions to configure.")
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-directions"
3
- spec.version = "1.0"
3
+ spec.version = "1.0.1"
4
4
  spec.authors = ["Dan Cash"]
5
5
  spec.email = ["dancash04@gmail.com"]
6
6
  spec.description = %q{A Lita handler to get time/distance calculations and provide directions from google maps}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-directions
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Cash
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-28 00:00:00.000000000 Z
11
+ date: 2015-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  version: '0'
108
108
  requirements: []
109
109
  rubyforge_project:
110
- rubygems_version: 2.4.5
110
+ rubygems_version: 2.4.3
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: See Description