federated_rails 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eb55e97af1673e142ca61d53be8860f6b11690b4
4
- data.tar.gz: 0bf597bfa4538c80007358f8efafab5200d0d1f0
3
+ metadata.gz: 34b127201d131d700ffed67c41536e26b93ed647
4
+ data.tar.gz: 33d6ac74157c47419c0e0af8d852a9de92b784b6
5
5
  SHA512:
6
- metadata.gz: 2ba093decda6fee395fc2fb5df843ed11ffa983b8cd7e4c99abed6d5321ee8c5ac080e47542508291e0c72cef8b06648febe80d01f5cb07442d68023e8c6c907
7
- data.tar.gz: 45eb56f25228e209a2c6c69ff513279583505205557ce133c51476acb0f78acd0ce922616181908639ecb9c9288cc0d5fa8ef54ab0d21b3863c5ee0c2728a4d2
6
+ metadata.gz: c7244401296f9dfaa5f6a2163b09954625faafc301c12f0dbcbe6c6b1e0743bf9ff75b2427fd3ed82c73a9dab88fcec0d6c1ea0db4cf1c66330abdab256c436c
7
+ data.tar.gz: 46bbaec3effbd2d235c43622ce4247a644b0deaf238de823bdb9b53e1e73c77cc1f4159f424d26c00acd96103abf30522c3672f79c072fa66b1a5401821ea402
data/Gemfile CHANGED
@@ -1,16 +1,11 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem "rails", "3.0.9"
3
+ gem "rails", "4.0.2"
4
4
  gem "sqlite3"
5
5
 
6
- gem "rails_warden", "~> 0.5.5"
7
-
8
- group :development do
9
- gem "bundler", "~> 1.0.0"
10
- gem "rcov", ">= 0"
11
- end
6
+ gem "rails_warden"
12
7
 
13
8
  group :test, :development do
14
- gem "rspec-rails", "~> 2.6"
15
- gem "factory_girl_rails", "~> 1.1"
9
+ gem "rspec-rails"
10
+ gem "factory_girl_rails"
16
11
  end
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ rescue LoadError
7
7
  end
8
8
 
9
9
  require 'rake'
10
- require 'rake/rdoctask'
10
+ require 'rdoc/task'
11
11
 
12
12
  require 'rspec/core'
13
13
  require 'rspec/core/rake_task'
data/config/routes.rb CHANGED
@@ -1,11 +1,11 @@
1
1
  Rails.application.routes.draw do
2
2
 
3
3
  scope :module => 'federated_rails' do
4
- match '/login', :to => 'auth#login', :as => :login
5
- match '/logout', :to => 'auth#logout', :as => :logout
6
- match '/loginerror', :to => 'auth#unauthenticated'
7
- match '/auth/federation', :to => 'auth#federation_login'
8
- match '/auth/development', :to => 'auth#development_login'
4
+ get '/login', :to => 'auth#login', :as => :login
5
+ get '/logout', :to => 'auth#logout', :as => :logout
6
+ get '/loginerror', :to => 'auth#unauthenticated'
7
+ get '/auth/federation', :to => 'auth#federation_login'
8
+ get '/auth/development', :to => 'auth#development_login'
9
9
  end
10
10
 
11
- end
11
+ end
@@ -19,7 +19,7 @@ module FederatedRails
19
19
  return fail! 'Authentication Error - Development environment did not supply session ID'
20
20
  end
21
21
 
22
- subject = host_subject.find_or_initialize_by_principal(params[:principal])
22
+ subject = host_subject.find_or_initialize_by(principal: params[:principal])
23
23
 
24
24
  if subject.new_record?
25
25
  unless Rails.application.config.federation.autoprovision
@@ -61,4 +61,4 @@ module FederatedRails
61
61
  end
62
62
  end
63
63
  end
64
- end
64
+ end
@@ -20,7 +20,7 @@ class FederatedRails::FederationStrategy < Warden::Strategies::Base
20
20
  return fail! 'Authentication Error - Federation did not supply session ID'
21
21
  end
22
22
 
23
- subject = host_subject.find_or_initialize_by_principal(principal)
23
+ subject = host_subject.find_or_initialize_by(principal: principal)
24
24
 
25
25
  if subject.new_record?
26
26
  unless Rails.application.config.federation.autoprovision
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: federated_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bradley Beddoes