jaimeiniesta-hashtag_retweet_bot 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/bin/hashtag_retweet_bot +2 -2
- data/hashtag_retweet_bot.gemspec +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('hashtag_retweet_bot', '0.1.
|
5
|
+
Echoe.new('hashtag_retweet_bot', '0.1.3') do |p|
|
6
6
|
p.description = "Script that listens to a tag and retweets messages with that tag. Originally made for Scotland on Rails '09 by Mark Connell (http://github.com/rubaidh)"
|
7
7
|
p.url = "http://github.com/jaimeiniesta/hashtag_retweet_bot"
|
8
8
|
p.author = "Jaime Iniesta"
|
data/bin/hashtag_retweet_bot
CHANGED
@@ -10,12 +10,12 @@ if ARGV.length < 1
|
|
10
10
|
end
|
11
11
|
|
12
12
|
tag = ARGV[0]
|
13
|
-
seconds = ARGV[1]
|
13
|
+
seconds = ARGV[1] || 180
|
14
14
|
if tag.downcase == 'create_db_table'
|
15
15
|
puts "Creating the database"
|
16
16
|
require File.join(File.dirname(__FILE__), '..', 'create_db_table')
|
17
17
|
else
|
18
18
|
puts "Launching the twitterbot to track \##{tag} every #{seconds} seconds"
|
19
|
-
bot = HashtagRetweetBot.new(tag, seconds)
|
19
|
+
bot = HashtagRetweetBot.new(tag, seconds.to_i)
|
20
20
|
bot.run
|
21
21
|
end
|
data/hashtag_retweet_bot.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{hashtag_retweet_bot}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.3"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Balint Erdi", "Jaime Iniesta"]
|