Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update lib/wikipedia/page.rb #1

Merged
merged 1 commit into from

3 participants

@rhettbarber

Content function was only showing content type 'text/x-wiki'
This fix shows the wiki-markup content.

@rhettbarber rhettbarber Update lib/wikipedia/page.rb
Content function was only showing content type 'text/x-wiki'
39b8259
@kenpratt kenpratt merged commit a7b02f2 into kenpratt:master
@kenpratt
Owner

Thanks!

@nishantmodak

I am still seeing 'text/x-wiki' when I invoke content. Also, sanitized_content isnt giving any output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 15, 2012
  1. @rhettbarber

    Update lib/wikipedia/page.rb

    rhettbarber authored
    Content function was only showing content type 'text/x-wiki'
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/wikipedia/page.rb
View
2  lib/wikipedia/page.rb
@@ -11,7 +11,7 @@ def page
end
def content
- page['revisions'].first.values.first if page['revisions']
+ page['revisions'].first.fetch('*') if page['revisions']
end
def sanitized_content
Something went wrong with that request. Please try again.