Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change domain to www.gravatar.com, which is now the only working domain #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
3 changes: 1 addition & 2 deletions lib/gravatar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
# Errors usually come with a number and human readable text. Generally the text should be followed whenever possible,
# but a brief description of the numeric error codes are as follows:
#
# -7 Use secure.gravatar.com
# -8 Internal error
# -9 Authentication error
# -10 Method parameter missing
Expand Down Expand Up @@ -49,7 +48,7 @@ def initialize(email, options = {})
end

def host
"secure.gravatar.com"
"www.gravatar.com"
end

def url
Expand Down
10 changes: 5 additions & 5 deletions spec/lib/gravatar_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
end

it "should return gravatar image_url with SSL" do
image_url(:ssl => true).should == "https://secure.gravatar.com/avatar/ef23bdc1f1fb9e3f46843a00e5832d98"
image_url(:ssl => true).should == "https://www.gravatar.com/avatar/ef23bdc1f1fb9e3f46843a00e5832d98"
end

it "should return gravatar image_url with size" do
Expand Down Expand Up @@ -166,10 +166,10 @@

it "should return gravatar image_url with SSL and default and size and rating" do
combinations = %w(
https://secure.gravatar.com/avatar/ef23bdc1f1fb9e3f46843a00e5832d98?default=identicon&size=80&rating=g
https://secure.gravatar.com/avatar/ef23bdc1f1fb9e3f46843a00e5832d98?size=80&rating=g&default=identicon
https://secure.gravatar.com/avatar/ef23bdc1f1fb9e3f46843a00e5832d98?size=80&default=identicon&rating=g
https://secure.gravatar.com/avatar/ef23bdc1f1fb9e3f46843a00e5832d98?rating=g&size=80&default=identicon
https://www.gravatar.com/avatar/ef23bdc1f1fb9e3f46843a00e5832d98?default=identicon&size=80&rating=g
https://www.gravatar.com/avatar/ef23bdc1f1fb9e3f46843a00e5832d98?size=80&rating=g&default=identicon
https://www.gravatar.com/avatar/ef23bdc1f1fb9e3f46843a00e5832d98?size=80&default=identicon&rating=g
https://www.gravatar.com/avatar/ef23bdc1f1fb9e3f46843a00e5832d98?rating=g&size=80&default=identicon
)
combinations.should include(image_url(:ssl => true, :default => "identicon", :size => 80, :rating => :g))
end
Expand Down