Wow, I'm getting good at releasing new versions of this. Fixes size (again).

This commit is contained in:
Philip Arndt 2011-05-28 00:32:20 +12:00
parent 2d41081770
commit 3a5d3f56f3
3 changed files with 4 additions and 4 deletions

View file

@ -22,8 +22,8 @@ class BlogComment < ActiveRecord::Base
def avatar_url(options = {})
options = {:size => 60}
require 'digest/md5'
options[:size] = "?s=#{size}" if options[:size]
"http://gravatar.com/avatar/#{Digest::MD5.hexdigest(self.email.to_s.strip.downcase)}#{options[:size]}.jpg"
size = ("?s=#{options[:size]}" if options[:size])
"http://gravatar.com/avatar/#{Digest::MD5.hexdigest(self.email.to_s.strip.downcase)}#{size}.jpg"
end
def approve!

View file

@ -3,7 +3,7 @@ module Refinery
class Version
@major = 1
@minor = 5
@tiny = 1
@tiny = 2
class << self
attr_reader :major, :minor, :tiny

View file

@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = %q{refinerycms-blog}
s.version = %q{1.5.1}
s.version = %q{1.5.2}
s.description = %q{A really straightforward open source Ruby on Rails blog engine designed for integration with RefineryCMS.}
s.date = %q{2011-05-28}
s.summary = %q{Ruby on Rails blogging engine for RefineryCMS.}