zetabot 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/Zeta/plugins/wolfram.rb +1 -1
- data/lib/Zeta/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1838ba19f62fcc77c319ca6633d0ae76b05fb1efd71c7f5d03af10797ca6f49a
|
4
|
+
data.tar.gz: d311f218e5db54133981d4c1b3232ddc080b08bd95bcdc302910d666fcb7287f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42b61604dc22e33f7b0b436009fcf97d6fe554e02b53738330ff9a312fb3a233877e10eb44f6b8828550c35dfa626494889dfeb98976b3f1e3f6d17372918ce7
|
7
|
+
data.tar.gz: 2cc08d48c751a1b06dc743684859d5c88452e79f5aab050316300441ef66ed2183df353dab5d4101fbe492708ff143c89a294b93d525951a0188fda05b1d0545
|
data/Gemfile.lock
CHANGED
data/lib/Zeta/plugins/wolfram.rb
CHANGED
@@ -19,7 +19,7 @@ module Plugins
|
|
19
19
|
def calculate(m, query)
|
20
20
|
# Rescue incase something goes wrong
|
21
21
|
begin
|
22
|
-
debug 'Query: ' +
|
22
|
+
debug 'Query: ' + CGI.escape(query)
|
23
23
|
url = "http://api.wolframalpha.com/v2/query?input=#{CGI.escape(query)}&appid=#{Config.secrets[:wolfram]}&primary=true&format=plaintext"
|
24
24
|
request = open(url).read
|
25
25
|
data = Crack::XML.parse(request)
|
data/lib/Zeta/version.rb
CHANGED