twuckoo 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/twuckoo/runner.rb +4 -4
- data/twuckoo.gemspec +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/lib/twuckoo/runner.rb
CHANGED
@@ -72,7 +72,7 @@ class Twuckoo::Runner
|
|
72
72
|
end
|
73
73
|
|
74
74
|
def notify
|
75
|
-
send_email(config)
|
75
|
+
send_email(name, config)
|
76
76
|
end
|
77
77
|
|
78
78
|
def tweet(message)
|
@@ -132,7 +132,7 @@ class Twuckoo::Runner
|
|
132
132
|
twitter.status(:post, message)
|
133
133
|
end
|
134
134
|
|
135
|
-
def send_email(config)
|
135
|
+
def send_email(name, config)
|
136
136
|
Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)
|
137
137
|
Mail.defaults do
|
138
138
|
smtp do
|
@@ -147,8 +147,8 @@ class Twuckoo::Runner
|
|
147
147
|
Mail.deliver do
|
148
148
|
from 'twuckoo@nowhere.com'
|
149
149
|
to config[:email]
|
150
|
-
subject
|
151
|
-
body "So please fill
|
150
|
+
subject %([twuckoo]: instance "#{name}" has nothing more to tweet)
|
151
|
+
body "So please fill it up!"
|
152
152
|
end
|
153
153
|
end
|
154
154
|
end
|
data/twuckoo.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{twuckoo}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Balint Erdi"]
|
12
|
-
s.date = %q{2010-01-
|
12
|
+
s.date = %q{2010-01-15}
|
13
13
|
s.description = %q{ A simple yet elegant solution to tweet a message regularly from a file (from a webpage, a database, etc.)
|
14
14
|
}
|
15
15
|
s.email = %q{balint.erdi@gmail.com}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twuckoo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Balint Erdi
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-15 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|