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
[#4] Application ID was not working, as I assumed that Twitter::Client.new would 
take the config hash and merge. Turns out you have to configure it using 
Twitter::Client.configure, which sets class variables (yuck).
snowblink (author)
Thu May 22 16:14:25 -0700 2008
commit  c2ef6503dceff1c7e49310d6db51669b60cdb391
tree    2def86db84b05c3021cb80bfc5f6f214732afebb
parent  1817347dc9805acc9ca979a0f573aac68bdb3a42
...
14
15
16
 
 
 
 
 
 
 
17
18
19
...
14
15
16
17
18
19
20
21
22
23
24
25
26
0
@@ -14,6 +14,13 @@ require 'twitter'
0
 require 'hpricot'
0
 require 'yaml'
0
 
0
+Twitter::Client.configure do |conf|
0
+  conf.application_name     = 'pollenlondon'
0
+  conf.application_version  = '0.2'
0
+  conf.application_url      = 'https://github.com/snowblink/pollen-london/tree'
0
+  conf.source               = 'pollenlondon'
0
+end
0
+
0
 twitter_config = YAML::load_file(File.dirname(__FILE__) + '/twitter_config.yml')
0
 twitter = Twitter::Client.new(twitter_config)
0
 
...
1
2
3
4
5
6
 
7
...
1
 
 
 
 
2
3
4
0
@@ -1,5 +1,2 @@
0
 login: pollen_london
0
-password: password
0
-application_name: pollenlondon
0
-application_version: 0.2
0
-source: pollenlondon
0
\ No newline at end of file
0
+password: password
0
\ No newline at end of file

Comments