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 +4 -4
- data/lib/lita/handlers/directions.rb +1 -2
- data/lita-directions.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 473f1cd0c55976f5e1126d337afc5eb1687c624c
|
4
|
+
data.tar.gz: a2cb67bf7ce7a920bfc14776f675fdd8f6e18c2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.")
|
data/lita-directions.gemspec
CHANGED
@@ -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:
|
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-
|
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.
|
110
|
+
rubygems_version: 2.4.3
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: See Description
|