twitter_bot 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ module TwitterBot #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -1,8 +1,7 @@
1
1
  class TwitterBotGenerator < Rails::Generator::NamedBase
2
2
  def manifest
3
3
  record do |m|
4
- m.file 'twitter_bot', 'script/twitter_bot'
5
- FileUtils.chmod(0777, 'script/twitter_bot')
4
+ m.file 'twitter_bot', 'script/twitter_bot', :chmod => 777
6
5
  m.template 'awesome_twitter_bot.rb', "lib/#{file_name}_twitter_bot.rb"
7
6
  m.file 'twitter_bot.yml', 'config/twitter_bot.yml'
8
7
  m.template 'twitter_bot_runner.rb', 'lib/twitter_bot_runner.rb'
data/website/index.html CHANGED
@@ -33,7 +33,7 @@
33
33
  <h1>Twitter Bot</h1>
34
34
  <div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/integrum/twitter_bot"; return false'>
35
35
  <p>Get Version</p>
36
- <a href="http://rubyforge.org/projects/integrum/twitter_bot" class="numbers">0.0.1</a>
36
+ <a href="http://rubyforge.org/projects/integrum/twitter_bot" class="numbers">0.0.2</a>
37
37
  </div>
38
38
  <h2>What</h2>
39
39
 
@@ -78,6 +78,9 @@ This will generate the following files in your Rails project:
78
78
  <p>Next, modify the lib/&lt;name&gt;_twitter_bot.rb file to specify the action to take when a tweet/follow/unfollow message is received. The default action for receiving a tweet is to log the message. The default action for receiving a follow message is to follow the user back and send a direct message. The default action for an unfollow is to log that the user is no longer following the Twitter user specified in the config/twitter_bot.yml file. Customize these in whatever way you see fit.</p>
79
79
 
80
80
 
81
+ <p>Don&#8217;t forget to require the twitter_bot gem in your project.</p>
82
+
83
+
81
84
  <p>That&#8217;s it, you&#8217;re ready to go with Twitter integrated into your app. Just run the following command to start the bot:
82
85
  <pre class='syntax'><span class="ident">ruby</span> <span class="ident">script</span><span class="punct">/</span><span class="ident">twitter_bot</span> <span class="ident">start</span></pre></p>
83
86
 
@@ -89,7 +92,7 @@ This will generate the following files in your Rails project:
89
92
  <h2>How to submit patches</h2>
90
93
 
91
94
 
92
- <p>Read the <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/">8 steps for fixing other people&#8217;s code</a> and for section <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups">8b: Submit patch to Google Groups</a>, use the Google Group above.</p>
95
+ <p>Read the <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/">8 steps for fixing other people&#8217;s code</a>.</p>
93
96
 
94
97
 
95
98
  <p>The trunk repository is <code>svn://rubyforge.org/var/svn/integrum/twitter_bot</code> for anonymous access.</p>
@@ -114,7 +117,7 @@ This will generate the following files in your Rails project:
114
117
 
115
118
  <p>Comments are welcome. Send an email to <a href="mailto:info@integrumtech.com?subject=Twitterbot">Integrum</a></p>
116
119
  <p class="coda">
117
- <a href="http://integrumtech.com">Integrum Technologies, LLC</a>, 22nd May 2008<br>
120
+ <a href="http://integrumtech.com">Integrum Technologies, LLC</a>, 23rd May 2008<br>
118
121
  Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
119
122
  </p>
120
123
  </div>
data/website/index.txt CHANGED
@@ -28,6 +28,8 @@ First, modify the config/twitter_bot.yml file with your Twitter username/passwor
28
28
 
29
29
  Next, modify the lib/&lt;name&gt;_twitter_bot.rb file to specify the action to take when a tweet/follow/unfollow message is received. The default action for receiving a tweet is to log the message. The default action for receiving a follow message is to follow the user back and send a direct message. The default action for an unfollow is to log that the user is no longer following the Twitter user specified in the config/twitter_bot.yml file. Customize these in whatever way you see fit.
30
30
 
31
+ Don't forget to require the twitter_bot gem in your project.
32
+
31
33
  That's it, you're ready to go with Twitter integrated into your app. Just run the following command to start the bot:
32
34
  <pre syntax="ruby">ruby script/twitter_bot start</pre>
33
35
 
@@ -36,7 +38,7 @@ To stop the bot use:
36
38
 
37
39
  h2. How to submit patches
38
40
 
39
- Read the "8 steps for fixing other people's code":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/ and for section "8b: Submit patch to Google Groups":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups, use the Google Group above.
41
+ Read the "8 steps for fixing other people's code":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/.
40
42
 
41
43
  The trunk repository is <code>svn://rubyforge.org/var/svn/integrum/twitter_bot</code> for anonymous access.
42
44
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jade Meskill, Curtis Miller, Curtis Edmond
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-05-22 00:00:00 -07:00
12
+ date: 2008-05-23 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency