devise_g5_authenticatable 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +12 -0
- data/CHANGELOG.md +8 -0
- data/README.md +2 -2
- data/app/controllers/devise_g5_authenticatable/sessions_controller.rb +4 -0
- data/devise_g5_authenticatable.gemspec +1 -1
- data/lib/devise_g5_authenticatable/version.rb +1 -1
- data/spec/controllers/helpers_spec.rb +5 -0
- data/spec/dummy/config/database.yml.ci +1 -2
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd6b657aa8a14dd6ac504949d9588eed5c1fe731
|
4
|
+
data.tar.gz: e67909e5615386744addca7ba53c28855b115889
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 800416e1136f13aa81fee04641f7b583cbe041e58ab8b2bc5b1841a5f238bd647fd09426571c9e61a8d9235362ebe28e71098e38a78902875700b525b1b08be6
|
7
|
+
data.tar.gz: bc87c5d691055c408191262aa26baf224a9c7b48d08d401ebe293ee06a206ad063d96390599e3ec5dbd9f5830f5685162752b8f40a46d9177b2723d2a0b6cd41
|
data/.travis.yml
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 1.9.3
|
4
|
+
- 2.0.0
|
5
|
+
- 2.1
|
6
|
+
- 2.2
|
7
|
+
script:
|
8
|
+
- RAILS_ENV=test bundle exec rake app:db:setup
|
9
|
+
- bundle exec rspec spec
|
10
|
+
before_script:
|
11
|
+
- cp spec/dummy/config/database.yml.ci spec/dummy/config/database.yml
|
12
|
+
- psql -c 'create database g5_authenticatable_test;' -U postgres
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## v0.2.1 (2015-05-28)
|
2
|
+
|
3
|
+
* Fixes for compatibility with
|
4
|
+
[devise](https://github.com/plataformatec/devise) v3.5.1
|
5
|
+
([#18](https://github.com/G5/devise_g5_authenticatable/issues/18))
|
6
|
+
|
1
7
|
## v0.2.0 (2015-01-08)
|
2
8
|
|
3
9
|
* Add support for strict token validation, disabled by default
|
@@ -9,10 +15,12 @@
|
|
9
15
|
([#16](https://github.com/G5/devise_g5_authenticatable/pull/16)).
|
10
16
|
|
11
17
|
## v0.1.2 (2014-08-04)
|
18
|
+
|
12
19
|
* Use existing user with updated password on duplicate user creation with
|
13
20
|
duplicate email.
|
14
21
|
|
15
22
|
## v0.1.1 (2014-07-31)
|
23
|
+
|
16
24
|
* Find a user by email when a duplicate email exception is returned from
|
17
25
|
user creation.
|
18
26
|
|
data/README.md
CHANGED
@@ -10,13 +10,13 @@ G5 users.
|
|
10
10
|
|
11
11
|
## Current Version
|
12
12
|
|
13
|
-
0.2.
|
13
|
+
0.2.1
|
14
14
|
|
15
15
|
## Requirements
|
16
16
|
|
17
17
|
* [Ruby](https://github.com/ruby/ruby) >= 1.9.3
|
18
18
|
* [Rails](https://github.com/rails/rails) >= 3.2
|
19
|
-
* [Devise](https://github.com/plataformatec/devise) ~> 3.
|
19
|
+
* [Devise](https://github.com/plataformatec/devise) ~> 3.5
|
20
20
|
|
21
21
|
## Installation
|
22
22
|
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_dependency 'devise', '~> 3.
|
21
|
+
spec.add_dependency 'devise', '~> 3.5'
|
22
22
|
spec.add_dependency 'g5_authentication_client', '~> 0.2'
|
23
23
|
spec.add_dependency 'omniauth-g5', '~> 0.1'
|
24
24
|
end
|
@@ -276,6 +276,11 @@ describe DeviseG5Authenticatable::Helpers do
|
|
276
276
|
self.resource = resource_class.new
|
277
277
|
raise ActiveRecord::RecordNotSaved.new('my_error')
|
278
278
|
end
|
279
|
+
|
280
|
+
# Expose protected resource helper for the purposes of this unit test
|
281
|
+
def resource
|
282
|
+
super
|
283
|
+
end
|
279
284
|
end
|
280
285
|
|
281
286
|
before { action_with_error }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise_g5_authenticatable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maeve Revels
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: devise
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '3.
|
19
|
+
version: '3.5'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '3.
|
26
|
+
version: '3.5'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: g5_authentication_client
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -62,6 +62,7 @@ files:
|
|
62
62
|
- ".gitignore"
|
63
63
|
- ".rspec"
|
64
64
|
- ".ruby-version"
|
65
|
+
- ".travis.yml"
|
65
66
|
- CHANGELOG.md
|
66
67
|
- Gemfile
|
67
68
|
- LICENSE
|