lita-onewheel-wolfram-alpha 0.1.3 → 0.1.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c226bcae9d6fb388497087c4238a882ba3b6e54
|
4
|
+
data.tar.gz: 00e55be1cb94203e500f0db7049989acf346c2be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e9da72a82095b45183114e9515d31c897cb914bf65755dd0834fd5d98fac890a53d1e5ef423715bd186afa29dac9cd7d5bd589a2cdaea7840df29d8d6df4539
|
7
|
+
data.tar.gz: 99aed8bf0e2cd7fe652cbf9ca59628687f2391a9cd0930c2e7d70d578c5c2738593e532315a3c4e10827baa6626f410168f49ab2399d38d65024d871660486cd
|
@@ -23,10 +23,10 @@ module Lita
|
|
23
23
|
|
24
24
|
def parse_response(noko_doc, query)
|
25
25
|
success_node = noko_doc.xpath('queryresult').attribute('success')
|
26
|
-
Lita.logger.debug "Success attr: #{success_node.to_s}"
|
26
|
+
Lita.logger.debug "lita-onewheel-wolfram-alpha: Success attr: #{success_node.to_s}"
|
27
27
|
if success_node.to_s == 'true'
|
28
28
|
pods = noko_doc.xpath('//pod')
|
29
|
-
Lita.logger.debug "Pod title: #{pods[1].attribute('title').to_s}"
|
29
|
+
Lita.logger.debug "lita-onewheel-wolfram-alpha: Pod title: #{pods[1].attribute('title').to_s}"
|
30
30
|
if pods[1].attribute('title').to_s == 'Plot'
|
31
31
|
pods[1].xpath('//img')[1].attribute('src').to_s
|
32
32
|
else
|