twitter2jabber 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to twitter2jabber version 0.0.5
5
+ This documentation refers to twitter2jabber version 0.0.6
6
6
 
7
7
 
8
8
  == DESCRIPTION
data/TODO CHANGED
@@ -1,3 +1,4 @@
1
+ - in reply to
1
2
  - persistent cache! (friends_timeline: since/since_id?)
2
3
  - OAuth (register: http://twitter.com/oauth_clients/new)
3
4
  - better interrupt handling (in loop mode)
@@ -176,8 +176,12 @@ class Twitter2Jabber
176
176
  twitter.friends_timeline.sort_by { |tweet|
177
177
  tweet.created_at = Time.parse(tweet.created_at)
178
178
  }
179
- rescue Twitter::CantConnect
180
- sleep pause
179
+ rescue Twitter::TwitterError, Timeout::Error
180
+ sleep DEFAULT_PAUSE
181
+ retry
182
+ rescue StandardError => err
183
+ warn "#{err} (#{err.class})"
184
+ sleep DEFAULT_PAUSE
181
185
  retry
182
186
  end
183
187
 
@@ -4,7 +4,7 @@ class Twitter2Jabber
4
4
 
5
5
  MAJOR = 0
6
6
  MINOR = 0
7
- TINY = 5
7
+ TINY = 6
8
8
 
9
9
  class << self
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter2jabber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Wille
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-03 00:00:00 +02:00
12
+ date: 2009-08-21 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency