Skip to content

Commit

Permalink
applied workaround for the hpricot 'text' element 0.5+ issue
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.addictedtonew.com/public/gems/twitter@69 fe7eae16-9a24-0410-a59d-9e59979e88be
  • Loading branch information
jnunemaker committed May 20, 2007
1 parent c15b54b commit 4aa2fab
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
0.1.1 - May 20, 2007
* hpricot 0.5+ now supported; just a bug fix (Ryan Waldron is the man!)
0.1.0 - March 31, 2007
* added d method for creating direct messages (waiting for it to work as documented)
* added featured method for getting featured users statuses (waiting for it to work as documented)
Expand Down
2 changes: 1 addition & 1 deletion lib/twitter/direct_message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class << self
def new_from_xml(xml)
DirectMessage.new do |d|
d.id = (xml).at('id').innerHTML
d.text = (xml).at('text').innerHTML
d.text = (xml).get_elements_by_tag_name('text').innerHTML
d.sender_id = (xml).at('sender_id').innerHTML
d.recipient_id = (xml).at('recipient_id').innerHTML
d.created_at = (xml).at('created_at').innerHTML
Expand Down
2 changes: 1 addition & 1 deletion lib/twitter/status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def new_from_xml(xml)
Status.new do |s|
s.id = (xml).at('id').innerHTML
s.created_at = (xml).at('created_at').innerHTML
s.text = (xml).at('text').innerHTML
s.text = (xml).get_elements_by_tag_name('text').innerHTML
s.user = User.new_from_xml(xml) if (xml).at('user')
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/twitter/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Twitter #:nodoc:
module VERSION #:nodoc:
MAJOR = 0
MINOR = 1
TINY = 0
TINY = 1

STRING = [MAJOR, MINOR, TINY].join('.')
end
Expand Down
4 changes: 4 additions & 0 deletions website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ <h1>Twitter</h1>
</div>

<div id="content">
<h2>Install</h2>
<pre><code>$ sudo gem install twitter -y</code></pre>
<p><small>note: the twitter gem now works with hpricot 0.5+</small></p>

<h2>Command Line</h2>
<p>The command line gives you several options for user twitter. Simply type <code>twitter</code> to see the options.</p>
<p><pre><code># to post an update to twitter
Expand Down

0 comments on commit 4aa2fab

Please sign in to comment.