devise_castle 1.3.4 → 1.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2f22f6ada2c44ff3db71806b63389b1ab3effbd
4
- data.tar.gz: 9a7908fc9fd6f1dd802a8d190b798924a6fc731a
3
+ metadata.gz: 028a9e004c92c9f888450122f7cef35e855fbd8f
4
+ data.tar.gz: 571a9ab0a6938bafc4cfec3338d3c623c4d1f9fe
5
5
  SHA512:
6
- metadata.gz: e164170c07efabe7eddd0f26dfc753c598ee3fd6a61af621d031edf3ee338aa7d3b7cae6ca2e3315856de5a651c64775ec04f6a5f38ab1ffc65794a6ad2e6552
7
- data.tar.gz: 0877d062f9ed3a9025b940118bfbb9998aa147b0c0c2d31b0b831759c7abe43e9cfa6695e80ca3942b8c2f1fee78fd67864d9ef03712be6835cec65bf78c39a5
6
+ metadata.gz: d7faf306246ed52015c2ec13a3b48b14935a7e2b0e108ad1e9b5434c997fea48177eb0fae0ef66f38c316cd2832af2752f3fe1cb97631ef11a2774f4f4a3aff3
7
+ data.tar.gz: 531cf8b5626c786abd91334d96a394cab767786bb4894e76008b4b1401f6b1ae5a549a3c45846126cf558ae5e90b62c917708be92017778286664170ea9c76e5
@@ -9,17 +9,17 @@ class DeviseCastle::PasswordsController < Devise::PasswordsController
9
9
  end
10
10
 
11
11
  super do |resource|
12
- return if resource.respond_to?(:castle_do_not_track?) && resource.castle_do_not_track?
13
-
14
- begin
15
- castle.track(
16
- name: '$password_reset.requested',
17
- details: {
18
- '$login' => username
19
- })
20
- rescue ::Castle::Error => e
21
- if Devise.castle_error_handler.is_a?(Proc)
22
- Devise.castle_error_handler.call(e)
12
+ unless resource.respond_to?(:castle_do_not_track?) && resource.castle_do_not_track?
13
+ begin
14
+ castle.track(
15
+ name: '$password_reset.requested',
16
+ details: {
17
+ '$login' => username
18
+ })
19
+ rescue ::Castle::Error => e
20
+ if Devise.castle_error_handler.is_a?(Proc)
21
+ Devise.castle_error_handler.call(e)
22
+ end
23
23
  end
24
24
  end
25
25
  end
@@ -27,21 +27,21 @@ class DeviseCastle::PasswordsController < Devise::PasswordsController
27
27
 
28
28
  def update
29
29
  super do |resource|
30
- return if resource.respond_to?(:castle_do_not_track?) && resource.castle_do_not_track?
31
-
32
- begin
33
- if resource.errors.empty?
34
- castle.track(
35
- name: '$password_reset.succeeded',
36
- user_id: resource._castle_id)
37
- else
38
- castle.track(
39
- name: '$password_reset.failed',
40
- user_id: resource._castle_id)
41
- end
42
- rescue ::Castle::Error => e
43
- if Devise.castle_error_handler.is_a?(Proc)
44
- Devise.castle_error_handler.call(e)
30
+ unless resource.respond_to?(:castle_do_not_track?) && resource.castle_do_not_track?
31
+ begin
32
+ if resource.errors.empty?
33
+ castle.track(
34
+ name: '$password_reset.succeeded',
35
+ user_id: resource._castle_id)
36
+ else
37
+ castle.track(
38
+ name: '$password_reset.failed',
39
+ user_id: resource._castle_id)
40
+ end
41
+ rescue ::Castle::Error => e
42
+ if Devise.castle_error_handler.is_a?(Proc)
43
+ Devise.castle_error_handler.call(e)
44
+ end
45
45
  end
46
46
  end
47
47
  end
@@ -1,3 +1,3 @@
1
1
  module DeviseCastle
2
- VERSION = "1.3.4".freeze
2
+ VERSION = "1.3.5".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_castle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johan Brissmyr
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-04-04 00:00:00.000000000 Z
12
+ date: 2016-04-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: devise
@@ -123,9 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project:
126
- rubygems_version: 2.4.5.1
126
+ rubygems_version: 2.5.1
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: Devise extension for Castle
130
130
  test_files: []
131
- has_rdoc: