Skip to content

Commit

Permalink
Change env var name
Browse files Browse the repository at this point in the history
  • Loading branch information
philoye committed Nov 28, 2013
1 parent edd7936 commit 664a0c9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion models/twitter_com.rb
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion views/index.haml
Original file line number Diff line number Diff line change
@@ -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|
Expand Down

0 comments on commit 664a0c9

Please sign in to comment.