g5_authenticatable 0.5.0 → 0.5.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.
- checksums.yaml +4 -4
- data/.travis.yml +3 -1
- data/CHANGELOG.md +10 -1
- data/README.md +1 -1
- data/config/initializers/devise.rb +1 -1
- data/g5_authenticatable.gemspec +1 -1
- data/lib/g5_authenticatable/version.rb +1 -1
- metadata +8 -3
- data/app/controllers/g5_authenticatable/failure_app.rb +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cad812409d3b2240214bf1984fc0ac285011072
|
4
|
+
data.tar.gz: 7116d3828bcc927ffc1aa7cef4e0e79ec52da2e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1ea849772f6d6bfb1948c172f6c5e991a0e6160e924a0b0e843024aa80b308329478c8ef10494482c35d68a4c1377527df244d49549cc290e9ca4c389f7b5ac
|
7
|
+
data.tar.gz: 50fbcc29a23cbb1673f6eb3baed96ff36dbbc3926e65e7c3f379f1e2d19b5ffff027b65b328394e57588e024546d5abb6d5fb85098771f1843f4ce9edc2aa788
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,15 @@
|
|
1
|
+
## v0.5.1 (2015-06-01)
|
2
|
+
|
3
|
+
* Upgraded dependency on
|
4
|
+
[devise_g5_authenticatable](https://github.com/devise_g5_authenticatable) to
|
5
|
+
pick up compatibility fixes for devise v3.5.1
|
6
|
+
([#34](https://github.com/G5/g5_authenticatable/issues/34))
|
7
|
+
* Removed custom `G5Authenticatable::FailureApp`, as the fix to devise itself
|
8
|
+
was released ([#25](https://github.com/G5/g5_authenticatable/issues/25))
|
9
|
+
|
1
10
|
## v0.5.0 (2015-05-21)
|
2
11
|
|
3
|
-
* Added user roles. Requires running `rails
|
12
|
+
* Added user roles. Requires running `rails g g5_authenticatable:install` and
|
4
13
|
`rake db:migrate`
|
5
14
|
([#33](https://github.com/G5/g5_authenticatable/pull/33))
|
6
15
|
* Added user attributes. Requires running `rails g g5_authenticatable:install`
|
data/README.md
CHANGED
@@ -236,7 +236,7 @@ Devise.setup do |config|
|
|
236
236
|
# change the failure app, you can configure them inside the config.warden block.
|
237
237
|
#
|
238
238
|
config.warden do |manager|
|
239
|
-
|
239
|
+
# Add custom warden configuration here
|
240
240
|
end
|
241
241
|
|
242
242
|
|
data/g5_authenticatable.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
21
21
|
spec.require_paths = ['lib']
|
22
22
|
|
23
|
-
spec.add_dependency 'devise_g5_authenticatable', '~> 0.2'
|
23
|
+
spec.add_dependency 'devise_g5_authenticatable', '~> 0.2', '>= 0.2.1'
|
24
24
|
spec.add_dependency 'omniauth-g5', '~> 0.2'
|
25
25
|
spec.add_dependency 'g5_authenticatable_api', '~> 0.3.1'
|
26
26
|
spec.add_dependency 'rolify', '~> 4.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: g5_authenticatable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- maeve
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: devise_g5_authenticatable
|
@@ -17,6 +17,9 @@ dependencies:
|
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.2'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.2.1
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -24,6 +27,9 @@ dependencies:
|
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '0.2'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.2.1
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: omniauth-g5
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,7 +112,6 @@ files:
|
|
106
112
|
- app/controllers/concerns/g5_authenticatable/authorization.rb
|
107
113
|
- app/controllers/g5_authenticatable/application_controller.rb
|
108
114
|
- app/controllers/g5_authenticatable/error_controller.rb
|
109
|
-
- app/controllers/g5_authenticatable/failure_app.rb
|
110
115
|
- app/controllers/g5_authenticatable/sessions_controller.rb
|
111
116
|
- app/helpers/g5_authenticatable/application_helper.rb
|
112
117
|
- app/models/g5_authenticatable/role.rb
|
@@ -1,22 +0,0 @@
|
|
1
|
-
class G5Authenticatable::FailureApp < Devise::FailureApp
|
2
|
-
def scope_url
|
3
|
-
opts = {}
|
4
|
-
route = :"new_#{scope}_session_url"
|
5
|
-
opts[:format] = request_format unless skip_format?
|
6
|
-
|
7
|
-
config = Rails.application.config
|
8
|
-
|
9
|
-
# See https://github.com/G5/g5_authenticatable/issues/25
|
10
|
-
opts[:script_name] = config.relative_url_root if config.try(:relative_url_root)
|
11
|
-
|
12
|
-
context = send(Devise.available_router_name)
|
13
|
-
|
14
|
-
if context.respond_to?(route)
|
15
|
-
context.send(route, opts)
|
16
|
-
elsif respond_to?(:root_url)
|
17
|
-
root_url(opts)
|
18
|
-
else
|
19
|
-
"/"
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|