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 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.2') do |p|
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"
@@ -10,12 +10,12 @@ if ARGV.length < 1
10
10
  end
11
11
 
12
12
  tag = ARGV[0]
13
- seconds = ARGV[1].to_i || 180
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
@@ -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.2"
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"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jaimeiniesta-hashtag_retweet_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Balint Erdi