openstax_accounts 5.0.0 → 5.0.1

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: 5c68309eb816447b9379cd570f95a2099ce13bfc
4
- data.tar.gz: c598caec6b97bff42fe269e3bd8885b688842673
3
+ metadata.gz: 0703526db3d18e603ca88f8867c5544622df2c99
4
+ data.tar.gz: 061948a2df5ce177ceae61364a362aaf1f29fa16
5
5
  SHA512:
6
- metadata.gz: 969eaf95f5aa6a2d2cee9e19972ee2c0269abb4fa939ea32a3f49d7fb8b946cbddac8360b5b8438d62873c3672f6377a70cf3da88d01cde0418da682efb50a9c
7
- data.tar.gz: 255d45ca40d05da9db31569db43b04bde685b534bc55efd3c9c5470f549c8a38ab34968993ba52c273bce5999c3520b28d72303a76611167b8c9f968f18d7290
6
+ metadata.gz: c2b6ba5462bf70ac4115706560c2576ed0d19ee17620d75f32c856c60e1158243a6ec14174db927156e4bfac318fad3b08b18b0d50698acd17d708e4031e8418
7
+ data.tar.gz: f9c3e5bd7a0d31a75b192c2a11d0bc613d92ac7d77c8e0de96da34ef08f48285a2b42ff9c999995d966d6e94e24856df7c6eac79d47d29646caaa4a0fb20a0bc
@@ -44,6 +44,13 @@ module OpenStax
44
44
  alert: "Authentication failed, please try again."
45
45
  end
46
46
 
47
+ def profile
48
+ # TODO: stub profile if stubbing is enabled
49
+ redirect_to(URI.join(
50
+ OpenStax::Accounts.configuration.openstax_accounts_url, "/profile"
51
+ ).to_s)
52
+ end
53
+
47
54
  end
48
55
  end
49
56
  end
data/config/routes.rb CHANGED
@@ -15,11 +15,6 @@ OpenStax::Accounts::Engine.routes.draw do
15
15
  get 'search', :on => :collection
16
16
  end
17
17
  end
18
- else
19
- get '/profile' => lambda { |env|
20
- redirect(URI::join(OpenStax::Accounts.configuration.openstax_accounts_url,
21
- "/profile").to_s)
22
- }
23
18
  end
24
19
 
25
20
  # OmniAuth local routes (SessionsController)
@@ -30,6 +25,7 @@ OpenStax::Accounts::Engine.routes.draw do
30
25
  get 'login', :action => :new # Redirects to /auth/openstax or stub
31
26
  match 'logout', :action => :destroy, # Redirects to logout path or stub
32
27
  :via => OpenStax::Accounts.configuration.logout_via
28
+ get 'profile', :action => :profile # Redirects to profile path or stub
33
29
  end
34
30
 
35
31
  end
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Accounts
3
- VERSION = "5.0.0"
3
+ VERSION = "5.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstax_accounts
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Slavinsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-24 00:00:00.000000000 Z
11
+ date: 2015-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails