public
Description: Ruby script that takes data from the BBC website and sends it to twitter/pollen_london
Homepage: http://twitter.com/pollen_london
Clone URL: git://github.com/snowblink/pollen-london.git
[#7] Added a full path to the twitter_config.yml
snowblink (author)
Sat May 17 00:58:32 -0700 2008
commit  85c46c06e9f9eccf205d68edb95c3a3127484ffe
tree    f16fda4e4f144ba67c5db8f9ed442ea3cc0cd108
parent  e6fd4214a61931190e6a90ddbe117347415f30d0
...
14
15
16
17
 
18
19
20
...
38
39
40
41
 
 
42
43
44
...
14
15
16
 
17
18
19
20
...
38
39
40
 
41
42
43
44
45
0
@@ -14,7 +14,7 @@ require 'twitter'
0
 require 'hpricot'
0
 require 'yaml'
0
 
0
-twitter_config = YAML::load_file('twitter_config.yml')
0
+twitter_config = YAML::load_file(File.dirname(__FILE__) + '/twitter_config.yml')
0
 twitter = Twitter::Client.new(twitter_config)
0
 
0
 date = DateTime.now.strftime("%Y%m%d%H%M%S")
0
@@ -38,7 +38,8 @@ end
0
 
0
 to_twitter.each do |update|
0
   begin
0
-    twitter.status(:post, update)
0
+    # twitter.status(:post, update)
0
+    puts update
0
   rescue Exception => e
0
     puts "FAILED!"
0
     puts e

Comments