Skip to content
This repository
Browse code

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
2  CHANGELOG
... ... @@ -1,3 +1,5 @@
  1 +0.1.1 - May 20, 2007
  2 + * hpricot 0.5+ now supported; just a bug fix (Ryan Waldron is the man!)
1 3 0.1.0 - March 31, 2007
2 4 * added d method for creating direct messages (waiting for it to work as documented)
3 5 * added featured method for getting featured users statuses (waiting for it to work as documented)
2  lib/twitter/direct_message.rb
@@ -9,7 +9,7 @@ class << self
9 9 def new_from_xml(xml)
10 10 DirectMessage.new do |d|
11 11 d.id = (xml).at('id').innerHTML
12   - d.text = (xml).at('text').innerHTML
  12 + d.text = (xml).get_elements_by_tag_name('text').innerHTML
13 13 d.sender_id = (xml).at('sender_id').innerHTML
14 14 d.recipient_id = (xml).at('recipient_id').innerHTML
15 15 d.created_at = (xml).at('created_at').innerHTML
2  lib/twitter/status.rb
@@ -10,7 +10,7 @@ def new_from_xml(xml)
10 10 Status.new do |s|
11 11 s.id = (xml).at('id').innerHTML
12 12 s.created_at = (xml).at('created_at').innerHTML
13   - s.text = (xml).at('text').innerHTML
  13 + s.text = (xml).get_elements_by_tag_name('text').innerHTML
14 14 s.user = User.new_from_xml(xml) if (xml).at('user')
15 15 end
16 16 end
2  lib/twitter/version.rb
@@ -2,7 +2,7 @@ module Twitter #:nodoc:
2 2 module VERSION #:nodoc:
3 3 MAJOR = 0
4 4 MINOR = 1
5   - TINY = 0
  5 + TINY = 1
6 6
7 7 STRING = [MAJOR, MINOR, TINY].join('.')
8 8 end
4 website/index.html
@@ -19,6 +19,10 @@
19 19 </div>
20 20
21 21 <div id="content">
  22 + <h2>Install</h2>
  23 + <pre><code>$ sudo gem install twitter -y</code></pre>
  24 + <p><small>note: the twitter gem now works with hpricot 0.5+</small></p>
  25 +
22 26 <h2>Command Line</h2>
23 27 <p>The command line gives you several options for user twitter. Simply type <code>twitter</code> to see the options.</p>
24 28 <p><pre><code># to post an update to twitter

0 comments on commit 4aa2fab

Please sign in to comment.
Something went wrong with that request. Please try again.