diff --git a/README.markdown b/README.markdown index d0c6c16..bdd7eea 100644 --- a/README.markdown +++ b/README.markdown @@ -22,7 +22,7 @@ GETTING STARTED 2. Add an environment variable called `TWEETDEN_SCREEN_NAME`. I recommend adding to your `.bashrc` by including something like: - export TWEETDEN_SCREEN_NAME=philoye + export SCREEN_NAME=philoye 3. Bootstrap the application. Run a couple of Rake commands: diff --git a/Rakefile b/Rakefile index f3b2184..6f24c8c 100644 --- a/Rakefile +++ b/Rakefile @@ -23,7 +23,7 @@ namespace :import do desc "Imports the user" task :user do puts "Importing the user details" - json = TwitterCom.getUser(ENV['TWEETDEN_SCREEN_NAME']) + json = TwitterCom.getUser(ENV['SCREEN_NAME']) User.import(json) puts "Importing done!" end diff --git a/models/twitter_com.rb b/models/twitter_com.rb index cfd9f61..24ae2d7 100644 --- a/models/twitter_com.rb +++ b/models/twitter_com.rb @@ -1,7 +1,7 @@ class TwitterCom def self.getTweets(page, count) - f = open("http://api.twitter.com/1/statuses/user_timeline/#{ENV['TWEETDEN_SCREEN_NAME']}.json?count=#{count}&include_rts=true&include_entities=true&page=#{page}").read + f = open("http://api.twitter.com/1/statuses/user_timeline/#{ENV['SCREEN_NAME']}.json?count=#{count}&include_rts=true&include_entities=true&page=#{page}").read return JSON.parse(f) end diff --git a/views/index.haml b/views/index.haml index 6fd7555..1c0d919 100644 --- a/views/index.haml +++ b/views/index.haml @@ -1,7 +1,7 @@ - content_for :pagination do = partial :pagination -- @page_title = "A Twitter archive for @#{ENV['TWEETDEN_SCREEN_NAME']}" +- @page_title = "A Twitter archive for @#{ENV['SCREEN_NAME']}" -if @count > 0 - @tweets.each do |tweet|