lita-onewheel-wolfram-alpha 0.1.0 → 0.1.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: 5dc26896fc54e84763529a3888cc5075695333f4
4
- data.tar.gz: 9d7b2cebfccf3eb2a0e277cc1ede433f3ec92f12
3
+ metadata.gz: 568fdb625d8249fa73b2a9c24c38a680b45223af
4
+ data.tar.gz: 5cade098191fea9db8621cbaaf0a70be1868aa24
5
5
  SHA512:
6
- metadata.gz: 42a6f190f6473c29b4c989647f79205ff42daa28e8df11b31e5e930786e8cce1a89aa7ebff68900a528820db275b565115ea78628adf999351739f8b6e8b03e9
7
- data.tar.gz: 490cfd4c1b57e4adaf79d45a7ac0b55e1f25bcbc6ad36bcc09e07aa8266b30f12c1551bfdae271859043b1ba466d73532eb7f11a4ba5d751944a1f7592dae201
6
+ metadata.gz: cafda9a1aad6b8d22d23729897ccf078f1e2b030849e03dc5d296dac577a2eeb8f9e9ae0b165437715696295d2e4df029220b4d0289a709d33e3804536fdde35
7
+ data.tar.gz: 01b0f7d4985d522c5625a28bdad365536abfc302145639dd00a6d0035a0fc2ceccadb13313dd919f2080f70b5e00ef6f312dde5a344e65eb50de43be747dd5d1
@@ -22,8 +22,10 @@ module Lita
22
22
 
23
23
  def parse_response(noko_doc, query)
24
24
  success_node = noko_doc.xpath('queryresult').attribute('success')
25
+ Lita.logger.debug "Success attr: #{success_node.to_s}"
25
26
  if success_node.to_s == 'true'
26
27
  pods = noko_doc.xpath('//pod')
28
+ Lita.logger.debug "Pod title: #{pods[1].attribute('title').to_s}"
27
29
  if pods[1].attribute('title').to_s == 'Plot'
28
30
  pods[1].xpath('//img')[1].attribute('src').to_s
29
31
  else
@@ -36,6 +38,7 @@ module Lita
36
38
  end
37
39
 
38
40
  def make_api_call(query)
41
+ Lita.logger.debug "Making api call for #{query}"
39
42
  uri = build_uri query
40
43
  response = RestClient.get(uri)
41
44
  Nokogiri::XML response.to_s
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-wolfram-alpha'
3
- spec.version = '0.1.0'
3
+ spec.version = '0.1.1'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = %q{Lita interface to Wolfram Alpha.}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-wolfram-alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps