TwitterAutoPoster

With this gem you can post text files to twitter.

Installation

Add this line to your application's Gemfile:

gem 'twitter_auto_poster'

And then execute:

$ bundle

Or install it yourself as:

$ gem install twitter_auto_poster

Usage

An example of using this gem to work from the command line:

user=User.new( 
          "consumer_key",
          "consumer_secret",
          "access_token",
          "access_token_secret",
          "login", "password")
response="work"
while response!="-exit"
    puts ASKING_FOR_COMMAND
    command=gets.chomp
    begin
        response=Parser.parse_command(command, user)
        rescue Exception => ex
        puts ex.message
    end
end

An example using this gem to work without command line:

user=User.new( 
          "consumer_key",
          "consumer_secret",
          "access_token",
          "access_token_secret",
          "login", "password")
user.send_message(text) # will send single message to your twitter account
user.send_message_from_file(file_path) # Read a file, split the data into words, 
# will man the words in the message
# and send to Twitter with a specified interval (you can set interval so: user.delay=interval_value)
# Also you can set max length of messages in this way: user.message_length=max_message_length_value 

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request