Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
require "date"

module ApplicationHelper
# froom http://railscasts.com/episodes/244-gravatar?language=en&view=asciicast
# from https://robohash.org
def avatar_url(user, size = 32)
gravatar_id = Digest::MD5::hexdigest(user.email).downcase
gravatar_options = Hash[s: size, d: "identicon"]
"http://gravatar.com/avatar/#{gravatar_id}.png?" +
gravatar_options = Hash[set: "set1",
gravatar: "hashed",
size: "#{size}x#{size}"]
"https://robohash.org/#{gravatar_id}.png?" +
"#{Rack::Utils.build_query(gravatar_options)}"
end

Expand Down
4 changes: 2 additions & 2 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
\curl -L https://get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh

# 4.Install ruby 2.1.4 and bundler
# 4.Install ruby 2.2.0 and bundler
echo ''
echo '******************************************************'
echo '****** STEP 4 of 10 ***** Installing ruby 2.1.4'
echo '****** STEP 4 of 10 ***** Installing ruby 2.2.0'
echo '******************************************************'
echo ''

Expand Down