muck-auth 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38,5 +38,7 @@ https://github.com/intridea/omniauth
38
38
  Render a full list of all services with links to authorize the service and icons:
39
39
  <%= render :partial => 'authentications/available_services', :locals => { :include_icons => true } %>
40
40
 
41
+ Render a list of all services that the current_user has authorized:
42
+ <%= render :partial => 'authentications/current_services', :locals => { :include_icons => true, :authentications => current_user.authentications } %>
41
43
 
42
44
  Copyright (c) 2009-2011 Tatemae.com. See LICENSE for details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.0
1
+ 3.2.1
@@ -29,7 +29,7 @@ module MuckAuthHelper
29
29
  end
30
30
 
31
31
  def auth_css_class(auth)
32
- auth.to_s.parameterize
32
+ auth.parameterize
33
33
  end
34
34
 
35
35
  end
@@ -4,9 +4,9 @@
4
4
  <% else -%>
5
5
  <p><%=translate('muck.oauth.you_are_connected_to_the_following_services') %></p>
6
6
  <ul <%='class="icon-list"' if include_icons%>>
7
- <% authentications.each do |authentication| -%>
8
- <li class="<%=token.class.service_name.to_s.parameterize%> oauth_service service-link" <%= service_icon_background(token.class.service_name) if include_icons %>>
9
- <%= link_to auth_name(authentication.provider), oauth_consumer_path(token.class.service_name), :class => 'authfancybox' %>
7
+ <% authentications.each do |auth| -%>
8
+ <li class="<%=auth_css_class(auth.provider)%> oauth_service service-link" <%= auth_icon_back(auth.provider, include_icons) %>>
9
+ <%= auth_name(auth.provider) %>
10
10
  <%= link_to "X", authentication, :confirm => 'Are you sure you want to remove this authentication option?', :method => :delete, :class => "remove" %>
11
11
  </li>
12
12
  <% end -%>
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{muck-auth}
8
- s.version = "3.2.0"
8
+ s.version = "3.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Justin Ball"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muck-auth
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 2
9
- - 0
10
- version: 3.2.0
9
+ - 1
10
+ version: 3.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Ball