Skip to content
Browse files

Fixed YML parsing

  • Loading branch information...
1 parent 1aec228 commit 004ae44bb0de5e048a85a95ee3450c91a4419045 @davejlong committed Jul 10, 2011
Showing with 8 additions and 9 deletions.
  1. +4 −4 conf.yml.sample
  2. +4 −5 twituino.rb
View
8 conf.yml.sample
@@ -18,8 +18,8 @@
app:
- oauth_consumer_token: **your oauth consumer token**
- oauth_consumer_secret: **your oauth consumer secret**
+ oauth_consumer_token: **your oauth consumer token**
+ oauth_consumer_secret: **your oauth consumer secret**
user:
- key: **your user key**
- secret: **your user secret**
+ key: **your user key**
+ secret: **your user secret**
View
9 twituino.rb
@@ -24,15 +24,14 @@
@userWhitelist = ['davejlong']
-puts CONFIG
Twitter::Client.configure do |conf|
- conf.oauth_consumer_token = APPCONFIG[:oauth_consumer_token]
- conf.oauth_consumer_secret = APPCONFIG[:oauth_consumer_secret]
+ conf.oauth_consumer_token = CONFIG['app']['oauth_consumer_token']
+ conf.oauth_consumer_secret = CONFIG['app']['oauth_consumer_secret']
end
@client = Twitter::Client.new(:oauth_access => {
- :key => USERCONFIG[:userkey],
- :secret => USERCONFIG[:usersecret]
+ :key => CONFIG['user']['key'],
+ :secret => CONFIG['user']['secret']
})
def follow_whitelist

0 comments on commit 004ae44

Please sign in to comment.
Something went wrong with that request. Please try again.