Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

applied workaround for the hpricot 'text' element 0.5+ issue

git-svn-id: http://svn.addictedtonew.com/public/gems/twitter@69 fe7eae16-9a24-0410-a59d-9e59979e88be
  • Loading branch information...
commit 4aa2fabaa62c60e9f11f29510db10b6ed406e510 1 parent c15b54b
jnunemaker authored
View
2  CHANGELOG
@@ -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)
View
2  lib/twitter/direct_message.rb
@@ -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
View
2  lib/twitter/status.rb
@@ -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
View
2  lib/twitter/version.rb
@@ -2,7 +2,7 @@ module Twitter #:nodoc:
module VERSION #:nodoc:
MAJOR = 0
MINOR = 1
- TINY = 0
+ TINY = 1
STRING = [MAJOR, MINOR, TINY].join('.')
end
View
4 website/index.html
@@ -19,6 +19,10 @@
</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
Please sign in to comment.
Something went wrong with that request. Please try again.