diff --git a/lib/gravatar.rb b/lib/gravatar.rb index 52f79bd..096bb58 100644 --- a/lib/gravatar.rb +++ b/lib/gravatar.rb @@ -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 @@ -49,7 +48,7 @@ def initialize(email, options = {}) end def host - "secure.gravatar.com" + "www.gravatar.com" end def url diff --git a/spec/lib/gravatar_spec.rb b/spec/lib/gravatar_spec.rb index d2d3a9b..ca37fe4 100644 --- a/spec/lib/gravatar_spec.rb +++ b/spec/lib/gravatar_spec.rb @@ -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 @@ -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