codeforseattle/localwiki_client — pull request #5 by hcanzl (2013-02-19 20:35:10+00:00)
Title: Hcanzl localwikiclient br2

Brandon,

There is no spec file for this change. However, I used a test app to test initialization with and without user/apikey. I'll work on the spec. Also, note that I have enabled logging to standard out. I'd appreciate any feedback. Thank you.

wiki = LocalwikiClient.new 'ec2-54-234-151-52.compute-1.amazonaws.com', 'hcanzl', ''

puts wiki.site_name
puts wiki.count('user')
puts wiki.fetch("page", "dogs3")

wiki2 = LocalwikiClient.new 'ec2-54-234-151-52.compute-1.amazonaws.com'
puts wiki2.count('user')
puts wiki.fetch("page", "dogs3")