diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 6d3d8cece..b6dcd2d92 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -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 diff --git a/bootstrap.sh b/bootstrap.sh index bff324edf..0a7368626 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -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 ''