Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 6936

Show
Ignore:
Timestamp:
06/04/07 21:50:40 (1 year ago)
Author:
xal
Message:

Make no assumptions on how i want to load the openid library :)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/open_id_authentication/init.rb

    r6520 r6936  
    11begin 
    2   gem 'ruby-openid' 
    3   require 'openid' 
     2  require 'openid'   
    43rescue LoadError 
    5   puts "Install the ruby-openid gem to enable OpenID support" 
     4  begin 
     5    gem 'ruby-openid' 
     6    require 'openid' 
     7  rescue LoadError 
     8    puts "Install the ruby-openid gem to enable OpenID support" 
     9  end 
    610end 
    711 
  • plugins/open_id_authentication/lib/open_id_authentication.rb

    r6514 r6936  
    5656      "http://" + url + "/" 
    5757    else 
    58       raise "Unable to normalize: #{url}
     58      raise "#{url} is not a correctly formatted OpenID address
    5959    end 
    6060  end