DG IZ; typo fix; also added more presidential names
This commit is contained in:
parent
53070134de
commit
079c4ec76e
2 changed files with 45 additions and 5 deletions
|
|
@ -26,11 +26,31 @@ def create(backer_number, password)
|
||||||
["Millard", "Fillmore"],
|
["Millard", "Fillmore"],
|
||||||
["Franklin", "Pierce"],
|
["Franklin", "Pierce"],
|
||||||
["James", "Buchanan"],
|
["James", "Buchanan"],
|
||||||
["Abraham", "Lincoln"]
|
["Abraham", "Lincoln"],
|
||||||
|
["Andrew", "Johnson"],
|
||||||
|
["Ulysses S.", "Grant"],
|
||||||
|
["Rutherford B.", "Hayes"],
|
||||||
|
["James A.", "Garfield"],
|
||||||
|
["Chester A.", "Arthur"],
|
||||||
|
["Grover", "Cleveland"],
|
||||||
|
["Benjamin", "Harrison"],
|
||||||
|
["William", "McKinley"],
|
||||||
|
["Theodore", "Roosevelt"],
|
||||||
|
["William Howard", "Taft"],
|
||||||
|
["Woodrow", "Wilson"],
|
||||||
|
["Warren G.", "Harding"],
|
||||||
|
["Calvin", "Coolidge"],
|
||||||
|
["Herbert", "Hoover"],
|
||||||
|
["Franklin D.", "Roosevelt"],
|
||||||
|
["Harry S.", "Truman"],
|
||||||
|
["Dwight D.", "Eisenhower"],
|
||||||
|
["John F.", "Kennedy"],
|
||||||
|
["Lyndon B.", "Johnson"],
|
||||||
|
["Richard", "Nixon"]
|
||||||
]
|
]
|
||||||
|
|
||||||
# Create seed user
|
# Create seed user
|
||||||
email = names[backer_number][1].gsub(/ /,'').downcaase
|
email = names[backer_number][1].gsub(/ /,'').downcase
|
||||||
user = User.create( :email => "#{email}@joindiaspora.com", :password => "#{password}", :profile => Profile.create( :first_name => names[backer_number][0], :last_name => names[backer_number][1] ))
|
user = User.create( :email => "#{email}@joindiaspora.com", :password => "#{password}", :profile => Profile.create( :first_name => names[backer_number][0], :last_name => names[backer_number][1] ))
|
||||||
|
|
||||||
# Make friends with Diaspora Tom
|
# Make friends with Diaspora Tom
|
||||||
|
|
|
||||||
|
|
@ -26,12 +26,32 @@ names = [ ["George", "Washington"],
|
||||||
["Millard", "Fillmore"],
|
["Millard", "Fillmore"],
|
||||||
["Franklin", "Pierce"],
|
["Franklin", "Pierce"],
|
||||||
["James", "Buchanan"],
|
["James", "Buchanan"],
|
||||||
["Abraham", "Lincoln"]
|
["Abraham", "Lincoln"],
|
||||||
|
["Andrew", "Johnson"],
|
||||||
|
["Ulysses S.", "Grant"],
|
||||||
|
["Rutherford B.", "Hayes"],
|
||||||
|
["James A.", "Garfield"],
|
||||||
|
["Chester A.", "Arthur"],
|
||||||
|
["Grover", "Cleveland"],
|
||||||
|
["Benjamin", "Harrison"],
|
||||||
|
["William", "McKinley"],
|
||||||
|
["Theodore", "Roosevelt"],
|
||||||
|
["William Howard", "Taft"],
|
||||||
|
["Woodrow", "Wilson"],
|
||||||
|
["Warren G.", "Harding"],
|
||||||
|
["Calvin", "Coolidge"],
|
||||||
|
["Herbert", "Hoover"],
|
||||||
|
["Franklin D.", "Roosevelt"],
|
||||||
|
["Harry S.", "Truman"],
|
||||||
|
["Dwight D.", "Eisenhower"],
|
||||||
|
["John F.", "Kennedy"],
|
||||||
|
["Lyndon B.", "Johnson"],
|
||||||
|
["Richard", "Nixon"]
|
||||||
]
|
]
|
||||||
|
|
||||||
# Make friends
|
# Make friends
|
||||||
(0..10).each { |n|
|
(0..10).each { |n|
|
||||||
email = names[n][1].gsub(/ /,'').downcaase
|
email = names[n][1].gsub(/ /,'').downcase
|
||||||
Friend.create( :email => "#{email}@joindiaspora.com", :url => "http://#{email}.joindiaspora.com/", :profile => Profile.create(:first_name => names[n][0], :last_name => names[n][1]))
|
Friend.create( :email => "#{email}@joindiaspora.com", :url => "http://#{email}.joindiaspora.com/", :profile => Profile.create(:first_name => names[n][0], :last_name => names[n][1]))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue