jnunemaker-twitter 0.4.2 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
data/History CHANGED
@@ -1,3 +1,7 @@
1
+ 0.4.3 - February 21, 2009
2
+ * 1 minor enhancement
3
+ * verify_credentials now returns a Twitter::User rather than an hpricot doc
4
+
1
5
  0.4.2 - February 10, 2009
2
6
  * 1 minor enhancement
3
7
  * Adding the Social Graph API methods (Josh Owens)
data/Manifest CHANGED
@@ -63,7 +63,6 @@ spec/spec.opts
63
63
  spec/spec_helper.rb
64
64
  spec/status_spec.rb
65
65
  spec/user_spec.rb
66
- twitter.gemspec
67
66
  website/css/common.css
68
67
  website/images/terminal_output.png
69
68
  website/index.html
data/lib/twitter/base.rb CHANGED
@@ -183,7 +183,7 @@ module Twitter
183
183
  # Verifies the credentials for the auth user.
184
184
  # raises Twitter::CantConnect on failure.
185
185
  def verify_credentials
186
- request('account/verify_credentials.xml', :auth => true)
186
+ users(request('account/verify_credentials.xml', :auth => true)).first
187
187
  end
188
188
 
189
189
  private
data/lib/twitter/cli.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  require 'rubygems'
2
2
 
3
- gem 'main', '>= 2.8.2'
4
- gem 'highline', '>= 1.4.0'
5
- gem 'activerecord', '= 2.2.2'
6
- gem 'sqlite3-ruby', '>= 1.2.1'
3
+ gem 'main'
4
+ gem 'highline'
5
+ gem 'activerecord'
6
+ gem 'sqlite3-ruby'
7
7
 
8
8
  require 'main'
9
9
  require 'highline/import'
data/lib/twitter/user.rb CHANGED
@@ -5,7 +5,7 @@ module Twitter
5
5
  attributes :id, :name, :screen_name, :status, :location, :description, :url,
6
6
  :profile_image_url, :profile_background_color, :profile_text_color, :profile_link_color,
7
7
  :profile_sidebar_fill_color, :profile_sidebar_border_color, :friends_count, :followers_count,
8
- :favourites_count, :statuses_count, :utc_offset , :protected
8
+ :favourites_count, :statuses_count, :utc_offset , :protected, :created_at
9
9
 
10
10
  # Creates a new user from a piece of xml
11
11
  def self.new_from_xml(xml)
@@ -16,9 +16,10 @@ module Twitter
16
16
  u.location = (xml).at('location').innerHTML
17
17
  u.description = (xml).at('description').innerHTML
18
18
  u.url = (xml).at('url').innerHTML
19
- u.profile_image_url = (xml).at('profile_image_url').innerHTML
19
+ u.profile_image_url = (xml).at('profile_image_url').innerHTML
20
20
 
21
21
  # optional, not always present
22
+ u.created_at = (xml).at('created_at').innerHTML if (xml).at('created_at')
22
23
  u.profile_background_color = (xml).at('profile_background_color').innerHTML if (xml).at('profile_background_color')
23
24
  u.profile_text_color = (xml).at('profile_text_color').innerHTML if (xml).at('profile_text_color')
24
25
  u.profile_link_color = (xml).at('profile_link_color').innerHTML if (xml).at('profile_link_color')
@@ -1,3 +1,3 @@
1
1
  module Twitter #:nodoc:
2
- Version = '0.4.2'
2
+ Version = '0.4.4'
3
3
  end
data/twitter.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{twitter}
5
- s.version = "0.4.2"
5
+ s.version = "0.4.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["John Nunemaker"]
9
- s.date = %q{2009-02-11}
9
+ s.date = %q{2009-03-28}
10
10
  s.default_executable = %q{twitter}
11
11
  s.description = %q{a command line interface for twitter, also a library which wraps the twitter api}
12
12
  s.email = %q{nunemaker@gmail.com}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jnunemaker-twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nunemaker
@@ -9,11 +9,12 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-11 00:00:00 -08:00
12
+ date: 2009-03-28 00:00:00 -07:00
13
13
  default_executable: twitter
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hpricot
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
@@ -23,6 +24,7 @@ dependencies:
23
24
  version:
24
25
  - !ruby/object:Gem::Dependency
25
26
  name: activesupport
27
+ type: :runtime
26
28
  version_requirement:
27
29
  version_requirements: !ruby/object:Gem::Requirement
28
30
  requirements:
@@ -32,6 +34,7 @@ dependencies:
32
34
  version:
33
35
  - !ruby/object:Gem::Dependency
34
36
  name: httparty
37
+ type: :runtime
35
38
  version_requirement:
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
@@ -41,6 +44,7 @@ dependencies:
41
44
  version:
42
45
  - !ruby/object:Gem::Dependency
43
46
  name: echoe
47
+ type: :development
44
48
  version_requirement:
45
49
  version_requirements: !ruby/object:Gem::Requirement
46
50
  requirements: