camptweet 0.8.1 → 0.8.2
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/CHANGELOG +2 -0
- data/README.rdoc +2 -2
- data/camptweet.gemspec +3 -3
- data/lib/camptweet/bot.rb +3 -0
- metadata +2 -2
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
|
@@ -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
|
|
data/camptweet.gemspec
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
# Gem::Specification for Camptweet-0.8.
|
|
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.
|
|
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-
|
|
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"]
|
data/lib/camptweet/bot.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
12
|
+
date: 2008-06-11 00:00:00 -05:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|