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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: babfb02e4177cd88fe44772401f61014f8b462ea
4
- data.tar.gz: 1302cfd7ca394b79ed9f250fe49e9753c4ea0ac8
3
+ metadata.gz: 5e72545e92c36829500f558b2a4ce744e80f0533
4
+ data.tar.gz: 7d510da1d72dc8ae814e5162447b9e39b3c8b021
5
5
  SHA512:
6
- metadata.gz: ec68260bfce3d59a7365e60e14d756815b85f8c65260cc5df7f74cdd5cc0cf443176a4ec8468e91c667150d88e7676bf5acbea6a5c7b30211e2dc76d5d6d9d56
7
- data.tar.gz: d4213cdfc200c4ba8fd5fee2eb0251cf2b892b6663caa0a9a7e307d62f2819307fcb00f43193d92815e8196277208994471f2a329c95931766cb13e5ef6f2cdb
6
+ metadata.gz: 9340104f4b675e9664640f91a86596a03cba5de2755c146d53bba967d26a772c43f2e7a3e474404f4eec87346a2791a0a84fe7c72483797456bdec7883c9bee9
7
+ data.tar.gz: f2d38857bede06c7348f2552f7230ed1e67c5caa9ea20ec80aa5eb7d4b7352f2ffe579e3654f615c46489c13ce7db68927058487b0fb9c72df63e9cda995dbd3
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ = 1.7.0
2
+
3
+ - Drop devise < 4 support
4
+ - Fix tests for devise 4.2
5
+
1
6
  = 1.6.1
2
7
 
3
8
  - Support 2 arguments on after_invite_path_for, inviter and invitee
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
- DeviseInvitable currently supports Rails 3 and 4, if you want to use it with Rails 2.3 you must install version {0.2.3}[https://rubygems.org/gems/devise_invitable/versions/0.2.3]
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', '~> 3.5.2'
21
- gem 'devise_invitable', '~> 1.6.0'
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
 
@@ -1,3 +1,3 @@
1
1
  module DeviseInvitable
2
- VERSION = '1.6.1'
2
+ VERSION = '1.7.0'
3
3
  end
@@ -13,7 +13,7 @@ class ActionDispatch::IntegrationTest
13
13
  :password_confirmation => '123456',
14
14
  :created_at => Time.now.utc
15
15
  )
16
- user.confirm!
16
+ user.confirm
17
17
  user
18
18
  end
19
19
  end
@@ -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!" do
706
+ test "should preserve return values of Devise::Recoverable#reset_password" do
707
707
  user = new_user
708
- retval = user.reset_password!('anewpassword', 'anewpassword')
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.for(:sign_up) { |u| u.permit(:email, :password, :bio) } if defined?(ActionController::StrongParameters)
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
- require 'test_after_commit' rescue nil
32
- self.use_transactional_fixtures = true
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.6.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: 3.2.6
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: 3.2.6
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: 3.2.0
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: 3.2.0
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: