devise_invitable 1.6.1 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of devise_invitable might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG +5 -0
- data/README.rdoc +6 -7
- data/lib/devise_invitable/version.rb +1 -1
- data/test/integration_tests_helper.rb +1 -1
- data/test/models/invitable_test.rb +2 -2
- data/test/rails_app/app/controllers/application_controller.rb +1 -1
- data/test/test_helper.rb +5 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e72545e92c36829500f558b2a4ce744e80f0533
|
4
|
+
data.tar.gz: 7d510da1d72dc8ae814e5162447b9e39b3c8b021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9340104f4b675e9664640f91a86596a03cba5de2755c146d53bba967d26a772c43f2e7a3e474404f4eec87346a2791a0a84fe7c72483797456bdec7883c9bee9
|
7
|
+
data.tar.gz: f2d38857bede06c7348f2552f7230ed1e67c5caa9ea20ec80aa5eb7d4b7352f2ffe579e3654f615c46489c13ce7db68927058487b0fb9c72df63e9cda995dbd3
|
data/CHANGELOG
CHANGED
data/README.rdoc
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
= DeviseInvitable
|
2
|
-
{<img src="https://badge.fury.io/rb/devise_invitable.svg"/>}[http://badge.fury.io/rb/devise_invitable] {<img src="https://travis-ci.org/scambra/devise_invitable.png"/>}[https://travis-ci.org/scambra/devise_invitable] {<img src="https://codeclimate.com/github/scambra/devise_invitable/badges/gpa.svg"/}[https://codeclimate.com/github/scambra/devise_invitable]
|
2
|
+
{<img src="https://badge.fury.io/rb/devise_invitable.svg"/>}[http://badge.fury.io/rb/devise_invitable] {<img src="https://travis-ci.org/scambra/devise_invitable.png"/>}[https://travis-ci.org/scambra/devise_invitable] {<img src="https://codeclimate.com/github/scambra/devise_invitable/badges/gpa.svg"/}[https://codeclimate.com/github/scambra/devise_invitable]
|
3
3
|
|
4
4
|
It adds support to devise[https://github.com/plataformatec/devise] for sending invitations by email (it requires to be authenticated) and accept the invitation setting the password.
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
It works with Devise >= 3.2
|
6
|
+
It works with Devise >= 4.0
|
9
7
|
If you want to use devise 3.0.x, you must use 1.2.1 or lower
|
10
8
|
If you want to use devise 3.1.x, you must use 1.3.2 or lower
|
9
|
+
If you want to use devise >= 3.2, you must use 1.6.1 or lower
|
11
10
|
|
12
11
|
== Installation
|
13
12
|
|
@@ -17,8 +16,8 @@ Install DeviseInvitable gem, it will also install dependencies (such as devise a
|
|
17
16
|
|
18
17
|
Add DeviseInvitable to your Gemfile (and Devise if you weren't using them):
|
19
18
|
|
20
|
-
gem 'devise', '~>
|
21
|
-
gem 'devise_invitable', '~> 1.
|
19
|
+
gem 'devise', '~> 4.2'
|
20
|
+
gem 'devise_invitable', '~> 1.7.0'
|
22
21
|
|
23
22
|
=== Automatic installation
|
24
23
|
|
@@ -285,7 +284,7 @@ You can also set <tt>invited_by</tt> when using the <tt>invite!</tt> class metho
|
|
285
284
|
|
286
285
|
=== Find by invitation token
|
287
286
|
|
288
|
-
To find by invitation token use the <tt>find_by_invitation_token</tt> class method.
|
287
|
+
To find by invitation token use the <tt>find_by_invitation_token</tt> class method.
|
289
288
|
|
290
289
|
user = User.find_by_invitation_token(params[:invitation_token], true)
|
291
290
|
|
@@ -703,9 +703,9 @@ class InvitableTest < ActiveSupport::TestCase
|
|
703
703
|
assert_equal 3, User.created_by_invite.count
|
704
704
|
end
|
705
705
|
|
706
|
-
test "should preserve return values of Devise::Recoverable#reset_password
|
706
|
+
test "should preserve return values of Devise::Recoverable#reset_password" do
|
707
707
|
user = new_user
|
708
|
-
retval = user.reset_password
|
708
|
+
retval = user.reset_password('anewpassword', 'anewpassword')
|
709
709
|
assert_equal true, retval
|
710
710
|
end
|
711
711
|
|
@@ -12,6 +12,6 @@ class ApplicationController < ActionController::Base
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def configure_permitted_parameters
|
15
|
-
devise_parameter_sanitizer.
|
15
|
+
devise_parameter_sanitizer.permit(:sign_up, keys: [:email, :password, :bio])
|
16
16
|
end
|
17
17
|
end
|
data/test/test_helper.rb
CHANGED
@@ -28,7 +28,10 @@ class ActionController::TestCase
|
|
28
28
|
if Rails.version >= '5.0.0'
|
29
29
|
self.use_transactional_tests = true
|
30
30
|
else
|
31
|
-
|
32
|
-
|
31
|
+
begin
|
32
|
+
require 'test_after_commit'
|
33
|
+
self.use_transactional_fixtures = true
|
34
|
+
rescue LoadError
|
35
|
+
end
|
33
36
|
end
|
34
37
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise_invitable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergio Cambra
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 4.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 4.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: devise
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 4.0.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 4.0.0
|
55
55
|
description: It adds support for send invitations by email (it requires to be authenticated)
|
56
56
|
and accept the invitation by setting a password.
|
57
57
|
email:
|