devise_invitable 1.1.1 → 1.1.2

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.

data/README.rdoc CHANGED
@@ -1,5 +1,5 @@
1
1
  = DeviseInvitable
2
- {<img src="http://travis-ci.org/scambra/devise_invitable.png"/>}[http://travis-ci.org/scambra/devise_invitable]
2
+ {<img src="https://travis-ci.org/scambra/devise_invitable.png"/>}[http://travis-ci.org/scambra/devise_invitable]
3
3
 
4
4
  It adds support to devise[http://github.com/plataformatec/devise] for send invitations by email (it requires to be authenticated) and accept the invitation setting the password.
5
5
 
@@ -28,7 +28,7 @@ module DeviseInvitable::Controllers::Registrations
28
28
  def reset_invitation_info
29
29
  # Restore info about the last invitation (for later reference)
30
30
  # Reset the invitation_info only, if invited_by_id is still nil at this stage:
31
- resource = resource_class.where(:email => params[resource_name][:email], :invited_by_id => nil).first
31
+ resource = resource_class.where(:email => params[resource_name][:email], :invited_by_id => nil).first rescue nil
32
32
  if resource && @invitation_info
33
33
  resource.invitation_fields.each do |field|
34
34
  resource.send("#{field}=", @invitation_info[field])
@@ -1,3 +1,3 @@
1
1
  module DeviseInvitable
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_invitable
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 1
10
- version: 1.1.1
9
+ - 2
10
+ version: 1.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sergio Cambra
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-10-17 00:00:00 Z
18
+ date: 2012-11-12 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bundler
@@ -34,34 +34,34 @@ dependencies:
34
34
  type: :development
35
35
  version_requirements: *id001
36
36
  - !ruby/object:Gem::Dependency
37
- name: actionmailer
37
+ name: devise
38
38
  prerelease: false
39
39
  requirement: &id002 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
- - - ~>
42
+ - - ">="
43
43
  - !ruby/object:Gem::Version
44
- hash: 7
44
+ hash: 11
45
45
  segments:
46
- - 3
46
+ - 2
47
+ - 1
47
48
  - 0
48
- version: "3.0"
49
+ version: 2.1.0
49
50
  type: :runtime
50
51
  version_requirements: *id002
51
52
  - !ruby/object:Gem::Dependency
52
- name: devise
53
+ name: actionmailer
53
54
  prerelease: false
54
55
  requirement: &id003 !ruby/object:Gem::Requirement
55
56
  none: false
56
57
  requirements:
57
- - - ">="
58
+ - - ~>
58
59
  - !ruby/object:Gem::Version
59
- hash: 11
60
+ hash: 7
60
61
  segments:
61
- - 2
62
- - 1
62
+ - 3
63
63
  - 0
64
- version: 2.1.0
64
+ version: "3.0"
65
65
  type: :runtime
66
66
  version_requirements: *id003
67
67
  - !ruby/object:Gem::Dependency
@@ -94,7 +94,6 @@ files:
94
94
  - app/views/devise/invitations/new.html.erb
95
95
  - app/views/devise/mailer/invitation_instructions.html.erb
96
96
  - config/locales/en.yml
97
- - config/locales/es.yml
98
97
  - lib/devise_invitable.rb
99
98
  - lib/devise_invitable/mailer.rb
100
99
  - lib/devise_invitable/model.rb
@@ -1,16 +0,0 @@
1
- es:
2
- devise:
3
- invitations:
4
- send_instructions: "Una invitación de correo se ha enviado para %{email}."
5
- invitation_token_invalid: "El token de invitación no es valido!"
6
- updated: "Tu contraseña se ha captura con éxito, ya te encuentras dentro del sistema."
7
- no_invitations_remaining: "No quedan más invitaciones"
8
- new:
9
- header: "Enviar Invitación"
10
- submit_button: "Envia una invitación"
11
- edit:
12
- header: "Establecer contraseña"
13
- submit_button: "Guardar mi contraseña"
14
- mailer:
15
- invitation_instructions:
16
- subject: "Instruciones de la invitación"