lita-onewheel-wolfram-alpha 0.4.1 → 0.5.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f001580fe468c06df639d03f231fdf9840f8d6f5bcc26cfb493c36126c19716
|
4
|
+
data.tar.gz: 7515f925e4506633ba51c4ebdf549314eff26559178dc922ca8460354705dfdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71c67aef057519823300d8ad8ee44d69e1ec452cc72cefba45fceaf84f210fb02d179c95b0914e523aee97c8718f595757f94591e769d386f8055ffeefc5d0fa
|
7
|
+
data.tar.gz: bd5a994eb150aaf491c2bb4fd892e036bbeebe657479713ef4b16d8abe08da72baadec2352899b6dae8835b84cfa0a7ced743a8ddbf86503a11cb386d369e4de
|
@@ -8,12 +8,6 @@ module Lita
|
|
8
8
|
config :api_uri
|
9
9
|
|
10
10
|
route(/^alpha\s*(.*)/i, :handle_wolfram_query, command: true)
|
11
|
-
route(/^quote\s*(.*)/i, :handle_wolfram_quote, command: true)
|
12
|
-
|
13
|
-
def handle_wolfram_quote(response)
|
14
|
-
response.matches[0][0] = "quote #{response.matches[0][0]}"
|
15
|
-
handle_wolfram_query(response)
|
16
|
-
end
|
17
11
|
|
18
12
|
def handle_wolfram_query(response)
|
19
13
|
unless config.app_id and config.api_uri
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-onewheel-wolfram-alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kreps
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|