muck-auth 3.3.2 → 3.3.3

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.3.2
1
+ 3.3.3
@@ -4,6 +4,7 @@ class Muck::AuthenticationsController < ApplicationController
4
4
  @unused_authentications = get_unused_authentications(@current_authentications)
5
5
  respond_to do |format|
6
6
  format.html { render :template => 'authentications/index' }
7
+ format.json { render :json => { :authentications => @current_authentications, :unused_authentications => @unused_authentications } }
7
8
  end
8
9
  end
9
10
 
@@ -2,14 +2,18 @@ module MuckAuthHelper
2
2
 
3
3
  def auth_list(include_icons, services_to_exclude = nil)
4
4
  list = ''
5
- services = Secrets.auth_credentials.keys
6
- services = services - services_to_exclude.map(&:provider) if services_to_exclude
7
- services.each do |auth|
5
+ remaining_services(services_to_exclude).each do |auth|
8
6
  list << %Q{<li class="#{auth_css_class(auth)} auth_service service-link" #{auth_icon_back(auth, include_icons)} title="#{auth_title(auth)}">#{auth_link(auth)}</li>}
9
7
  end
10
8
  list.html_safe
11
9
  end
12
10
 
11
+ def remaining_services(services_to_exclude = nil)
12
+ services = Secrets.auth_credentials.keys
13
+ services = services - services_to_exclude.map(&:provider) if services_to_exclude
14
+ services
15
+ end
16
+
13
17
  def auth_icon_back(auth, include_icons = true)
14
18
  if include_icons
15
19
  icon = service_icon_background(auth)
data/muck-auth.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{muck-auth}
8
- s.version = "3.3.2"
8
+ s.version = "3.3.3"
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"]
12
- s.date = %q{2011-02-24}
12
+ s.date = %q{2011-03-01}
13
13
  s.description = %q{A simple wrapper for the omniauth gem so that it is faster to include oauth in muck based applications.}
14
14
  s.email = %q{justin@tatemae.com}
15
15
  s.extra_rdoc_files = [
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:
6
6
  segments:
7
7
  - 3
8
8
  - 3
9
- - 2
10
- version: 3.3.2
9
+ - 3
10
+ version: 3.3.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Ball
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-24 00:00:00 -07:00
18
+ date: 2011-03-01 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency