camptweet 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.8.2. Attempt automatic Twitter reconnects.
2
+
1
3
  v0.8.1. Use standard logger. Bot class restructured. Better error handling. Better Campfire spam protection.
2
4
 
3
5
  v0.8. First Version
@@ -12,9 +12,9 @@ Install the gem and its dependencies:
12
12
 
13
13
  From the commandline, run:
14
14
 
15
- camptweet
15
+ camptweet .
16
16
 
17
- This creates a 'camptweetd' file.
17
+ This creates a 'camptweetd' file in the current directory.
18
18
 
19
19
  Edit this file to specify the Twitter user screen names for which you'd like to grab status information, the desired Campfire subdomain and room name, and the Campfire email/password with which this daemon should use to connect.
20
20
 
@@ -1,16 +1,16 @@
1
1
 
2
- # Gem::Specification for Camptweet-0.8.1
2
+ # Gem::Specification for Camptweet-0.8.2
3
3
  # Originally generated by Echoe
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = %q{camptweet}
7
- s.version = "0.8.1"
7
+ s.version = "0.8.2"
8
8
 
9
9
  s.specification_version = 2 if s.respond_to? :specification_version=
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.authors = ["Brian Dainton"]
13
- s.date = %q{2008-06-08}
13
+ s.date = %q{2008-06-11}
14
14
  s.description = %q{A simple daemon that polls for updated Twitter statuses and posts them to a Campfire room.}
15
15
  s.email = %q{}
16
16
  s.executables = ["camptweet", "camptweetd_base"]
@@ -53,6 +53,8 @@ module Camptweet
53
53
  rescue => e
54
54
  log.error e.message
55
55
  log.error e.backtrace
56
+ # re-establish potentially lost connection to Twitter
57
+ connect_to_twitter
56
58
  end
57
59
  log.debug "Sleeping (10s)"
58
60
  sleep 10
@@ -128,6 +130,7 @@ module Camptweet
128
130
  log.error "Twitter REST Error: (#{e.message})"
129
131
  rescue => e
130
132
  log.error "Twitter error: (#{e.message})"
133
+ connect_to_twitter
131
134
  ensure
132
135
  log.debug " ...done."
133
136
  sleep 2
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: camptweet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Dainton
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-06-08 00:00:00 -05:00
12
+ date: 2008-06-11 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency